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
2answers
20 views

How to identify element with knowledge of partial text for any tag (eg. div,span etc.) contains?

My source goes like this: <div name="something" id="something"....>IPS125</div> the number after IPS always changes. So I need to give the identification attribute as partial text ...
0
votes
2answers
35 views

Using boolean to select gender on a form

I am creating a test suite using appium/selenium java and it was suggested that I use a boolean to select the gender on a registration form. The page objects on the gender page are male, female, and ...
0
votes
2answers
342 views

Difference between Singleton, POM, Abstract design patterns

These are the three most popular design patterns in JAVA. Most Selenium WebDriver projects are build on these. What is the difference between these three, with examples? Does Choosing a pattern also ...
3
votes
1answer
64 views

C++ app automation on multiple platforms

Need to automate C++ application testing on Web, Mobile (iOS, Android) and Desktop (Windows, OSX and maybe Linux). Searching for open source tools only and automated tests will be written using Java. ...
2
votes
1answer
60 views

Open source tools for automation of testing Java GUI applications

The testing tool for Java GUI applications I know is: Jemmy - library that contains methods to reproduce all user actions which can be performed on Swing/AWT components (i.e. button pushing, text ...
1
vote
1answer
17 views

Testcase fails in Jenkins but passes locally via testNG.xml in IDE

I've come across a strange problem when I execute my testcases via testNG.xml they are fine and passed but whenever I execute the same testcase in Jenkins I got the following exception Element is not ...
1
vote
1answer
52 views

Driver lost focus

I have one test case with java selenium webdriver. When I go to the login, everything is OK, but when I go to the other click in the new show, driver can´t find the object. Selenium IDE captured the ...
1
vote
1answer
326 views

How to pass arguments to selenium from autoit script

Autoit has a order value ,which I want to pass it to database as argument to get table contents of that order id. I tried passing from command line ,but I don't want the arguments to get passed from ...
1
vote
1answer
82 views

Issue in executing testcases in TestNG(java)

How to run other tests in TestNG after one test is failed using Java For example: @Test(priority=1) public void Online1(){ //code } @Test(priority=2) public void Online2(){ //code ...
1
vote
1answer
258 views

WebDriver - Using loadablecomponent design for URLs with query parameters

For example if the url is - http://blah.com?origin=home&id=54&level=2. This could be a dynamically generated link on a webpage with 'id' and 'level' values from the DB. Now if i want to use ...
0
votes
1answer
40 views

Email content checking

I am doing automation testing. In our web application the employees get daily mail notification. what i need is ,to write test case to check the daily emails. The emails contents are the services that ...
0
votes
1answer
45 views

Cannot get a text value from a numeric cell

Cannot get a text value from a numeric cell while reading numeric data from an xlsx file in apache poi excel read, the following is the code snippet to read data from excel I've mix of columns ...
0
votes
1answer
37 views

Selenium: Isolating Assert Fail in Excel Data Driven Loop

Firstly I would like to point out that I'm a beginner when it comes to selenium so I apologise if this is not presented appropriately. I would like to incorporate data driven testing into my ...
0
votes
1answer
66 views

Select multiple options and selection values will come from Excel

What I am trying to do is select multiple options from this example site while holding CTRL http://www.htmlcodetutorial.com/forms/_SELECT_MULTIPLE.html The multiple selection values would come from ...
0
votes
1answer
64 views

How can I execute selected test cases from list of testcases in TestNG at runtime?

I want to create a page with the details of test cases (say a HTML Page with some content). Say the testcases will be listed there. When i want to run the test cases then I will select them and click ...
0
votes
1answer
98 views

Exception in thread “main” java.lang.NoClassDefFoundError

I am trying to do this: http://www.softwareishard.com/blog/firebug/automate-page-load-performance-testing-with-firebug-and-selenium/ Below is the screenshot taken from eclipse package ...
0
votes
1answer
58 views

Why JavaObject can not be addressed with descriptive programming in UFT 12.52

I am trying to address JavaObject (JPanel) by means of descriptive programming (DP) JavaWindow("label:=some label").JavaDialog("title:=some title").JavaObject([descriptor]) I checked existence of ...
0
votes
1answer
101 views

How to run Junit test methods in parallel?

I need to run Junit test methods in a Class parallelly to save time using Threads. I have added the following code in my pom.xml file after referring to a website. please let me know what the next ...
0
votes
1answer
88 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
215 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: ...
0
votes
1answer
86 views

How to Code this SSL Certificate Dialog, with Selenium IEdriver “request for permission to use a key” IE 8 9 11

Can anyone help me with sample code please. I have to login with SSL client certificate to authenticate in IE, this UI only works in IE. I have this Autoit Script but the popup is not being read by ...
0
votes
1answer
654 views

Selenium webdriver-Not able to click on button which becomes visible on hovering only

Here I'm using LinkedIn for the learning purpose & want to perform the action on Edit profile=> Work experience=> Add position. Here "Add position" button comes under work experience which becomes ...
0
votes
1answer
85 views

Getting and logging the selenium version used in a groovy project

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this: BuildInfo info = new BuildInfo(); def ...
1
vote
0answers
47 views

How to Allow Firefox Offline Storage using Selenium

I am in the process of creating some BDD tests using Java, Cucumber & Selenium. The problem I am having is the website I am attempting to test has been specifically designed to work with firefox ...
1
vote
0answers
52 views

Accessing Data from Tables

I want to check if my entered information is inserted into the list in the table of the html page but working with tables is a little bit more difficult than a normal list. Could someone help me? My ...
1
vote
0answers
53 views

Page factory performance

Does page factory affect on performance for test execution when we have a lot of elements with @FindBy? We use Java as a programming language.
1
vote
0answers
88 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 ...
1
vote
0answers
49 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 ...
1
vote
0answers
136 views

Web driver gets blocked after getting a second level popup (popup inside another popup)

I'm facing an issue when application I'm testing is opening a second level popup (I mean, a popup that rises another popup). I'm using Selenium for Java, version 2.42.2, with IE Driver. My code ...
1
vote
0answers
210 views

How to disable specific Maven and TestNG test listeners when running tests from groups?

I am using Maven and TestNG to support my Selenium testing framework for a project. I am using a custom test listener to report results into TestRail (our TCM tool). I am also using another custom ...
1
vote
0answers
1k views

Dependent methods in the same class run out of order only when included in a “testng suite”; running class independently respects the dependency

I have a class with dependent methods using the TestNG annotation dependsOnMethods The test runs fine 100% of the time if I simply run it as a TestNG Test from the package. When I include the test ...
0
votes
0answers
26 views

Selenium: Unable to locate Element.. But that element is not in my script

I removed a findElement line from my script but when run my script I keep getting "Unable to Locate Element" error. It's looking for the element that I removed. However, if I add the line to find ...
0
votes
0answers
20 views

Does it require to install all necessary software for slave in jenkins

I have built automation script and everything working perfectly. Now client want to run same script from his location. I am thinking to set his computer as slave in jenkins , but does it require to ...
0
votes
0answers
21 views

Store result file dynamically

I'm using selenium selenium-server-standalone-2.53.0.jar file. java -jar selenium-server-standalone-2.53.0.jar -userExtensions user-extensions.js -trustAllSSLCertificates -htmlsuite "*firefox" ...
0
votes
0answers
20 views

Import TestNG results from Jenkins to ALM

I have Jenkins on localhost, configured test project, which is generating passed test: @Test public void aFastTest() { System.out.println("---- ---- ----"); ...
0
votes
0answers
33 views

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help

Can we use Data Driven approach with Page Object model using Page Factory, any example or link will help. I am trying to implement POM with PageFactory but at the same time I want to make it data ...
0
votes
0answers
18 views

Selenium WebDriver statement is skipping after ajax call

Selenium WebDriver statement is skipping after ajax call for example if we use hotmail signup and want to check whether email is available or not I input the text and on lost focus hotmail return a ...
0
votes
0answers
24 views

Unable to send cookie name and its value through send keys method using selenium

I am trying to send a cookie name and its value of a specific website to assess page performance in another website using below code: public String addCookies() throws InterruptedException { String ...
0
votes
0answers
19 views

Unnecessarily wait 4 minutes on a page which has Google map as a field

Environemnt - Java + Web Driver + Java based application. In our application, we use google maps as an embedded component/object (using - maps.googleapi.com). There are other components/fields on ...
0
votes
0answers
22 views

Which testing library this code comes from?

Which testing library this code comes from and what anti-patterns it contains? private String toString(int status) { switch(status) { case 1: return "SUCCESS"; case 2: ...
0
votes
0answers
18 views

How to calculate DOM size in web application using chrome profiler?

I am doing performance testing of a single page web application.How to calculate DOM size in web application using chrome profiler?
0
votes
0answers
10 views

Script Progression Status on browser

Is there any method available to get status of script execution(passed/failed) on the current browser window itself? e.g.May be a JavaScript popup after script completion or script waiting pop up when ...
0
votes
0answers
251 views

Appium vs Espresso for Android Automated Testing

For last few weeks, I was using appium(python) for android testing but yesterday we have decided to shift to Expresso(Java) for automated testing. There are couple of reasons why we are making this ...
0
votes
0answers
55 views

AjaxElementLocatorFactory = Implicit or Explicit

I'm looking for solution in page factory to wait. I don't want to use something like Implicit wait, but something like Explicit. I read about AjaxElementLocatorFactory, but I'm not sure that it ...
0
votes
0answers
42 views

How to bring window to front with its children in QTP/UFT?

I am testing Java application with UFT 12.52. At the beginning of each test I check that all windows of application are closed: If JavaWindow("label:=window label").Exist(0) Then ... So if it ...
0
votes
0answers
52 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. ...
0
votes
0answers
757 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 ...
0
votes
0answers
67 views

search string text in search grid is not working using send keys

I am passing sendKeys( ) through search grid to search a particular string.I am able to click that search text but its not clicking the search string ,Below is the html for that search text: ...
0
votes
0answers
233 views

Cucumber: Getting undefined steps in cucumber-jvm although step is definitely defined!

I'm having problem when executing the test-script which is designed with Cucumber framework with Java. My structure is as below: I have created following step: Feature: Try to login in Testsite ...
0
votes
0answers
685 views

How to set script timeout?

I have the following code: Webdriver driver = new FirefoxDriver(); // ... String myHugeScript = ... ; // Script loaded from a resource on the classpath Object result = ((JavascriptExecutor) ...