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
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<testcase>
|
|
<randomString size="20" out="exampleName" />
|
|
<randomString size="250" out="description" />
|
|
<randomString size="500" out="longDesc" />
|
|
<randomString size="250" out="comments" />
|
|
|
|
<click locator="link=New Example" />
|
|
<waitForPageToLoad value="10000" />
|
|
<select locator="statusId" option="label=Defined" />
|
|
<type name="exampleName" value="${exampleName}" />
|
|
<type name="description" value="${description}" />
|
|
<type name="longDescription" value="${longDesc}" />
|
|
<type name="comments" value="${comments}" />
|
|
<type name="exampleSize" value="10" />
|
|
<click locator="//img[@alt='View Calendar']" />
|
|
<click locator="link=Now" />
|
|
<click locator="link=OK" />
|
|
<select locator="anotherText" option="label=Good" />
|
|
<click locator="submitButton" />
|
|
<waitForPageToLoad value="10000" />
|
|
<click locator="link=Items" />
|
|
<waitForPageToLoad value="10000" />
|
|
<type name="AddExampleItem_description" value="Item 1" />
|
|
<type name="amount" value="100" />
|
|
<select locator="amountUomId" option="label=Weight: Stone (st)" />
|
|
<click locator="submitButton" />
|
|
<assertConfirmation value="Do you confirm ?" />
|
|
</testcase> |