Ok, I moved the <groovy> step before the <echo message "Starting login.xml" /> step and removed all of the <antWrapper>. The same error is occurring:
   [echo] ********************************* filled out j_password
[clickButton] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: clickButton "Click the 'Log In' Button" (9/15) [clickButton] INFO (com.canoo.webtest.steps.request.AbstractTargetAction) - -> gotoTarget by clickButton with name: null [clickButton] INFO (com.canoo.webtest.steps.request.ClickButton) - -> findTarget(by input): name= value=Log In [clickButton] INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled [clickButton] WARN (org.apache.commons.httpclient.HttpMethodBase) - Cookie rejected: "JSESSIONID=AFFCE6A22E385A9926B0482973BBA350". Illegal path attribute "/apps/". Path of origin: "/signon/page/" [clickButton] INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled [clickButton] INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled [clickButton] INFO (org.apache.commons.httpclient.HttpMethodDirector) - Redirect requested but followRedirects is disabled [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of window changed to https://signon.domain.com/signon/page/?url=%2Fapps%2F [clickButton] INFO (com.canoo.webtest.engine.Context) - Content of current window changed, it will become current response [clickButton] INFO (com.canoo.webtest.engine.Context) - Current form set to none [clickButton] INFO (com.canoo.webtest.engine.Context) - Current response now: https://signon.domain.com/signon/page/?url=%2Fapps%2F [null] INFO (com.canoo.webtest.steps.Step) - >>>> Start Step: null "<unknown>" (10/15) It should be going to https://applications.domain.com/apps Signon and Application works just fine in IE and Firefox. Thanks for all your help. I'd really like to use canoo, getting around this issue will be a big step in getting it approved. Marc Guillemot writes:
Try to put the groovy step at the very first position. Marc. PS: you can omit all <antWrapper>, they are automatically added.
work wrote:
Here is the login.xml file that I am running:
<antWrapper>
<echo message="Starting login.xml" />
</antWrapper>
<invoke description="Log In to Apps"
      url="" />
<antWrapper>
<echo message="invoke step complete" />
</antWrapper>
<setInputField description="Enter the User Name"
             name="j_username"
             value="${valid.uid}" />
<antWrapper>
<echo message="filled out j_username" />
</antWrapper>
<setInputField description="Enter the Password"
             name="j_password"
             value="${valid.pwd}" />
<antWrapper>
<echo message="********************************* filled out j_password" />
</antWrapper>
<groovy description="Change cookie policy to: ignore cookies">
  import org.apache.commons.httpclient.cookie.CookiePolicy
  import org.apache.commons.httpclient.params.*
  ((HttpClientParams)
DefaultHttpParams.getDefaultParams()).setCookiePolicy(CookiePolicy.BROWSER_
COMPATIBILITY);
</groovy>
<clickButton description="Click the 'Log In' Button"
           label="Log In" />
<storeCookie name="JSESSIONID" property="sessioncookie"
description="storing session cookie"/>
<antWrapper>
<echo message="********************************* Clicked Log In Button" />
</antWrapper>
<verifyText description="Main Menu Page - Or Bookmarked Page should be
displayed"
           text="${login.page.text}" />
The above is inside of:
<?xml version="1.0"?>
<!DOCTYPE project [
<!ENTITY config SYSTEM "file:../modules/config.xml">
<!ENTITY login  SYSTEM "file:../modules/login.xml">
<!ENTITY logout SYSTEM "file:../modules/logout.xml">
]>
<project name="logintests" basedir="." default="loginTests">
    <target name="loginTests">
        <webtest name="Log In Test - Successful">
            &config;
            <steps>
                &login;
                &logout;
            </steps>
        </webtest>
    </target>
</project> Marc Guillemot writes:
have you tried to change the cookie policy? I can't see it in the log
you provided.
Marc.
_______________________________________________
WebTest mailing list
[email protected]
http://lists.canoo.com/mailman/listinfo/webtest

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


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


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

Reply via email to