Bugs item #2970512, was opened at 2010-03-15 08:26
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2970512&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Core API
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Todd Owen (toddmowen)
>Assigned to: Julien HENRY (henryju)
Summary: getImage() treats absolute URL as relative
Initial Comment:
My site has a page "/en/admin/43/pictures", and on that page there is an img
tag with an absolute URL: "/pictures/1/1/200x200.jpg". In the following code,
the assertImagePresent() call succeeds, but getImage() fails:
beginAt("/en/admin/43/pictures");
assertImagePresent("/pictures/1/1/200x200.jpg", null);
Image img = getImage("/pictures/1/1/200x200.jpg", null); //
AssertionFailedError: Could not load image from
http://localhost:8080/en/admin/43/pictures/1/1/200x200.jpg
Looking at the code, I see the problem is in the WebTester.createURL() method,
which treats this as a relative URL and tacks it onto the current directory
(i.e. /en/admin/43/), giving a nonexistent URL
"/en/admin/43/pictures/1/1/200x200.jpg".
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2010-10-19 16:13
Message:
What is the value you set to getTestContext().setBaseUrl(xxx)?
----------------------------------------------------------------------
Comment By: Julien HENRY (henryju)
Date: 2010-08-12 22:16
Message:
If someone can provide a patch with a JUnit test and the fix, I will be
happy to apply it for next release.
----------------------------------------------------------------------
Comment By: https://www.google.com/accounts ()
Date: 2010-08-12 07:36
Message:
Also seeing this same issue with our tests. Any time-frame for a fix or a
workaround for this?
----------------------------------------------------------------------
Comment By: Alexandre CESARI (acesari)
Date: 2010-05-12 10:22
Message:
Same issue while testing our project for image presence.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2970512&group_id=61302
------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development