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

10
votes
7answers
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 ...
6
votes
2answers
249 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 ...
6
votes
5answers
667 views

Want to switch from software development to testing domain

I have 4 years of experience in software development. But I did software manual testing more than software development. I am good in finding tough functionality related bugs. I have passion for ...
5
votes
4answers
2k views

Looking for open source, Java-based tool for performance testing

Goal: I have an enterprise application written in java to test for performance. I need to do it separately, so I will be basically simulating a user interaction over http/https. My findings: ...
5
votes
1answer
6k 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 ...
5
votes
5answers
6k views

How to handle self-signed SSL certificate error in IE8? (Selenium Webdriver + Java)

I am literally stuck to this problem for two days now. Scenario The website that needs to be tested has a self-signed certificate. So Internet Explorer (8 in Windows XP) shows "The security ...
5
votes
2answers
249 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?
5
votes
2answers
572 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 ...
4
votes
3answers
820 views

What Concepts of Java do i need to learn to use Selenium Webdriver?

I want to learn Selenium WebDriver automation using Java. I have done manual testing before and want to learn automation. I just know the basics of Core Java. Could you please suggest me the Core ...
4
votes
1answer
6k 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 ...
4
votes
2answers
210 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 ...
4
votes
2answers
1k views

Issue with losing focus of “hover” command when the mouse is outside of the active window

If I automate mouse actions using Selenium2/Webdriver in combination with Firefox 12, I can easily get the "mouse" to move to and hover over a context menu so the sub-menus are seen. However, if I ...
4
votes
1answer
495 views

Watir WebDriver in conjunction with Java [closed]

Is it possible to use Watir WebDriver in conjunction with Java? I have to execute some Java methods for dealing with data in DB in order to simulate different situations and test website UI using ...
3
votes
4answers
12k 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 ...
3
votes
2answers
166 views

Isolating defect in distributed event-driven system

Our system takes an object from external system every time the object gets changed (change event), processes it and put it back processed into this external system. So, end-to-end testing is about ...
3
votes
2answers
155 views

What kind of test cases we can not automate in selenium webdriver - java

I want to know what kind of test cases we can not automate using selenium webdriver. I do not want to use any 3rd party tool (Autoit, etc..).
3
votes
1answer
386 views

Testing EJB based web service - Java vs .NET vs SoapUI

I am testing a workflow application that takes the user step by step through each task. The inputs in each task are basically just barcodes or some numerical values. Fortunately, each task has an EJB ...
3
votes
1answer
172 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 ...
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 ...
3
votes
2answers
157 views

key points for choosing a framework in selenium webdriver - Java

My query is related to this Choosing framework type for selenium RC/Webdriver I am a beginner in Selenium and want to know how to select or choose a framework in Selenium Webdriver. What are the key ...
3
votes
3answers
4k views

Unable to upload a file using selenium/web driver running with java

I have a complicated interface where uploading a file is three step ( The forum is not allowing me to add screenshots of my window so please try to visualise it) step 1 click on browse tab and select ...
3
votes
1answer
2k 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, ...
3
votes
1answer
527 views

Parameterized JUnit tests with HtmlUnitDriver leading to test termination

I came across an unusual issue with my automation tests while using the HtmlUnitDriver. I have been using the junit parameterized class to iterate over a list of urls to run some of my tests. The test ...
3
votes
3answers
2k views

Handling popup with many buttons using Selenium webdriver

I'm using Selenium web driver with Java language. When there are two buttons in a popup i.e. ok and cancel , it can be easily handled with web driver using the following code: Alert alert = ...
3
votes
1answer
2k 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
815 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
1answer
6k views

Selenium Webdriver | Unable to locate element error

I am trying to run the below code but getting error. Can you please point out the issue? import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import org.openqa.selenium.Keys; import ...
2
votes
2answers
1k views

Where I can get all the commands related to Web Driver / Selenium 2

I am not able to find all the commands for Web Driver / Selenium 2. Please help me providing the same. Thanks
2
votes
1answer
2k views

Fieldlevel validation in Selenium Webdriver (Java)

how to test validations for "FIRSTNAME" textfield. Below are the details and code. URL: http://www.vrlbus.in/vrl2013/register_customer.aspx Special chars: #!#!#$@#!$@!$@#$%#%^#$^^&%&$%* ...
2
votes
2answers
223 views

