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
3answers
135 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 main(...
0
votes
1answer
145 views

How to get color of java table row/cell with QTP/UFT (java swing application)?

I need to test that the color of java table row has changed to some specific value. But till now I see no solutions of getting this property. Let's assume that jTableObj is OR or DP representation of ...
3
votes
2answers
117 views

How to make a test of favicon in Selenium?

I have a task to check presence of the favicon on the page. How to do it? I use Selenium WebDriver. I made in the same way, addressed according to the link "http://my_site.com/favicon.ico", and ...
0
votes
2answers
64 views

How to send key '(' and '!' to Selenium Web Driver?

I was trying to do write a test a case for a website that takes in the Java code , compiles it and runs it. However, while writing the test case , the text-area that takes input did not have all the ...
1
vote
0answers
55 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.
0
votes
1answer
66 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
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
2answers
50 views

Need to get the value from h1 tag

Need xpath for the below script where i need to store the number 3: <div class="col-xs-4"> <div class="col-xs-8"> <small class="stat-label"> <a style="color:#fff;" href="...
0
votes
2answers
116 views

How to Create “Runnable jar” file for deployment? [closed]

i have one selenium project, i need to deploy as jar file how to do that? i used following tools/api's Selenium Web driver+java poi JXL TestNG AUT Reporter i don't have Main Method. Runnable jar ...
0
votes
1answer
71 views

How to retrieve automated Test case names from Testlink

We are using Test link & Selenium webdriver for automation, we are updating the results of execution to Testlink once the execution completed. We would like to retrieve the Test cases from Test ...
0
votes
1answer
106 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
80 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
2answers
172 views

TestNG showing as test passed even if assertion fails

I use below Java code to check if test fails @Test public void myMethod(){ .. .. Assert.assertEquals(condition1,condition2); }catch(AssertionError e){ e.printStackTrace(); } Even if condition1 and ...
0
votes
1answer
142 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 com.stack....
1
vote
2answers
141 views

Logging every action with custom “debug” method. Good idea?

I'm creating my first full framework using Selenium and TestNG and recently implemented the ability to have logging enabled which will track every action (before and after). public class CustomLogs { ...
0
votes
1answer
41 views

Compare if the output values are sorted or not using tree map and comparator

import java.util.Collections; import java.util.List; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.firefox....
0
votes
0answers
19 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 ...
-2
votes
4answers
62 views

How to move inside else not to catch? [closed]

i am using selenium with java public void main(String args[]){ try{ if(ele.isDisplayed) { syso("test1"); } else { syso("test2"); } } catch(Exception e){ ...
1
vote
3answers
72 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 ...
0
votes
0answers
343 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 ...
3
votes
4answers
98 views

Can selenium driver detect which platform it is running in

I need to verify that a certain condition happens on different platforms, e.g. a link of an app for iphone only happens on ios devices, and similarly, a link of an app for android only happens on ...
0
votes
1answer
26 views

executeAsyncScript method doesn't appear when driver is instantiated as “Webdriver driver”

Going through the Webdriver Timeouts I noticed that for setScriptTimeout, if I type WebDriver driver = new FirefoxDriver(); driver.manage().timeouts().setScriptTimeout(5, TimeUnit.SECONDS); I ...
1
vote
3answers
86 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 ...
0
votes
2answers
51 views

How to mark all the checkboxes with Selenium Webdriver using Java?

I want to mark all the checkboxes in a page using selenium webdriver? How can I implement that?
1
vote
1answer
72 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
33 views

Cannot click on Upload button due to new browser window that opens at run time only

I want to click on the Upload button but when the script runs this click event triggers a new browser to open which I cannot simulate when I try to test it manually. I deliberately click on Start ...
1
vote
3answers
300 views

Spring framework to write Selenium Automation framework [closed]

I don't know it would be good idea. So I am looking for PROS and CONS of making Selenium Framework using Spring Framework. I have not come across a single forum/post/tutorial about this idea. If its ...
1
vote
1answer
76 views

Automation - Testing the Contents in EMail

In my application I am supposed to test/fetch the data and contents of the E-Mail received after triggering the Schedule. How can I automate this scenario using Selenium web-driver ?
0
votes
3answers
463 views

Upload a file in Selenium Webdriver using sendKeys

I'd like to side step the dialog box and upload a file using the sendKeys method but it doesn't seem to work. Is anything wrong with the following code? WebDriver driver = new FirefoxDriver(); String ...
0
votes
2answers
74 views

How to Clear Cookies in Selenium?

In Our application while testing Manually we clear Cookies (Ctrl+Shift+Del), How can I automate this step? Note: We are using Java
3
votes
2answers
74 views

Which test execution framework for Java has the highest test coverage?

I found TestNG failing occasionally and when I started to investigate I found it has little test coverage. It looks like the test framework itself is poorly tested. Which other test execution ...
0
votes
1answer
37 views

ArrayBound Exception Error [closed]

When I execute the following program it displays an array bound exception: import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Array { ...
0
votes
2answers
142 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 ...
3
votes
1answer
75 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. ...
0
votes
2answers
51 views

Stuck at NoSuchElement exception in selenium

I have a form which requires its data consists of textbox, combo box etc and finally i need to save. Please find below outer HTML pattern of save button: <input type="submit" name="ctl00$...
0
votes
1answer
54 views

Is this a good idea to test if text messages are exactly what they are?

I have been told that testing java exceptions' messages is a good thing, but it looks so much like redundancy that I cannot believe it. Consider following fictional code: public class ...
0
votes
0answers
66 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 ...
3
votes
1answer
77 views

Actions to search item and number of methods

I have questions about clean code. I'm writing a test in Java selenium page factory. I'm a beginner. I have two "actions", input text into search field and click button search. Now the question is, ...
-1
votes
2answers
103 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 ...
2
votes
2answers
115 views

How can I get the android window size using Java as programming language? [closed]

How to detect the screen size for different android phones? I want the coordinate values like startx, starty, endx, endy. With that I can use the swipe method which takes these coordinates as ...
1
vote
6answers
168 views

What languages and frameworks should I learn for selenium automation testing? [closed]

I have been a Non-IT student, but now I want to start my career as a software tester. Are there certification I should get? Which programming languages and frameworks should I learn? Is it necessary ...
0
votes
3answers
97 views

How can i avoid or fix time outs in Selenium Java?

I'am using Selenium with Standalone Server (V2.48.2) with NetBeans and using Firefox (V44.0). I have tried different ways to get this fixed, but its an error that appears to be random in different ...
1
vote
1answer
83 views

How to use chrome Plugins in Selenium WebDriver

I want to use chrome Plugins like what font, full page Screen capture. in one of my project, can we write the code for it? using Selenium web-driver + java. i am still on search, is there any work ...
0
votes
0answers
47 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 ...
5
votes
1answer
941 views

Using Selenium Webdriver For Firefox Testing

I have been doing research into implementing Selenium Webdriver (currently version 2.49) for testing on Firefox. Currently I am capable of testing Chrome with the framework, but would like to extend ...
1
vote
3answers
478 views

Porting Selenium test from Firefox driver to HTMLUnit driver

I am trying to convert my selenium test from Firefox browser to HTMLUnit driver. But, when I try to run the HTMLUnit test , it gives me error for XPATH. The Firefox browser test runs absolutely fine. ...
0
votes
1answer
135 views

Console prompts error : Compound class names not permitted

The thing what I wanted to do was, write java code for automate the sending an email via gmail. When I try to locate element of send button it throws following errors. The code I used, is like this; ...
0
votes
2answers
91 views

Cannot Locate the Link in Selenium Web Driver

The thing what I wanted to do is Automate Gmail Login page on Firefox by using Selenium Web Driver. I was blocked near the locating link of gmail. I tried the correct answer of This. but it gives this ...
6
votes
1answer
146 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 ...