here is my script as is when it fails:

<webtest name="QA9 Test">
     <invoke
        url="http://10.5.140.22:8097/project/view/SignOn";
        description="English signon page" />
      <verifyTitle 
        text="project header"
        description="we should see sign on page" />
      <setInputField 
      name="firmCode"
      value="qa"      
      />
          <setInputField 
      name="userCode"
      value="burr"      
      />
      <setInputField 
      name="password"
      value="Password*1"      
      />
      <setCheckbox description="Authorize"
        name="consentCheckBox"
        checked="true" />
      <clickButton description="Login" htmlId="SignOn" />
    </webtest>

Now as this script stands..it fails on the clikcButton step with the
following error:

JavaScript error loading page http://1.2.3.4:9090/project/view/SignOn:
Wrapped com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set
property "location" of undefined to "FrameFooter.jsp" (script in
http://1.2.3.4:9090/project/view/SignOn from (4, 54) to (26, 10)#24) (script
in http://1.2.3.4:9090/project/view/SignOn from (17, 31) to (104, 10)#38) 

Now the weird thing is that if I take out any of the setInputField
steps.....the test passes...but with all 3 ..it fails....
the login information is good, I can go to that page in my browser put the
info in, click the checkbox and then click the button...and it signs in...so
I don't know why this does not work????

any ideas?

-- 
View this message in context: 
http://www.nabble.com/test-only-works-when-sign-in-credentials-are-wrong-----tp20902111p20902111.html
Sent from the WebTest mailing list archive at Nabble.com.

_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

Reply via email to