How and where to store dynamic result/data using webdriver java

I want to know "How and where to store dynamic (Search results) result/data", I am getting the results and not sure what to do next. Also, after saving these results I want to use this in another ...
2
votes
2answers
70 views

Robot framework installation

I want to learn robot framework with java and python, but not sure how to use this?. I searched over the net but did not get steps to instal robot framework. I installed only selenium2library file in ...
2
votes
2answers
119 views

How do I compare the performance of two .toString() methods?

Say I want to compare the performance of Java's StringBuilder.toString() with new String(char[]) for strings from one to 3000 characters in length. I do know beforehand how long the resulting string ...
2
votes
1answer
67 views

Enforcement of quality as a runtime requirement

I come from a background that strongly emphasizes automated testing baked into the build process. You commit, the code is checked out by the build system, compiled, and tests run against it. If it ...
2
votes
3answers
533 views

Looking for a content-aware library for regression testing of PDF files

I'm doing some automated regression testing on a web application using Rational Functional Tester with Java. I need to test some PDF files produced by that application, comparing them with a "base" ...
2
votes
2answers
2k 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 ...
2
votes
1answer
2k views

Selenium Webdriver code in Java to search hidden Objects in Web Browser

I am trying to create a Selenium Web driver java code where I can find all the hidden objects on the webpage and can be accessed. I want the count of all those hidden objects. Which property I can use ...
2
votes
1answer
317 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, ...
2
votes
4answers
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 ...
2
votes
1answer
381 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 ...
2
votes
2answers
123 views

How to ignore/accept/avoid SSLHandshakeException while trying to check for broken links?

I'm trying to verify if a link is throwing response code other than 200. Link that I'm trying to verify is https:// and after process has run, it throws this error -- ...
2
votes
2answers
169 views

Selenium opens browser and loads page, then stops

Selenium opens browser and loads page, then stops. I have inherited a selenium project with no internal documentation and I'm a bit stuck on how to get it up and running (I am new to Selenium). We've ...
2
votes
2answers
169 views

Dynamic whitebox testing and coverage metrics for Java systems?

What coverage measures/metrics are useful for unit testing and for integration testing of Java or other object-oriented systems? Context: We would like to establish a better test process. Our ...
2
votes
1answer
92 views

Test automation for .NET / Java Project relying on app container

I am looking to a testing / continuous integration tool which can help me with the following: 1) Inside a Maven project, allow me to run a JUnit test case that, using some API, deploy an application ...
2
votes
1answer
6k views

Selenium WebDriver | Unable to switch to apparent pop-up

I am trying to automate Peoplesoft 9 based Web application on Firefox 20.0.1. On clicking a search icon another form opens which I thought to be a pop-up and tried my code - ...
2
votes
1answer
152 views

How to debug heap thrashing problem

My application is causing heap thrashing. I have the heap dump but I don't know how and where should I start to look for problems? This is a 6 GB dump. Please recommend some suitable heap analysis ...
1
vote
6answers
7k views

Selenium test case fails due to page load time

I run nearly 30-40 test cases twice a day. And everytime some test case fails due to page load time. Infact i have explicitly mentioned Thread.sleep("2000"); wherever i feel it takes more time to ...
1
vote
4answers
118 views

How to work with changing element id in the html code

I am working in a ERP where the elements id are changing/rotating randomly. so if I am writing a code to locate a id, next time I run the selenium code it gets me error as the id changes by that time ...
1
vote
5answers
521 views

How to locate the X-path of an element in eclipse accurately?

I am working in a project in which automation is done using Appium Tool.I felt bit difficult to track the X-path of an Image or Textbox in Eclipse while scripting.Sometimes the X-path will be given as ...
1
vote
1answer
90 views

Where does the “helper” method get placed within a test script?

I'm new to automation, and programming, for the most part. I have a test script where I have to verify the presence of certain elements within a page I am testing. At the moment, I have multiple ...
1
vote
1answer
6k views

How to compare values from the list or from dropdown list in webdriver (Java)?

Below is my code and html code, please let me know how to compare values. When i executed i am getting same result (Mateched) for multiple times. But i want to compare and display result as "Matched" ...