Questions tagged [jwebunit]

27 questions
0
votes
2 answers

Getting Syntax error when running jwebunit test program

Here's my code package net.sourceforge.jwebunit.sample; import net.sourceforge.jwebunit.WebTestCase; public class JWebUnitSearchExample extends WebTestCase { public JWebUnitSearchExample(String name) { super(name); } public…
dale
  • 439
  • 3
  • 11
  • 28
0
votes
1 answer

getting-java-io-ioexception-when-running-junit-test-case-in-eclipse (continued)

I've just found a proxy somewhere and applied to my code, seem to be successful. But when it comes down to submit("btnG"), I got an syntax error SyntaxError: syntax error (httpunit; line 155) at…
dale
  • 439
  • 3
  • 11
  • 28
0
votes
0 answers

JWebUnit - net.sourceforge.jwebunit.exception.TestingEngineResponseException: unexpected status code [401] at URL: [http://localhost:9999/Test/]

I am writing test case for web application which has been written in Primefaces(xhtml). To access the URL http://localhost:8080/Test/ it asks for username and password. Below is the error when I am trying to access the…
Pragya009
  • 1
  • 3
0
votes
1 answer

Setting a server for JWebunit Tests

I'm using JwebUnit to test my JSP pages in a web application. Since JWebUnit requires a base urlto work. JwebUnit has setBaseUrl("http://localhost:8080/MyWebapp"); to set the base url which is used @Beforeof Junit Test. I need to start a server and…
Po DW
  • 103
  • 1
  • 9
0
votes
1 answer

Jwebunit Exception invoking setOuterHTML

i am trying to place text in a textbox using jwebunit and i keep getting a "Exception invoking setOuterHTML" error. this is the code that i think is causing the issue…
random09
  • 31
  • 2
0
votes
1 answer

How to call javascript method from JWebunit

I need to check my login screen through JWebunit test class. The page doesnt have any sumbit button. We are using a href tag. When we click the href, then process goes to goPasswordPage method script. this script will call the respective servlet…
user3782196
  • 113
  • 1
  • 6
0
votes
0 answers

Testing on JWebUnit

I am trying to do integration test on my servlets with the JWebUnit framework. All I've done is importing the two jar files needed (jwebunitcore and jwebunit-htmlunit-plgin) into my class path. Here is the code: package…
0
votes
1 answer

jwebunit set a proxy for webtester webclient

I have a problem in setting a proxy config in webtester. Before, with htmlunit 2.11 jar I was using the following code: HtmlUnitTestingEngineImpl h = (HtmlUnitTestingEngineImpl) wt.getTestingEngine(); ProxyConfig proxyConfig = new ProxyConfig(ip,…
Giuseppe
  • 125
  • 2
  • 14
0
votes
2 answers

Testing email contact form with JWebUnit without sending the email

I have a Java web application built using servlet and JSP pages. I have written some integration tests using JWebUnit (http://jwebunit.sourceforge.net). I have a test method like this: @Test public void testContact()…
Joël Craenhals
  • 475
  • 7
  • 19
0
votes
1 answer

How to read values from input tag when using jwebunit

I need to read the values from a series of input tags of a html page. Can anyone help me in this regard? Thanks in advance..
hanu
  • 61
  • 8
0
votes
1 answer

testing a download file link using JWebUnit

I am using JWebUnit. How can i use it to test if a download link works properly and the file is actually downloaded.
skywalker
  • 23
  • 5
-1
votes
1 answer

jwebunit to check css style

I'm trying to assert the current styling of a div. For example, is it set to visible or not. I wasn't able to find a way in jwebunit to get at this information though. Ideas? Alternate approaches? Constraint: I cannot change the page I am trying…
Jeanne Boyarsky
  • 12,156
  • 2
  • 49
  • 59
1
2