Ignore:
Timestamp:
03/04/14 10:57:55 (11 years ago)
Author:
pharms
Message:
  • adapted logging of GUI elements to ensure that all GUI elements on the same page are logged at least once
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/autoquest-htmlmonitor-test/src/test/java/de/ugoe/cs/autoquest/htmlmonitor/HtmlMonitorTest.java

    r1342 r1429  
    423423        assertNotNull(nodes); 
    424424         
    425         // wait for only 9 nodes. The directly used GUI elements are 10, but one (the body) is the 
    426         // parent of the others. input9 is unused and must, therefore, not be logged. 
    427         assertEquals(9, nodes.size()); 
     425        // wait for all 10 GUI elements on the same page to be logged although only 9 are used 
     426        assertEquals(10, nodes.size()); 
    428427         
    429428        // get input nodes 
     
    433432            assertTrue(node instanceof HTMLPageElement); 
    434433            assertEquals("HTML", node.getPlatform()); 
    435             assertTrue(node.isUsed()); 
     434             
     435            if (!"input9".equals(((HTMLPageElement) node).getHtmlId())) { 
     436                assertTrue(node.isUsed()); 
     437            } 
     438            else { 
     439                assertFalse(node.isUsed()); 
     440            } 
    436441 
    437442            assertNotNull(guiModel.getChildren(node)); 
     
    462467        assertEvent(sequence.get(7), 8, MouseClick.class, nodes.get(7), 255, 4); 
    463468        assertEvent(sequence.get(8), 9, Scroll.class, body, 0, 0); 
    464         assertEvent(sequence.get(9), 10, MouseClick.class, nodes.get(8), 516, 154); 
     469        assertEvent(sequence.get(9), 10, MouseClick.class, nodes.get(9), 516, 154); 
    465470 
    466471    } 
Note: See TracChangeset for help on using the changeset viewer.