A patch from Erwan de FERRIERES "seleniumXML improvement and corrections" (https://issues.apache.org/jira/browse/OFBIZ-3296) - OFBIZ-3296

corrected the XML tests
added new functions in selenium for better conversion from selenese and use with the XML tests :
    * echo
    * verifyTextPresent
    * verifyTextNotPresent
    * assertTitle
    * assertConfirmation
Removed comments
    *  waitForPageToLoad : just wait the page to load before any other action (time in ms)
    * click : make a click on an element
    * assertContains : assert an element contains some code.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@887126 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-12-04 09:27:30 +00:00
parent a0c89a3300
commit de77e0bca8
4 changed files with 66 additions and 24 deletions
@@ -1,11 +1,8 @@
<testcase>
<click locator="link=Example" />
<open value="/example/control/FindExample" />
<waitForPageToLoad value="10000" />
<click locator="searchButton" />
<waitForPageToLoad value="10000" />
<!-- click locator="link=Last" />
<waitForPageToLoad value="10000" / -->
<getHtmlSource out="searchResults"/>
<!-- assertContains src="${searchResults}" test="${exampleName}" / -->
<assertContains src="${searchResults}" test="Brett" />
</testcase>