Bugs item #974065, was opened at 2004-06-16 17:21
Message generated for change (Comment added) made by mattread
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=974065&group_id=61302

Category: None
Group: Release 1.2
Status: Open
Resolution: None
Priority: 5
Submitted By: Matt Read (mattread)
Assigned to: Nobody/Anonymous (nobody)
Summary: Change to HttpUnitDialog behaviour

Initial Comment:
I used to be able to do something like this:

HttpUnitDialog hud = new HttpUnitDialog(getBaseUrl(), 
getTestContext() );
hud.clickLink("somelinkId");

And then manipulate the HttpUnitDialog in order to 
simulate multiple people navigating the website. This no 
longer seems to work. The page that I'd navigated to 
prior to calling this code gets modified. Is this a bug or 
intentional behaviour?



----------------------------------------------------------------------

>Comment By: Matt Read (mattread)
Date: 2004-07-27 16:38

Message:
Logged In: YES 
user_id=579210

Yep, how this stopped working when I upgraded. The first 
thread no longer seemed to be on the Delete page when I 
tricked submitting where I've marked AAA.

public void testExample() {

        getTestContext().setBaseUrl
("http://localhost:8082/myWebApp";);

        // go to delete page
        beginAt("/home.do");
        clickLink(DELETE_LINK_ID);

        // in separate thread - delete the first item on the list
        HttpUnitDialog hud = new HttpUnitDialog(
                "http://localhost:8082/myWebApp/home.do";,
                getTestContext());
        hud.clickLink(DELETE_LINK_ID);
        hud.submit("submit"); // submit effective date page

        // AAA: first thread, try to delete the item which should 
now be gone
        submit("submit"); // submit effective date page
        assertTextPresent("That company no longer exists in 
the system");

}

----------------------------------------------------------------------

Comment By: Jim Weaver (jimweaver)
Date: 2004-06-28 23:33

Message:
Logged In: YES 
user_id=619947

Can you post a small testcase that doesn't work anymore, and
include the code for getBaseUrl and getTestContext?

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=974065&group_id=61302


-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
Jwebunit-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development

Reply via email to