Questions about testing applications written in Java, a popular programming language and runtime environment which allows Java programs to run unchanged on most hardware and software platforms.

learn more… | top users | synonyms

0
votes
1answer
685 views

SSO in Selemium web driver

I am trying to run selenium web driver(Firefox) test cases which will need a single sign on (web). Issue over here is i have to sign in manually with my OTP every time i tear down the test case. So i ...
4
votes
2answers
175 views

Can I (in Eclipse/java) automate the logging of all enters and leaves into or out of all functions, including library ones?

While comparing the run of my wizard and a similar standard one, I have to check all entrances into all functions for both cases. Is there some tool that can automate the process? I can't do it by ...
3
votes
4answers
7k views

Downloading a file in Internet Explorer through Selenium

I have to automate a case in which I have to download an Excel file using Selenium IDE.I have done this in Firefox by using custom profile feature which automatically downloads file and saves it into ...
5
votes
1answer
4k views

“java.lang.NoClassDefFoundError” Error when running Selenium RC script

First of all I have recorded the script in Selenium IDE, then exported into the junit4 (RC), then copied the junit4 (RC) code into Eclipse IDE. When I run the project with junit test, I found the ...
1
vote
3answers
2k views

Handling multiple windows using selenium

Is it possible to work on multiple windows using selenium, when I searched on the net, there are only explanations and codes available for Selenium2 webdriver version. For the normal selenium I can't ...
0
votes
1answer
131 views

Hyperlinking FindBugs report to source code

By default, the HTML report generated by FindBugs specifies the name of the Java class and line number(s) of each issue it reports. Is there a way to tell FindBugs to hyperlink the report to the ...
2
votes
1answer
235 views

Har File Monitoring

I'm looking to automate some testing of calls we make to an external service. I've gotten Browsermob-proxy and selenium to play together nicely. I'd now like to monitor the requests as they occur, ...
0
votes
2answers
2k views

Selenium automation on Oracle applications

Is there a way we can perform Selenium automation (with Java) on Oracle applications? On the Oracle website they have given ways by which we can convert the Oracle applications into Oracle ADF faces ...
-1
votes
3answers
551 views

Launching WebDriver from a servlet.java throws exception

I prepare a web interface that I could launch the WebDriver. I used servlet.java. I'm using JBoss application server, when I try to run it I receive the following exception 13:39:40,779 ERROR ...
3
votes
1answer
1k views

How to get XPath of a list element generated by AJAX?

When I type a keyword ("Documents 1.xml") driver.findElement(By.id("documentSelect_enter")).sendKeys("Documents 1.xml"); in this field: <input id="documentSelect_enter" type="text" ...
3
votes
2answers
676 views

How to use TestNG to create multi-user tests scenarios?

What I need to do is to create UI test cases for our application and we have decided to use Selenium with TestNG (we're still open to other options if there are considerable advantages). The tests we ...
2
votes
3answers
2k views

Unable to get Selenium Web Driver running with Java

I tried running the following code to start running Selenium WebDriver on Java, using the following code import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import ...
5
votes
2answers
224 views

which version of jmeter-plugins (>=0.3.0) can work under JDK 1.5?

Which version of jmeter-plugins (version >= 0.3.0) can work under JDK 1.5? And which version of JMeter is compatible with this version of jmeter-plugins?
2
votes
2answers
1k views

TestNG Mark a Test as Failed if a Particular Path is Used

Is there a way to mark a test as failed in the TestNG framework if a certain path is followed? I know I can use system.exit(1); or something similar to mark an abnormal termination but it doesn't ...
3
votes
1answer
146 views

System / Integration testing for 'daemonized' components in Java

We have a moderately large collection of Java components (some using some JNI). Each launches as a daemon (or Windows service) using the Tanuki package. Some publish SOAP or REST endpoints, others ...
2
votes
1answer
1k views

What is the Java code to subclass HtmlUnitDriver to support http authentication?

Is it possible to subclass a Java object in the constructor? I am a Java newbie trying out Selenium example in a faq, ...
4
votes
1answer
5k views

Selenium form input sendKeys doesn't always work under IE

We're trying to use Selenium 2.0b3 to verify behavior of a Java web site we've recently acquired from a third party. The site often uses AJAX to plop HTML replacements onto the page. Internet ...
5
votes
2answers
485 views

Testing Java or Silverlight plugins embedded in a page using Selenium?

We have a product that defaults to a Java plugin to upload files, and then Silverlight after that if Java's not installed. There is a third fallback of a HTML 4 + JavaScript uploader, but I'd like to ...
2
votes
1answer
275 views

Using Scala to build unit tests for Java?

The idea of using Scala to build unit tests for Java code has been thrown around. People are making the claim that Unit tests would be less effort to write because there's less boilerplate. In ...
1
vote
1answer
653 views

Questions on Developing TestNG based automation for Java based web services

• In case of .NET 2.0 ASMX you can post HTTP requests for the web service using HttpWebRequest and HttpWebResponse • Is this approach possible for java based web service as well, referring to ...
3
votes
1answer
4k views

Looking for a valuable Mockito tutorial

I'm looking for a good Mockito tutorial. I found some things, but either they are incomplete (which means: if you need something a bit more complicated than the basics, forget it), or they are badly ...
10
votes
6answers
2k views

Tools for Java software testing

I'm currently working(almost finishing) a Java project that consists on a server application and some client applications on the same network, that will communicate with the server only to request ...
5
votes
2answers
241 views

When to start testing a solo project

I'm building myself a solo project. (Java backend, Java AWT frontend. No lectures about AWT vs swing vs *wt, please :-)) It's fairly straightforward Primary server - keeps user information Content ...