Bugs item #2970512, was opened at 2010-03-15 15:26 Message generated for change (Tracker Item Submitted) made by toddmowen 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: Nobody/Anonymous (nobody) 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". ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497982&aid=2970512&group_id=61302 ------------------------------------------------------------------------------ Download Intel® Parallel Studio Eval Try the new software tools for yourself. Speed compiling, find bugs proactively, and fine-tune applications for parallel performance. See why Intel Parallel Studio got high marks during beta. http://p.sf.net/sfu/intel-sw-dev _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development