Hello,
I'm not sure it can help you, but my own tests are working like this :
public void testIdentification(String login, String password) {
beginAt(PropertyConfManager.getValue("URL_BASE"));
assertFormPresent(PropertyConfManager.getValue("FORMULAIRE_IDENTIFICATION"));
setTextField(PropertyConfManager.getValue("FORMULAIRE_IDENTIFICATION_LOGIN"),
login);
setTextField(PropertyConfManager.getValue("FORMULAIRE_IDENTIFICATION_PASSWORD"),
password);
submit();
}
I think you don't need to create all these objects you're creating.
Good luck,
Francois
On Thu, Jul 23, 2009 at 1:47 PM, Pranay Prabhat <[email protected]>wrote:
> Hi,
>
> Day before yesterday i was browsing through internet to find out the best
> possible testing framework for web applications in my project. I was really
> impressed by the postings in JwebUnit and tried to implement that rightaway
> in my projects.
>
> But i landed in a problem and was not able to come out of it for more than
> a day.
>
> I have put all the jars provided in the jwebunit-2.2-release.zip in my
> class path. I am running the below simple test case through ant 1.6.5. I
> always get the below error :-
>
> " [junit] unable to create HTML parser
> [junit] com.gargoylesoftware.htmlunit.ObjectInstantiationException:
> unable to create HTML parser"
>
> " [junit] Enclosed exception: org.xml.sax.SAXNotRecognizedException:
> Feature '
> http://cyberneko.org/html/features/parse-noscript-content' is not
> recognized."
>
>
>
> The simple junit i am running is :-
>
> package xyz;
>
> import net.sourceforge.jwebunit.junit.WebTestCase;
> import net.sourceforge.jwebunit.junit.WebTester;
>
>
> public class ExampleWebTestCase extends WebTestCase {
> private WebTester tester;
> public void setUp() throws Exception {
> super.setUp();
> tester = new WebTester();
> tester.setBaseUrl(<<<my url>>>);
> }
>
> public void test1() {
> tester.beginAt("/");
> tester.assertTextPresent("Group");
> }
> }
>
> Any help will be highly appreciated.
>
> Thanks,
> Pranay.
>
>
>
> ------------------------------------------------------------------------------
>
> _______________________________________________
> JWebUnit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
------------------------------------------------------------------------------
_______________________________________________
JWebUnit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users