Questions tagged [jwebunit]

27 questions
166
votes
36 answers

Disable HttpClient logging

I´m using commons-httpclient 3.1 in an integration test suite. The default logging for HttpClient is extremely noisy and I can't seem to turn it off. I've tried following the instructions here but none of them make any difference. Mostly I just need…
Matt Baker
  • 3,394
  • 3
  • 25
  • 35
6
votes
2 answers

How do I get the value inside a tag with xpath/htmlwebunit

I am trying to create a Java Application that retrieves information from a webpage. This is part of the code I am trying to access the value in the 1st td tag in the 2nd tr tag:
KrispyDonuts
  • 1,262
  • 2
  • 18
  • 37
3
votes
0 answers

How to test a Dynamic Web Project in Eclipse?

I have built a "Dynamic Web Project" in Eclipse using JSP's and servlet. I want to test this project using a framework. I am new to test driven development. After a few searching on how to test servelets and Jsp's with navigations I found out that…
Nishant123
  • 1,968
  • 2
  • 26
  • 44
2
votes
2 answers

XPath Expression to get element after an other

I have following structure: Index of /

Index of /

        Icon  Name                    Last…
khmarbaise
  • 92,914
  • 28
  • 189
  • 235
1
vote
2 answers

Getting java.io.IOException when running JUnit test case in Eclipse

Here's my code public class JWebUnitTest extends WebTestCase { public JWebUnitTest(String name) { super(name); } public void setUp() { getTestContext().setBaseUrl("http://www.google.com"); } public void…
dale
  • 439
  • 3
  • 11
  • 28
1
vote
1 answer

jwebunit playframework functional test is stuck

I use play-framework application, and going to use JWEBUNIT for functional testings. There is a article that proved me to use that way: http://nesbot.com/2011/10/16/play-framework-sample-app-JWebUnit-synchronous-ajax Everything fine, but I have a…
ses
  • 13,174
  • 31
  • 123
  • 226
1
vote
1 answer

Getting Class Not found Exception when try to run test in eclipse

I am Creating Test Automation Script for web application. I want to write test caes for JSP file. For JSP i am using JwebUnit library. i created test file as follows: class Junittest { @Before public void prepare() { …
Jaydeep Bobade
  • 1,005
  • 2
  • 16
  • 25
1
vote
1 answer

JWebUnit testing issue

I am getting null point exception. Not sure what I am doing wrong here. Error I get is java.lang.NullPointerException for goToLogin and test1() at beginAt("someJspFile") import net.sourceforge.jwebunit.junit.JWebUnit; import…
user557657
  • 856
  • 1
  • 12
  • 35
1
vote
1 answer

What's the difference between beginAt and gotoPage in JWebUnit?

JWebUnit.beginAt: Begin conversation at a URL absolute or relative to base URL. Use getTestContext().setBaseUrl(String) to define base URL. Absolute URL should start with "http://", "https://" or "www.". JWebUnit.gotoPage: Go to the given page…
Chris Morgan
  • 86,207
  • 24
  • 208
  • 215
1
vote
1 answer

Testing button state using JWebUnit

Is it possible to test if a button is enabled or disabled(even if it is enabled/disabled using java script after few form actions) in the page using JWebUnit.
Manoj
  • 11
  • 1
1
vote
1 answer

htmlunit vs. jwebunit with htmlunit plugin

I did some research on ui testing tools such as htmlunit, httpunit, jwebunit, selenium etc. I'm not very familiar to testing tools. Htmlunit sounds a good option in terms of javascript support. Then, I found jwebunit, it provides APIs and it is…
1
vote
0 answers

Dynamic JavaScript Alerts with JWebUnit

I'm using JWebUnit and the system I am testing uses a JavaScript alert that has a dynamic message e.g. "Your application has been submitted with reference ". Using JWebUnit I am calling WebTester.setExpectedJavaScriptAlert(...) however, I dont know…
mleonard87
  • 324
  • 1
  • 11
1
vote
2 answers

Getting SSLhandshake exception even after the security certificate is installed

" java.lang.RuntimeException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to…
hanu
  • 61
  • 8
0
votes
1 answer

Using JWebUnit behind a proxy

I'm using JWebUnit to run tests on my application running locally (localhost) but some parts of my application require the user to be redirected to an external site, do some stuff then come back (redirected to localhost). As I'm behind a proxy, I've…
Xavier Dury
  • 1,530
  • 1
  • 16
  • 23
0
votes
1 answer

Using JWebUnit for TDD approach for Spring webflow application

My project involves Spring Webflow. I would like to use TDD approach for developing web pages. (ie) JSP etc.. If there is change in jsp I want to test I dont want to restart the whole server I have heard in one of the talks from Rod Johnson that…
sivaramtechfan
  • 67
  • 1
  • 12
1
2