Questions tagged [http-unit]

a Java library for the automatic stimulation and testing of web applications

References:

63 questions
0
votes
1 answer

How to tell HttpUnit to not fail for http status 4xx?

In my unit test, I currently have this code: int responseCode; try { WebResponse response = new WebConversation().getResponse(new GetMethodWebRequest("http://myurl")); responseCode = response.getResponseCode(); } catch (HttpException e) { …
slartidan
  • 20,403
  • 15
  • 83
  • 131
0
votes
1 answer

What is the difference between httpunit 1.7.2 and the kohsuke patch?

Today httpunit 1.7.2 was released on maven central. There seem to be several "unofficial" patches available see: http://search.maven.org/#search|ga|1|httpunit http://www.jarvana.com/jarvana/search?search_type=project&project=httpunit What is the…
Wolfgang Fahl
  • 15,016
  • 11
  • 93
  • 186
0
votes
2 answers

Is it possible to get anchor value through xpath?

In my anchor tag, I don't have any id. But I need to get that value in Httpunit in-order to click. Here is the anchor tag: Continue Please let me know it clearly.
1 2 3 4
5