test running forever
sebastien.lemeunier-s9ACF+TQ1dFWk0Htik3J/[email protected]
| Newsgroups | gmane.comp.web.canoo.webtest |
|---|---|
| Message-ID | <OFE32E1BCA.C588C736-ONC125782B.004FD6D2-C125782B.005569B8@domino.novartis.com> |
Hi,
I am trying to demonstrate the benefit of using webtest in our company
I have built a very simple test to showcase how easy tests can written.
However while running this test webtest seems to enter a never ending
loop. Any advise ?
the clickButton seems to be to problematic action. (remark there is a lot
of javascript in the application I want to test)
Thank you,
Sebastien
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project default="test">
<target name="test">
<webtest name="Check we can login into Maxima and logout">
<invoke url="http://myhost.net/mypage"
description="Go to login page"/>
<verifyElement type="form" text="loginForm" />
<setInputField
htmlId="loginForm:workspace_login_user_name" value="testuser" />
<setInputField
htmlId="loginForm:workspace_login_password" value="password" />
<clickButton htmlId="loginForm:submitbutton" />
<verifyText text="this should be part of the page"
/>
<clickLink label="logout" />
<verifyText text="You have logged out
successfully." />
</webtest>
</target>
</project>