Questions tagged [http-unit]

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

References:

63 questions
2
votes
5 answers

HttpUnit WebConversation SSL Issues

How can I ignore SSL certificate issues from the context of the WebConversation or WebRequest object? I know I can create a fake TrustManager that accepts all certificates but how can I set this in the HttpUnit context? Here is the exception I am…
TheWolf
  • 1,675
  • 4
  • 22
  • 34
2
votes
0 answers

Form submit with the form context in HTMLUnit

I have a project where I am converting some old HTTPUnit code to HTMLUnit. Among one of the issues I have ran into is the form.submit() option of HTTPUnit.The form.submit works without having to specifically finding the submit button for that…
suv
  • 21
  • 4
2
votes
1 answer

HttpUnit HttpUnitOptions.setScriptingEnabled not working

I do get strange error. Here is my maven dep: httpunit httpunit 1.7 test
Capacytron
  • 3,425
  • 6
  • 47
  • 80
2
votes
0 answers

"--core-library" error integrating HttpUnit with android

I am trying to run a simple project as a demo of HttpUnit on android. The code does not compile and gives this error Android Dex: [HttpUnitAndroid] the "--core-library" option to suppress this error message. Android Dex: [HttpUnitAndroid] If you go…
rahulserver
  • 10,411
  • 24
  • 90
  • 164
2
votes
2 answers

Patch process for httpunit

I would like to know the currently practiced procedure in patching httpunit. I saw in this thread Is HttpUnit deprecated / inactive / not supported? that Russell has put the httpunit source to his github repo. The FAQ note for httpunit still talks…
elakito
  • 68
  • 4
2
votes
1 answer

Test the jsp pages which includes jstl code in servlet using Httpunit and Servlet unit

I am trying to test the following servlet code using httpunit servlet runner. Here every thing goes fine except jsp pages which includes jstl. public class ListTenantServlet extends HttpServlet { private static final long serialVersionUID = 1L; …
majji
  • 169
  • 2
  • 3
  • 19
2
votes
0 answers

Httpunit test - how to retrieve cookie value

I have written 'Httpunit' test for my web application and I want to retrieve cookies ,but when I am using "web.getCookieValue(String value);" it's returning null . This is my code: public class Test_9 extends TestCase { public void test_9()…
Nutan
  • 513
  • 2
  • 10
  • 16
1
vote
1 answer

Unable to get the number of links on a webpage using HTTPUNIT?

I have started learning HTTPUNIT and found one basic example. In this example it will visit this site. And it will search for the link containing HTTPUNIT. And it will print the number of links on the HTTPUNIT. I tried this example on my machine…
vikiiii
  • 9,246
  • 9
  • 49
  • 68
1
vote
1 answer

Seeing the results ofHttpUnitOptions.setLoggingHttpHeaders(true); internally to an HttpUnit project?

My goal is to be able to use HttpUnit to crawl around my webpage and see what is and is not firing in the background... I have gotten it to connect to my page, and if I set HttpUnitOptions.setLoggingHttpHeaders(true); I see the sorts of background…
A Question Asker
  • 3,339
  • 7
  • 31
  • 39
1
vote
0 answers

How to set authentication parameters in httpUnit?

I am trying to set authentication parameters in httpUnit. The URL that I want to access can only be accessed when authentication parameters are set otherwise it returns Internal server error 500 But its not working when I tried to set…
harsha10
  • 13
  • 3
1
vote
2 answers

HttpUnit and jQuery: EcmaError

Currently I'm developing unit tests for j2ee application. It uses jQuery version 1.4. And when I'm trying to click the link and go the next web page(in java test code), HttpUnit fails with exception: org.mozilla.javascript.EcmaError: TypeError:…
Igor Konoplyanko
  • 9,176
  • 6
  • 57
  • 100
1
vote
0 answers

Displaying reCaptcha from html-unit in GUI

I am currently working on a account creator for various websites (Java code can be viewed here: https://github.com/xushWT/M2AccountCreator) No I am running into a problem where I need to let the user solve google recaptchas manually, which has…
GutZuFusss
  • 138
  • 1
  • 2
  • 15
1
vote
1 answer

Target Yammer API from Back-end, through Office365 login

here is my problem : Entierely from back-end, I want to use the Yammer API, without any real user action. To do that, first of all I have to retrieve a token. To retrieve the token I have to login. From back-end side I use the com.meterware.httpunit…
stephane06
  • 261
  • 1
  • 4
  • 12
1
vote
0 answers

HttpUnit - how to use getTextBlocks

I would like to know how I can access all texts in a web page using http unit. The problem I have is that getTextBlocks only seems to return texts in h1 .. h6 tags. I would like to find the text "Support LS" that is contained in the below HTML…
Adder
  • 5,708
  • 1
  • 28
  • 56
1
vote
2 answers

HttpUnit imports not found in Eclipse

I'm trying to get started with HttpUnit. I made an Eclipse project with a simple example, but there seems to be a neverending stream of unresolved dependencies and imports it can't find. So I'm starting over: I just want to get this tutorial to…
MJL
  • 352
  • 3
  • 11