decided to go from JWebUnit 1.2 to JWebUnit 1.4, and gain a lot
benefits with this.
There is one thing that stops me from porting all existing tests to 1.4
though: I do not know how to access to the http layer.
Here are some examples, that I do not know how to handle in 1.4 (from
existing functional tests with JWebUnit 1.2)
// seting http options directly
HttpUnitOptions.setLoggingHttpHeaders(true);
HttpUnitOptions.setScriptingEnabled(false);
// setting proxy for http conversation
getTestContext().setProxyName("localhost");
getTestContext().setProxyPort(5555);
// accessing Header fields directly
getDialog().getWebClient().getClientProperties().setAcceptCookies(true);
getDialog().getWebClient().setHeaderField("Accept-Language", "sl");
It is true that with JWebUnit 1.4 I need much less access to the http
layer, but in some cases it is still needed.
Is there still some way to get to it in 1.4?
regards
Dragan
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users