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

1
vote
0answers
6 views

How to get colour, font of java table row/cell/text with Jemmy?

Need to check color/font style of java table (text, background) in Swing application cause style of row should depend on a column value. It is possible to get color of font and background of ...
-1
votes
0answers
6 views

Why JVM memory overflow

Full thread dump Java HotSpot(TM) 64-Bit Server VM (25.60-b23 mixed mode): "Attach Listener" #877 daemon prio=9 os_prio=0 tid=0x00007f5940001000 nid=0x850 waiting on condition [0x0000000000000000] ...
1
vote
3answers
58 views

How to take the screenshot of a window based GUI application?

I am automating tests of a GUI application similar to calculator. I am using Java and AutoIt for implementing the test cases. I need to take screenshot on failure. I have tried taking screenshot ...
4
votes
3answers
83 views

How can we generate unique distinct users for parallel tests with selenium?

How can we generate unique distinct users for parallel tests with selenium WebDriver and java or Javascript. Suppose, in google create an account action I have to pass firstname, lastname, username ...
0
votes
1answer
23 views

Is use of priority in TestNG a good approach?

I'm assigning priority to each test method in a specific class under my automation project. My senior reviewed the script I wrote and mentioned to me that do not use priority instead use the xml to ...
1
vote
1answer
35 views

Unable to scroll down to bottom of div with data loading dynamically

<div id="findingTblBody" class="tablebody" infinite-scroll-distance="2" infinite-scroll="loadMoreData()" style="width: 819px;"> I want to scroll to bottom of div mentioned above. I am trying ...
1
vote
1answer
80 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 ...
0
votes
0answers
13 views

Minimum FPS for video to considered video [on hold]

I want to test my realtime video encryption software but I confused with the fps standard for a video to be called a video not a slideshow. I already get the realtime standard which is 5s (video ...
0
votes
1answer
83 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 ...
1
vote
1answer
47 views

How to generate test cases for JUnit?

Explanation We are currently using a self-made testing framework/tool, to test services of an client-server application. The framework currently works with own implemented JUnit like assert methods ...
0
votes
1answer
34 views

Parallel Testing with Selenium Grid - Static classes have driver issues

I am currently working on an automation project. I have the project itself complete. However, I am now integrating Selenium Grid into my project to run my tests parallel on different browsers e.g ...
0
votes
1answer
14 views

Jemmy strucked at clickMouse() when notification dialog with progressbar are displayed

During autotest execution (jemmy lib is used to interact with Java GUI elements) address data is entered and button 'Search for address' is pressed. At some addresses notification dialog with ...
-1
votes
2answers
99 views

How should look test in webdriver with different Test scenario

I have to test demo.opencart.com. Here is my scenario: Test scenario: 1 Open browser and go to Democart 2 Change currency to GBP (top left dropdown) 3 Search for “iPod” using text search 4 Add ...
1
vote
1answer
16 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 ...
0
votes
1answer
39 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
13 views

How to define elements with Jemmy library?

I am researching of testing Java GUI application with Jemmy library. Elements in application are defined by constructors like: JFrameOperator mainFrame = new JFrameOperator("Main window title"); ...
0
votes
2answers
26 views

I am getting java.lang.NullPointerException while executing my test case

I am getting java.lang.NullPointerException while executing my test case , I am using Page Object Modle with PageFactory ,following are the code snippets TestBase Class: ackage com.base; import ...
0
votes
4answers
121 views

Escape key for Safari using Selenium

I am using Selenium webdriver (Java) and ran into a problem. I made the method, public void escape() { Actions action = new Actions(driver); ...
2
votes
1answer
58 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 ...
0
votes
1answer
212 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
63 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
64 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
3answers
128 views

how to run failed testcases using TestNG?

I created jar when i run on command prompt i am able to see result, what i want is "i need to run failed test cases if there is any" public class DemoProjectClass { public static void ...
0
votes
1answer
96 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
87 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
56 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
2answers
29 views

How to resolve NullPointerException error in my below POM code?

I am getting java.lang.NullPointerException while executing my test case , I am using Page Object Modle with PageFactory ,following are the code snippets LoginPageObjec.java public class ...
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 ...
6
votes
2answers
282 views

When to start testing a solo project?

I'm building a solo project myself. (Java backend, Java AWT frontend. No lectures about AWT vs swing vs *wt, please :-)) It's fairly straightforward Primary server - keeps user information Content ...
0
votes
1answer
36 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 ...
1
vote
3answers
78 views

Make code to wait before executing click() command

I have a Java code that populates all the text fields automatically. Before executing click() command for Submit button, I need to enter the Captcha manually. So I would like to make the code to wait ...
4
votes
4answers
16k 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
124 views

Getting NPE on screencapture with an error

I am currently setting up PageObject with PageFactory Automation tests. I currently have a screenCapture.java and I try to call the method within the screenCapture when there's an error. Here is the ...
1
vote
1answer
325 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 ...
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
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 ...
0
votes
2answers
5k views

How to handle sub child windows(more than 3) using Selenium Web Driver with Java

I am using Selenium Webdriver with Java, and I need help handling sub child windows. I have to handle four child windows. Main window- Child window- Grand child - (to reach 5 child windows) I ...
1
vote
3answers
27 views

Validating ePub File using selenium webdriver [closed]

Is there any way to validate the ePub file using selenium webdriver?
0
votes
2answers
336 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 ...
0
votes
0answers
19 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
20 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
1answer
27 views

Is there any way to record the screenshots of minimized browser windows

I am using Java and selenium to write some tests. I need to record my screenshot while the tests are running it makes much easier for me to track if any bugs occurs. The problem is that I need to run ...
1
vote
4answers
120 views

Can anyone help me out in getting the tooltip

I am unable to get the tool tip from a tag. The snippet of the HTML is <table class="tiger-stripe" width="100%" cellspacing="0" cellpadding="0" border="0"> <tbody> <tr ...
0
votes
1answer
96 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
3answers
2k views

cucumber java.lang.IllegalArgumentException: Not a file or directory:

I'm new to cucumber. I have created a cucumber project but cannot seem to run the project. Every time I do, I get an error: java.lang.IllegalArgumentException: Not a file or directory: Here is how my ...
0
votes
1answer
154 views

Webdriver not navigating to passed in URL

I am using Selenium Webdriver with Firefox (although the same behaviour occurs in IE and Chrome). I have been using driver.navigate().to().(""); and it was working fine for me. I am passing in ...
0
votes
1answer
647 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
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
47 views

Unable to Select options from dropdown field?

I'm using Selenium-webdriver with Java from the MavenProject. Version 2.53.0. This is the HTML of the dropdown field: <div class="col-lg-7 col-md-7"> <select ...
0
votes
0answers
29 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 ...