[Webtest] How to debug when no errors
webtest@lists.canoo.com
webtest@lists.canoo.com
Sat, 31 Jan 2004 00:45:15 +0000
I've just started doing some very simple tests with WebTest. I can test
clicking on links just fine in our own app. I was able to do a script to
test login on the www.DexOnline.com public website. However, I can't get my
login test on our own site to work. It doesn't get any errors - it just
doesn't log in. If I change the name of the submit button, it complains, so
I know it is finding the button. If I put an invalid password, it does not
complain, so it's not really submitting. The results.xml file
shows 'completed' and a duration, but the html result shows that it just came
up with the login page again, and in results.xml, there is no 'htmlparser'
output for that step. The verify step which comes next fails, of course.
I think my script looks ok, since the same thing works on the DexOnline site,
but I don't know why entering the userid and password and clicking submit
doesn't actually make it do anything.
My question is, does anyone have any tips for how I can go about debugging
this? I've looked at all the doc and samples in the doc I could find for
clickbutton. I've searched on this mailing list, and like I said I did the
same test for a similar website which worked, so I'm stumped. No doubt it is
something very obvious, but I don't know how to look for it from here.
Here's the pertinent part of my xml file:
<setinputfield stepid="Enter userid"
name="username" value="Fast401k"/>
<setinputfield stepid="Enter password"
name="password" value="aaaaa"/>
<clicklink stepid="Click the here link"
label="here"/>
<verifytext stepid="Admin Home Page verify"
text="<title>Admin Tool;<title>"/>
Thank you,
Lisa