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
0answers
7 views

Why would StringUtils return the incorrect # of matches of a substring?

I am using StringUtils from the apache commons library to check the # of matches of a substring within the source code of an html page. I have converted the page source using the webdriver command: ...
2
votes
1answer
150 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 ...
0
votes
0answers
124 views

Data driven testing using SeleniumWebdriver,TestNG and Apache POI

! I'm using Selenium Webdriver, TestNG and Apache POI for my data driven test. Below is the code I'm using but the test is failing with the following exception: SKIPPED: testLogin ...
0
votes
1answer
322 views

Selenium with Java to scrape data from website

I am trying to scrape data from a site I did code for. I want to scrape data on button click event but when I run my program it throws an exception Exception is: java.lang.NoClassDefFoundError: ...
1
vote
1answer
68 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 ...
0
votes
3answers
14k views

How to iterate a list of WebElements and print the values one by one to perform some action

List<WebElement> allLinks = driver.findElements(By.xpath("//div[@class='datepicker']/div/table/tbody/tr/td/table/tbody[2]/tr/td[@class='' or @class='datepickerSaturday' or ...
0
votes
1answer
97 views

Android / Java Unit-Testing Clarification

While looking up for unit testing for Android applications, I came across a lot of voices over how it is difficult to test-unit an Android app. For example: Dependency issue - why is this a problem ...
0
votes
2answers
73 views

Keys.ARROW_DOWN does not select an item in the 'Select Box'?

I have a select box which has 3 values in the drop-down. When i click on the select box and then further use click() on the value item , it works fine. but when i use Keys.ARROW_DOWN its displays the ...
0
votes
1answer
115 views

How to modify testNG report in selenium java

I am running my script in java and getting the results in testNG. But in my application after filling up the form I am getting a confirmation alert message. I am able to read that alert message and ...
0
votes
4answers
823 views

Robotium How to click or enter or select a file in Downloads folder on android device to open options

Robotium How to click or enter or select a file in Downloads folder on android device to open options as (Gallery, Image Gallery, Photos, ...) Here is my code: String filepath = ...
0
votes
1answer
56 views

Selenium2 / WebDriver: How to click an <i> element in an <a> element?

I got stuck for the below code.it has an edit icon for which code are follows: <a href="#tradeModal" id="tradeModalEdit" data-toggle="modal" class="pull-right" style="margin-left: 12px;" ...
1
vote
1answer
262 views

“session has expired” error - after clicking a button with webdriver in IE8

After clicking a button in my application with webdriver, it gives me “sorry..your session has been expired” in IE8 and i am unable to proceed. But I am able to do it manually. Now to proceed with ...
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 ...
0
votes
5answers
140 views

Validating HTML code

I am testing a class that takes 1 string and generates an HTML page around that string. So I pass it the string Math and it returns to me a whole HTML page as a string containing that Word and with ...
0
votes
3answers
101 views

Selenium: dealing with intermittent cases of element not found

Sometimes it works and sometimes it doesn't. I've tried implicit wait: driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS); I've tried explicit wait: ...
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 ...
0
votes
1answer
74 views

automating selenium 101

I'm just getting started with selenium: package selenium; import java.util.List; import java.util.concurrent.TimeUnit; import java.util.logging.Logger; import org.openqa.selenium.WebDriver; import ...
0
votes
3answers
92 views

Selenium (Java): Which IDE to use; Eclipse or Netbeans

For a new project i want to start automating tests using Selenium. I'm going with Java as the object that has to be tested is a Java application. In my company most people use either Netbeans or ...
0
votes
2answers
118 views

How to Implement Page Object and Page Factory Pattern in Selenium Webdriver?

I am a beginner in learning selenium Webdriver. I am not able to understand how page object and factory models works and how it can be beneficial? Kindly help me explain it with detailed explanation. ...
0
votes
1answer
69 views

Getting started with Rest-Assured for REST-Api Testing

I am new to REST-Api testing. i am getting started with Rest-Assured for Rest-Api testing. i am having an issue in my first ever testcase. The code is as follows: @Test public void ...
0
votes
0answers
25 views

Display tracked changes in Jubula

I'm using Jubula 8.0 (Eclipse Feature 2.3) and I've turned on the 'Track changes' check-box for a project. Where can I see the changes that anyone made? Is there a CVS/SVN-styled View in Eclipse to ...
2
votes
2answers
102 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 -- ...
3
votes
2answers
112 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 ...
0
votes
1answer
83 views

How to run data driven testing using testNG in selenium

I am using testNG framework and tried to import data from excel sheet in my local. If I run the code as simple java application then its running but with testNG its not public class NewTest { public ...
3
votes
2answers
116 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..).
0
votes
1answer
63 views

How to make the opening of browser(all test in one browser) static in testng for selenium [duplicate]

I am using selenium and testNG framework for my project. Now what is happening is each class is opening up a browser and then run its methods, eg, if I have five classes, then five browsers will open ...
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" ...
0
votes
1answer
45 views

Testing Verify Method Call Without Argument In Test Class

I have a class which takes a message with payload String. The payload is then split and used to create an Entity which is passed to DAOInterface to persist. How can you test the call ...
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
1answer
146 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 ...
4
votes
3answers
468 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 ...
2
votes
2answers
162 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 ...
1
vote
4answers
111 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 ...
6
votes
5answers
583 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 ...
-1
votes
1answer
38 views

Selenium for MacOS Setup

I wanted to know if there is a good source for setting up Selenium in Eclipse on MacOS. I have MacOS 10.9.4.
0
votes
1answer
417 views

How to pass two strings (Username and Password) one by one in the two different text fields (Username and Password) in webdriver (Java)

I am having two different Strings by name username and password. And i want to pass these string values one by one (ONLY one value from username and one value from password) into username and password ...
1
vote
1answer
296 views

Testing ExtJS UI with WebDriver

Our Web app is using ExtJS framework for rendering UI. However, ExtJS-rendered UI is hard to test automatically because: For most clickable elements, ExtJS uses generated ids like "ext-gen-345" ...
0
votes
1answer
266 views

Is parameterized constructor (Java) supported in selenium webdriver?

I was asked in an interview whether Selenium Webdriver supported parameterized constructors. Example: import java.util.concurrent.TimeUnit; import org.openqa.selenium.By; import ...
0
votes
2answers
1k views

Selenium WebDriver with Java: How do I read username and password from an excel file to Java to use in website testing [closed]

I am using Selenium WebDriver with Java. I have an Excel spreadsheet with two columns, one for username and another for password. I need to read those values and use them to create new users.
1
vote
1answer
190 views

Using FluentWait Class to wait until a condition is true in Selenium Webdriver?

I am not able to understand the use of new function() and apply() in the following code while learning timeouts using Fluent Wait method to set timeout in Selenium Webdriver script in java. Wait ...
0
votes
2answers
65 views

Load Testing Options for Clojure Application

I have a mostly back-end, non-user facing web application that I need to have load tested. I was wondering what the options were that are tailored for my use case. It needs to be a load testing ...
2
votes
2answers
64 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 ...
-1
votes
3answers
176 views

how to get the count of elements in list box

working on selenium + java,. can any one help me... I have a drop down list box, and need to get the number of elements in the list box. <select id="id"> <option ...
1
vote
1answer
469 views

Selenium webdriver java with jdbc

I am using selenium webdriver with Java jdbc. Below are my queries. First: I am trying to login to the application with username and password from database (Using SQL Query). I am getting the ...
1
vote
2answers
1k views

How to capture a series of screenshots in Web Driver using Java

I Just wanted to know, that how we can take a series of screenshots / a video recording for a screen using Selenium 2 / Web Driver with JAVA ? Please provide the answer or the lick where I can get ...
1
vote
10answers
5k views

Should I learn Python or Java to get into test automation? I am new to programming

Should I learn Python or Java to get into test automation? I'm new to programming. Please share your thoughts or links to any useful information.
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 ...
0
votes
1answer
87 views

Using Jtidy to parsing HTML

I am using Jtidy I pass an InputSteam and then I tried to validate whether or not the XHTML code in the InputSteam is valid. InputStream s = new ...
0
votes
2answers
6k views

Error upon starting Select server “Could not find agent library JVMHOOK”

I am attempting to run the Selenium server for the first time on my machine and am receiving an error when running the jar, or when attempting to find the java version. Here is the error: ...
0
votes
2answers
457 views

Navigate to previous page using Selenium

I know there's a driver.navigate().back() but that's not what I'm looking for. Let's say a user is on PageA, they click on a submit button which takes them to a submit page. On that page, there ...