Here is how I get to the point I am at.  I even uninstalled the whole program 
and installed it again because it was working before.  So after a fresh install 
all I do is change googleWebTest.xml file to the following:
 
<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../dtd/Project.dtd">
<project default="test">
 <target name="test">
  <webtest name="QA2 Test">     <invoke        
url="http://10.1.1.1:9090/project/view/SignOn";        description="English 
signon page" />      <verifyTitle         text="home page"        
description="we should see sign on page" />      <setInputField       
name="firmCode"      value="qa"            />     <setInputField       
name="userCode"      value="qa_test6"            />      <setInputField       
name="password"      value="Passw0rd"            />      <setCheckbox 
description="Authorize"        name="consentCheckBox"        checked="true" />  
    <clickButton description="Login" name="SignOn" />
    </webtest>
 </target></project>
 
At this point I change the alltests.xml file to only run this test and remove 
the groovey tests from the webtest.xml file.
 
I then run the standard build.xml file and then get this error:
 
JavaScript error loading page http://10.1.1.1:9090/project/view/SignOn: Wrapped 
com.gargoylesoftware.htmlunit.ScriptException: TypeError: Cannot set property 
"location" of undefined to "FrameFooter.jsp" 
(http://10.1.1.1:9090/project/view/SignOn from (4, 54) to (26, 10)#24) 
(http://10.1.1.1:9090/project/view/SignOn from (17, 31) to (104, 10)#38)
 
I don't understand why it is now looking for or using "FrameFooter.jsp"  I did 
not see that when the test was working.  If you want to see the source for the 
login page I might be able to get that also.
 
JP> From: [EMAIL PROTECTED]> To: [email protected]> Subject: Re: 
[Webtest] intresting error> Date: Fri, 5 Dec 2008 09:00:43 +0100> > Hi,> > the 
usual answer for such a problem, when it doesn't occur in your> "normal" 
browser is:> - can you pick the latest snapshots of HtmlUnit-2.4 jars and use 
them in> place of the 2.3 versions in your WebTest's lib dir. It contains a 
huge> number of improvements in JS support compared to release 2.3:> 
http://build.canoo.com/htmlunit/artifacts//htmlunit-2.4-SNAPSHOT.jar> 
http://htmlunit.sourceforge.net/m2-repo-snapshots/net/sourceforge/htmlunit/htmlunit-core-js/2.4-SNAPSHOT/htmlunit-core-js-2.4-SNAPSHOT.jar>
 > - if the problem persists, please provide the smallest example allowing> to 
reproduce the error.> > Cheers,> Marc.> -- > Web: 
http://www.efficient-webtesting.com> Blog: http://mguillem.wordpress.com> > 
jpyork wrote:> > I setup a plain test, all it did was invoke a url...input a> > 
userid/password..check a box and click a button to sign-in....this test> > 
worked fine and was having no issues...I went on vacatoin for a few> > 
days.....came back and ran it again to start working on it some more and it> > 
does not work anymore...nothing has changed to the login page....and here is> > 
the error I now get that I was not getting before:> > > > 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)> > > 
_______________________________________________> WebTest mailing list> 
[email protected]> http://lists.canoo.com/mailman/listinfo/webtest
_________________________________________________________________

Reply via email to