Files
ofbiz-framework/framework/testtools/testdef/seleniumxml/example/example_login.xml
T
Jacques Le Roux ee6851fe83 A patch from Erwan de FERRIERES "Force the locale to english when running selenium tests" (https://issues.apache.org/jira/browse/OFBIZ-3281) - OFBIZ-3281
When running a seleniumXML test, the locale used should be English as the buttons or links are defined in English in the test files. 
Adding the language choice before logging in the application will then resolved errors due to a bad localization.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885752 13f79535-47bb-0310-9956-ffa450edef68
2009-12-01 12:17:58 +00:00

15 lines
508 B
XML

<?xml version="1.0"?>
<testcase>
<open value="/example/control/setSessionLocale?newLocale=en" />
<open value="/example/control/logout" />
<waitForPageToLoad value="10000" />
<type name="USERNAME" value="admin" />
<type name="PASSWORD" value="ofbiz" />
<click locator="//input[@value='Login']" />
<waitForPageToLoad value="10000" />
<getBodyText out="bodyText"/>
<getHtmlSource out="htmlSource"/>
<!--assertContains src="${htmlSource}" test="Welcome" /-->
</testcase>