Questions tagged [http-unit]

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

References:

63 questions
10
votes
3 answers

Maven + Surefire: proxy configuration

I'm using httpunit to access a server. I need to configure the proxy settings for this (http and https). I set the configuration in the settings.xml file, but surefire seems to ignore it!? I want to avoid to duplicate the configuration as much as…
Puce
  • 37,247
  • 13
  • 80
  • 152
9
votes
1 answer

HttpUnit/HtmlUnit equivalent for android

I'm looking for a browser-simulating library on android, which handles things like loading a website (http/https) Redirections: HTTP (3xx Status Codes), JavaScript, HMTL tags filling out html-forms easy html parsing (could fall back to JSoup for…
LangerJan
  • 165
  • 1
  • 9
8
votes
2 answers

How to get json page using httpunit

I am using web client. and login successfully through web client. but when i send second request for getting data . I got an Exception com.gargoylesoftware.htmlunit.UnexpectedPage@6d8d73` but when i pass url thruogh brouser i got a data Json…
narendra
  • 451
  • 3
  • 12
5
votes
2 answers

Is HttpUnit deprecated / inactive / not supported?

When I explored and worked on HttpUnit 3 yrs back I liked it for what it does. Though after 3 yrs of not tracking it, when I suggested a solution based on it to my colleague, he told me it is deprecated? The apache status tells it is active. No…
arunram
  • 623
  • 7
  • 11
5
votes
1 answer

How to send Multipart request with Httpunit in Java

I am essentially asking the exact same question here. As you can see, there are no solid answers. All I want to do is send a file using HTTPUnit to test a java servlet. So, I have a Java Servlet with this code (dumbed…
jlars62
  • 7,183
  • 7
  • 39
  • 60
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
3
votes
3 answers

Customize maven build

Is that possible to customize a maven build lifecycle without writing a plugin? I want to customize my project to package it without running tests, then run the tests. The background is that the tests are running on HTTPUnit and it needs a fully…
khachik
  • 28,112
  • 9
  • 59
  • 94
3
votes
0 answers

org.mozilla.javascript.EvaluatorException: illegal character when i using HtmlUnit

I am using the HttpUnit to simulate the submit button click of the form that designed into the specified url. (I am using http://stu21.kntu.ac.ir/Login.aspx). I use the code as follow to get response page. WebConversation conversation = new…
Hossein Mobasher
  • 4,382
  • 5
  • 46
  • 73
3
votes
1 answer

Sending file with POST request with HttpUnit

we have a REST service, which we would like to test. I thought about using HttpUnit for this purpose. We sent POST request to a resource URL and after receiving the request we retrieve the file from request. In our server code we have something…
Jakub
  • 3,129
  • 8
  • 44
  • 63
2
votes
1 answer

Maven: How do I reconcile this dependency conflict?

I have this Maven dependency ... javanettasks httpunit 1.7 test I need this for some tests that I'm…
Dave
  • 15,639
  • 133
  • 442
  • 830
2
votes
2 answers

java ee api is missing on project classpath while using httpunit for servlet testing in maven

I want to run the servlet testing example available here using maven. Javaee web api should be declared as provided: javax javaee-web-api 6.0
Jérôme Verstrynge
  • 57,710
  • 92
  • 283
  • 453
2
votes
1 answer

Performance comparison of HtmlUnit vs HttpUnit

I would like to write crawler which supports cookies storing operation and sessions. There are two different implementations of java headless browser. HtmlUnit has better support of javascript and perhaps html parsing. But is there are any reason to…
yura
  • 14,489
  • 21
  • 77
  • 126
2
votes
3 answers

Selenium and HTTPUnit

What's the pro's and cons for both and why should I use either of them for functional testing? Regards, Jonas
jonasespelita
  • 1,660
  • 5
  • 25
  • 31
2
votes
2 answers

Challenge for realm in HttpUnit

The HttpUnit API for webclient says that "Will only send the authorization header when challenged for the specified realm." What does challenged mean in this case? How does HttpUnit recognize a challenge?
rest_day
  • 858
  • 2
  • 13
  • 28
2
votes
1 answer

fater web page source provider

I am trying to pull page source in java with proxy. I have used httpclient, httpunit and HttpURLConnection, all of this taking 5 sec when i goes for page source without proxy but I uses proxy then its taking 12-15 sec for a single page. Is there any…
Khoyendra Pande
  • 1,627
  • 5
  • 25
  • 42
1
2 3 4 5