HtmlUnit test passes using 1.11, but not with 1.12 or 1.13

View: New views
3 Messages — Rating Filter:   Alert me  

HtmlUnit test passes using 1.11, but not with 1.12 or 1.13

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm using Canoo WebTest on top of HtmlUnit. The following test passes when I have HtmlUnit 1.11 in my classpath, but not when I have 1.12 or 1.13 in my classpath. Any ideas what changed?

    <target name="list">
        <webtest name="userTests">
            <config host="demo.appfuse.org" port="80" protocol="http" basepath=""
                resultpath="target/data" resultfile="web-tests-result.xml"
                summary="true" saveresponse="true"/>
            <steps>
                <invoke url="/appfuse-jsf/users.html"/>
                <setinputfield description="set user name" name="j_username" value="admin"/>
                <setinputfield description="set password" name="j_password" value="admin"/>
                <clickbutton label="Login" description="Click the submit button"/>
                <verifytitle text="User List | AppFuse"/>
                <clicklink xpath="//table[@id='editUser:users']/tbody/tr[1]/td[1]/a"/>
                <verifytitle text="User Settings | AppFuse"/>
            </steps>
        </webtest>
    </target>

Thanks,

Matt

Parent Message unknown Re: HtmlUnit test passes using 1.11, but not with 1.12 or 1.13

by Ahmed Ashour :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.
Dear Matt,
 
Please provide small 'html and js" invoked by your test, that fail with 1.13.
 
Many thanks,
Ahmed


Need a vacation? Get great deals to amazing places on Yahoo! Travel.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@...
https://lists.sourceforge.net/lists/listinfo/htmlunit-user

Re: HtmlUnit test passes using 1.11, but not with 1.12 or 1.13

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried trimming the HTML and JS produced by http://demo.appfuse.org/appfuse-jsf/users.html (login with admin/admin), but was unable to get it to work when it's not rendered by JSF.

You should be able to use this site for testing until the bug is fixed. ;-)

Matt

Ahmed Ashour wrote:
Dear Matt,

Please provide small 'html and js" invoked by your test, that fail with 1.13.

Many thanks,
Ahmed


       
____________________________________________________________________________________
Need a vacation? Get great deals
to amazing places on Yahoo! Travel.
http://travel.yahoo.com/
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Htmlunit-user mailing list
Htmlunit-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/htmlunit-user