Ignore:
Timestamp:
01/25/14 14:00:01 (11 years ago)
Author:
pharms
Message:
  • removed common group stuff again as it did not work with a larger data set and as it also does not help, as grouping may introduce several group layers which can still not be merged.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-plugin-html-test/src/test/java/de/ugoe/cs/autoquest/plugin/html/commands/CMDcondenseHTMLGUIModelTest.java

    r1334 r1336  
    4343 
    4444/** 
    45  * <p> 
    46  * TODO comment 
    47  * </p> 
    48  *  
    4945 * @author Patrick Harms 
    5046 */ 
     
    168164             
    169165        String[] assertionSpec = 
    170             { "/server/doc1/html/body/group_common/div", 
     166            { "/server/doc1/html/body/div", 
    171167              "/server/doc1/html/body/group_doc1/div_1", 
    172168              "/server/doc1/html/body/group_doc2/div_2" }; 
     
    207203             
    208204        String[] assertionSpec = 
    209             { "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_common/div_1", 
    210               "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_common/div_2", 
     205            { "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/div_1", 
     206              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/div_2", 
    211207              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc1/div_3", 
    212208              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc1/div_5", 
    213209              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc2/div_7", 
    214210              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc2/div_8", 
    215               "/server/doc1/html/body/div/group_doc1doc2doc3/group_common/div_6", 
     211              "/server/doc1/html/body/div/group_doc1doc2doc3/div_6", 
    216212              "/server/doc1/html/body/div/group_doc1doc5/div_4", 
    217               "/server/doc1/html/body/div/group_doc3doc5/group_common/div_11", 
     213              "/server/doc1/html/body/div/group_doc3doc5/div_11", 
    218214              "/server/doc1/html/body/div/group_doc3doc5/group_doc3/div_9", 
    219215              "/server/doc1/html/body/div/group_doc3doc5/group_doc3/div_10", 
     
    221217              "/server/doc1/html/body/div/group_doc4/div_13" }; 
    222218         
    223         guiModel.dump(System.out, "UTF-8"); 
     219        assertGUIModel(guiModel, assertionSpec); 
     220    } 
     221 
     222    /** 
     223     *  
     224     */ 
     225    @Test 
     226    public void test_condense_07() throws Exception { 
     227        String[] guiSpec = 
     228            { "/server/doc1/html/body/div/div_1/div_11", 
     229              "/server/doc2/html/body/div/div_2/div_21", 
     230              "/server/doc3/html/body/div/div_1/div_12" }; 
     231                 
     232        GUIModel guiModel = generateGUIModel(guiSpec); 
     233        GlobalDataContainer.getInstance().addData("sequences_targets", guiModel); 
     234                 
     235        executeCommand(); 
     236             
     237        String[] assertionSpec = 
     238            { "/server/doc1/html/body/div/group_doc1doc3/div_1/group_doc1/div_11", 
     239              "/server/doc1/html/body/div/group_doc1doc3/div_1/group_doc3/div_12", 
     240              "/server/doc1/html/body/div/group_doc2/div_2/div_21" }; 
     241         
     242        assertGUIModel(guiModel, assertionSpec); 
     243    } 
     244 
     245    /** 
     246     *  
     247     */ 
     248    @Test 
     249    public void test_condense_08() throws Exception { 
     250        String[] guiSpec = 
     251            { "/server/doc1/html/body/div/div_1/div_11/div_111", 
     252              "/server/doc1/html/body/div/div_2/div_21/div_211", 
     253              "/server/doc1/html/body/div/div_3/div_31", 
     254              "/server/doc2/html/body/div/div_1/div_11/div_111", 
     255              "/server/doc2/html/body/div/div_2/div_21/div_211", 
     256              "/server/doc2/html/body/div/div_3/div_31", 
     257              "/server/doc2/html/body/div/div_4/div_41", 
     258              "/server/doc3/html/body/div" }; 
     259                 
     260        GUIModel guiModel = generateGUIModel(guiSpec); 
     261        GlobalDataContainer.getInstance().addData("sequences_targets", guiModel); 
     262                 
     263        executeCommand(); 
     264             
     265        String[] assertionSpec = 
     266            { "/server/doc1/html/body/div/group_doc1doc2/div_1/div_11/div_111", 
     267              "/server/doc1/html/body/div/group_doc1doc2/div_2/div_21/div_211", 
     268              "/server/doc1/html/body/div/group_doc1doc2/div_3/div_31", 
     269              "/server/doc1/html/body/div/group_doc1doc2/group_doc2/div_4/div_41" }; 
     270         
     271        assertGUIModel(guiModel, assertionSpec); 
     272    } 
     273 
     274    /** 
     275     *  
     276     */ 
     277    @Test 
     278    public void test_condense_09() throws Exception { 
     279        String[] guiSpec = 
     280            { "/server/doc1/html/body/div/div_1/div_11/div_111", 
     281              "/server/doc1/html/body/div/div_2/div_21/div_211", 
     282              "/server/doc1/html/body/div/div_3/div_31", 
     283              "/server/doc2/html/body/div/div_1/div_12/div_121", 
     284              "/server/doc2/html/body/div/div_2/div_22/div_221", 
     285              "/server/doc2/html/body/div/div_3/div_31", 
     286              "/server/doc2/html/body/div/div_4/div_41", 
     287              "/server/doc3/html/body/div" }; 
     288                 
     289        GUIModel guiModel = generateGUIModel(guiSpec); 
     290        GlobalDataContainer.getInstance().addData("sequences_targets", guiModel); 
     291                 
     292        executeCommand(); 
     293             
     294        String[] assertionSpec = 
     295            { "/server/doc1/html/body/div/group_doc1doc2/div_1/group_doc1/div_11/div_111", 
     296              "/server/doc1/html/body/div/group_doc1doc2/div_1/group_doc2/div_12/div_121", 
     297              "/server/doc1/html/body/div/group_doc1doc2/div_2/group_doc1/div_21/div_211", 
     298              "/server/doc1/html/body/div/group_doc1doc2/div_2/group_doc2/div_22/div_221", 
     299              "/server/doc1/html/body/div/group_doc1doc2/div_3/div_31", 
     300              "/server/doc1/html/body/div/group_doc1doc2/group_doc2/div_4/div_41" }; 
     301         
     302        assertGUIModel(guiModel, assertionSpec); 
     303    } 
     304 
     305    /** 
     306     *  
     307     */ 
     308    @Test 
     309    public void test_condense_10() throws Exception { 
     310        String[] guiSpec = 
     311            { "/server/doc1/html/body/div/div_1/div_11/div_111", 
     312              "/server/doc1/html/body/div/div_2/div_21/div_211", 
     313              "/server/doc1/html/body/div/div_3/div_31/div_311", 
     314              "/server/doc1/html/body/div/div_4/div_41/div_411", 
     315              "/server/doc1/html/body/div/div_5/div_51/div_511", 
     316              "/server/doc2/html/body/div/div_2/div_21/div_211", 
     317              "/server/doc2/html/body/div/div_3/div_31/div_311", 
     318              "/server/doc2/html/body/div/div_4/div_41/div_411", 
     319              "/server/doc2/html/body/div/div_5/div_51/div_511", 
     320              "/server/doc3/html/body/div/div_3/div_31/div_311", 
     321              "/server/doc3/html/body/div/div_4/div_41/div_411", 
     322              "/server/doc3/html/body/div/div_5/div_51/div_511", 
     323              "/server/doc4/html/body/div/div_4/div_41/div_411", 
     324              "/server/doc4/html/body/div/div_5/div_51/div_511" }; 
     325                 
     326        GUIModel guiModel = generateGUIModel(guiSpec); 
     327        GlobalDataContainer.getInstance().addData("sequences_targets", guiModel); 
     328                 
     329        executeCommand(); 
     330             
     331        String[] assertionSpec = 
     332            { "/server/doc1/html/body/div/div_4/div_41/div_411", 
     333              "/server/doc1/html/body/div/div_5/div_51/div_511", 
     334              "/server/doc1/html/body/div/group_doc1doc2doc3/div_3/div_31/div_311", 
     335              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/div_2/div_21/div_211", 
     336              "/server/doc1/html/body/div/group_doc1doc2doc3/group_doc1doc2/group_doc1/div_1/div_11/div_111" }; 
     337         
    224338        assertGUIModel(guiModel, assertionSpec); 
    225339    } 
Note: See TracChangeset for help on using the changeset viewer.