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

5
votes
1answer
32 views

Jmeter: Getting error in non GUI mode

While trying to execute Jmeter from command line in non GUI mode I'm getting errorlevel=2 error message. What I did is, Navigate to the Jmeter bin directory in command prompt. Run the ...
0
votes
0answers
16 views

Help Finding image in Sikuli X in Java

I am having an issue trying to find an image on the screen, I tried doing it in two different ways and it doesn't seem to work for me. I am trying to do this with Appium running on IOS simulator which ...
0
votes
1answer
39 views

Where to host Selenium Script for Client

I have been making one automation script for client to make his various task to automate. Now script is done and working fine. I have created script in My local pc. So what is best way to deliver it ...
0
votes
1answer
34 views

getting an error in selenium using java with mySQL: java.sql.SQLException: No suitable driver found

package SeleWeb; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import java.sql.*; public class seldata { public static void main(String[] args) ...
1
vote
1answer
55 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 ...
0
votes
2answers
55 views

how do i use list for selenium web driver in java

how do i use list for selenium web driver in java I need to select id which are continuously changing, and one id is in one row. need to select id from each Edit : <tr id="tr-132885-id" ...
0
votes
1answer
81 views

Phantomjs stack error

[ERROR - 2015-11-26T10:17:14.013Z] Session [9dd2e3a0-9426-11e5-986e-45afd4903e2f] - page.onError - msg: TypeError: null is not an object (evaluating ...
1
vote
1answer
89 views

QTP does not identify / recognize java objects

I've been using QTP 11.0 on my PC quite a long time and had no problem with Java-apps (Java 7 Update 21 x86) identification (OS Windows 7 Pro 64-bit). But when I tried to install QTP on the server ...
1
vote
1answer
127 views

How to select tab buttons in java tab panel with QTP

I want to switch between tabs in Java application using QTP 11.0. The problem is that tab buttons are not seen by qtp object spy as separate objects, the whole tab pane is seen as JTabbedPane: Any ...
0
votes
0answers
45 views

How to integrate Jbehave and TestNG?

I googled and found most of scripts were written in Jbehave with junit. But I'm trying to integrate Jbehave with testNG framework. And the following were I tried so far. Feature file: Scenario: ...
5
votes
1answer
192 views

How do I verify a Link URL using Selenium Webdriver / TestNG?

I'm trying to do an assert to make sure a correct XMLHttpRequest is made. I know that I can get the exact Request URL from the Developers Console -> Network tab -> XHR tab's general information ...
5
votes
5answers
9k 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 ...
0
votes
0answers
24 views

what is the advantage of using roboectric for android UT over espresso?

I'm new to android testing. I have read espresso is more UI based framework and robolectric is a UT framework. I want to add UT to existing android project with espresso framework in use already. ...
1
vote
2answers
45 views

How high level should be my unit-test?

I have a program with many classes. I manage the DI with Guice, btw. I wanted to write in-progress tests to my code (unit tests and higher level). I have few questions\difficulties: How high ...
1
vote
1answer
62 views

How to open an item in java menu using QTP

The task is to open (click) menu item, e.g. File >> Open using QTP 11.0 Object Spy identifies first level menu element (and does not open drop-down pane, so items like New, Open... should be ...
1
vote
2answers
36 views

Exception Handling when accessing sub menu

I have a method that uses the Actions class to access a sub menu link. After hovering the main menu link I need to pause before clicking on the sub menu link. So I added a thread.sleep(). At this ...
0
votes
2answers
104 views

I get an exception, “Element is no longer attached to DOM” when I run my code, but In Debug mode, it works fine. I'm using Java and TestNG

In the webpage I'm testing, there are 3 options in a drop down and on selecting each option, rows in a table gets populated. I'm just trying to locate the table value through xpath and I am getting an ...
0
votes
1answer
176 views

Can not find selenium webdriver element in HtmlUnitDriver but can find it in Firefox

HtmlUnitDriver driver = new HtmlUnitDriver(); driver.setJavascriptEnabled(true); String baseUrl = "http://www.biletix.com/search/TURKIYE/en#!city_sb:istanbul,date_sb:weekend"; ...
1
vote
1answer
51 views

Is there a software that tells the number of possible flows when “inputing” an workflow?

I'm making a project that needs to break some big workflows into pieces and I need to know how many possible flows does the Workflow (that I have "inputed") before has. Does anyone know any software ...
-1
votes
1answer
486 views

How to handle multiple columns of Data from Excel using Apache POI for Selenium WebDriver

I am new to Selenium WebDriver and I am automating an end to end test. My doubt here is, all the data for the test is stored in an excel file which contains more than 15 columns of data. Each @Test ...
1
vote
1answer
49 views

APK 'Internet Permission' is missing on SeeTest Automation tool

Unfortunately after upgrading SeeTest Automation to v 8.7.85, we are getting an error as 'The APK file should have an Internet permission in order to launch application in instrumented mode'. We are ...
3
votes
3answers
198 views

Use Page Object vs other models for Automation in Selenium Webdriver? [duplicate]

I have been doing automation testing since last 2 years and I am following below ways for any website and mobile application automation testing. Create Global Method class where I implement all test ...
4
votes
3answers
238 views

Page Object Model or External property file for Selenium Object Repository

I am a beginner in Selenium WebDriver (Java with TestNg). I'm trying to create a framework of my own. My question here is what would be the better option to store my objects (basically all the ...
2
votes
1answer
44 views

SeeTestAutomation: Is code export/record the correct way ? What are cons?

I am working on a new mobile application testing tool called SeeTest. We have done a feasibility study and decided to opt for SeeTest as tool of choice. Now we are facing few challenges I would ...
0
votes
1answer
109 views

unable to find element

I have the following code //import java.io.IOException; //import org.apache.bcel.generic.Select; import org.openqa.selenium.support.ui.Select; import org.openqa.selenium.By; ...
0
votes
1answer
173 views

Selenium hangs for modals in firefox browser for very long time

After opening the modal window or modal overlay , performing any click operation within the modal takes very long time. It doesn't throw any exception neither does the execution stops. ...
2
votes
1answer
90 views

How to get an active window title between two browser tabs/windows using Selenium Java

I can switch between two tabs/windows but my requirement is to know or get active window between them. In my project, on a click of a webElement of a page a random pop(tab/window) gets opened and I ...
5
votes
1answer
2k 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" ...
1
vote
1answer
65 views

How to handle java dynamic objects in QTP?

How can I handle Java dynamic objects in QTP 11.0? There is a smoke test scenario where simple search is performed and the first occurance in JavaTable is selected (by double click) then sub-window ...
1
vote
2answers
73 views

Webdriver : To upload images using the sendkeys() and autoit tool

What is the difference between using sendkeys() and autoit, which helps to upload images.
1
vote
0answers
41 views

how to parse the multiple values using data bank or CSV file in OFT(Oracle functional testing)

I am working on the OATS (Oracle Application test suite) tool for OFT. Written code in java by using the property file & added the data bank to the script. It takes only the first values both in ...
0
votes
0answers
330 views

Stale Element Reference Exception:Element is not attached to the page document

I am getting stale element reference exception while running a loop. WebElement ControlTypeOp=driver.findElement(By.xpath("//select[@name='ctl00$ContentPlaceHolder1$ddlControl']")); Select ...
1
vote
1answer
1k views

Webdriver : How to perform scroll down an element (example div) using selenium?

The Scroll element in the page is actually a div with scroll bound to it. Here is the HTML snippet. <div class="slimScrollBar" style="background: none repeat scroll 0% 0% rgb(137, 137, 137); ...
2
votes
2answers
88 views

Unable to click on button

For this line, driver.findElement(By.name("importbutton")).click(); It is throwing exception: Element is not currently visible and so may not be interacted with Command duration or timeout: ...
2
votes
3answers
79 views

Is this a good test for a selenium developer?

My boss has given me the assignment of interviewing one of the new automation engineers. The only task left is the technical one, and I have been thinking about a good test that I could give him. I ...
1
vote
1answer
73 views

Parameters with DataProviders

Is there any way to use Parameters with DataProvider together in Selenium ? @Parameters({"safaf"}) @DataProvider(name="sss") public void hhhhh (String safaf){ }
4
votes
4answers
2k views

How does one get started with web test automation using Selenium?

So I've been testing web based analytical software now for the past 4 years or so with mostly manual techniques. But for 2015, I've set myself the goal of getting setup and start writing automated ...
1
vote
2answers
60 views

Learning Java & selenium [closed]

I have recently started learning selenium and Java. I need your assistance as to how should i go about it. Thanks
5
votes
1answer
9k 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 ...
2
votes
13answers
17k 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
4answers
213 views

Daily tasks/Anything fun & challenging to automate with Selenium? [closed]

I'm currently studying test automation with Selenium and Java. It's very fun, but I have only done basic stuff. I've been thinking about something fun that I can do with selenium, for instance, ...
1
vote
2answers
56 views

My page takes long time to load so am not able to identify an element from the page.Please provide me a solution

driver.findElement(By.id("oPortalUser_LoginID")).sendKeys("xxxxx"); driver.findElement(By.id("oPortalUser_Password")).sendKeys("xx"); driver.findElement(By.id("xxx")).click(); After clicking on ...
1
vote
2answers
124 views

How to add HTML/text content of a <div> into an array/list?

I am new to selenium and working with xpath. I am using selenium and java to write automated tests for chat messaging web application. I am looking for a way to take a webElement which contains ...
1
vote
2answers
275 views

Is there a way to shorten the time Selenium2/Webdriver takes to look for an element when a failure is expected?

Selenium2/WebDriver is optimized for positive testing paths. My web application hides elements based on user permissions. I am looking for an element and throwing-catching the exception when it does ...
3
votes
2answers
3k 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" ...
2
votes
4answers
921 views

Which language to choose for Appium - Python or Java?

We have an iOS application (written with Obj-C and now starting to incorporate Swift) that we want to write tests for using Appium. Our test team comprises of people who have little programming ...
1
vote
1answer
37 views

Function Key issue with selenium [closed]

How to press function keys like F12 using selenium (java). Please help me in this. Thanks in Advance
1
vote
1answer
104 views

Using tagged hooks to run tests with different browsers

I've looked at resources like here and here, but these solutions are not working for me. What I want to do: without involving much heavy machinery (unless I have to) and without using a third-party ...
6
votes
4answers
3k 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: ...
1
vote
0answers
42 views

I am automating a page which will open up a PDF while clicking on a link. After that I have to do the operations in the newly opened window

This is the code for transferring control for (String handle : driver.getWindowHandles()) { driver.switchTo().window(handle); ArrayList<String> windowTab = new ...