The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.
Questions tagged [testng-eclipse]
345 questions
0
votes
2 answers
How to create testng.xml with following requirements?
Run tests in three browsers (chrome, firefox and ie) parallely. Each browser should open 2 instances. In total, on triggering testng.xml , 6 browser instances should be opened.
for firefox
…

rama krishna
- 35
- 1
- 8
0
votes
2 answers
Selenium java testNG: Is it possible to use dataprovider data partially in testng test method
I am new to Page-Object model automation using selenium and java. I am using the Page Object model and have each page as a single class and the actions in that page as methods.Using excel to keep read test data. I have a test for searching for…

Silverbullet
- 144
- 1
- 12
0
votes
1 answer
How to run TestNG jar without main
I am new to TestNG and Selenium. I am trying to write test cases using Eclipse IDE.
Following is a sample test case which I am using :
package JenkinsPackage;
import org.openqa.selenium.WebDriver;
import…

Kaustubh
- 1
0
votes
2 answers
How do I set the InvocationCount at runtime in TestNG - @Test?
I want to run my Test methods multiple times based on a business logic. Is there a way to alter InvocationCount to achieve the same ? any other suggestions are also welcome.

Appu Mistri
- 768
- 8
- 26
0
votes
0 answers
How can I run multiple TestNG xmls via TestNG SuiteRunner class
Is it possible to run multiple to run multiple TestNG xmls via TestNG SuiteRunner class.
I created below Runner Class:
package com.util;
import java.util.ArrayList;
import java.util.List;
import org.testng.TestNG;
public class Runner {
public…

Akshay prakash
- 13
- 2
- 7
0
votes
1 answer
Running multiple tests one after other in TestNG
I'm trying to automate scenario wherein, I need to navigate to website(which takes more than 30 seconds to load) then enter login details(again which takes 40 sec to load) then choose account tab in that and then need to modify some details in the…

Narmadha
- 1
- 1
0
votes
1 answer
I want to run different classes particular method from TestNG but everytime it opens a new window when i include beforeclass in each class
I want to run different classes particular method from TestNG but everytime it opens a new window when i include beforeclass in each class so i have now excluded beforeclass from add and logout classes so it can use same browser to run rest methods…

Maddy
- 674
- 1
- 7
- 26
0
votes
2 answers
Not able to execute testng file from Maven Project . Exception on Maven Surefire plugin
I have created Maven project for testing one of my web application. I wanted to execute my project based on few parameters. So I added few parameters to my POM.XML and passed those properties as input to my plugins.
During execution of my maven…

Priya
- 69
- 4
- 15
0
votes
1 answer
I am New To MAVEN in Selenium Eclipse so getting Below issue when I am running the Program
I am Getting below error when I run testng.xml with testNg Suite and this is the MAVEN Project as when I run with help of POM.xml it runs but doesn't launch the Browser and when i run with help of testng.xml it gives the below…
0
votes
2 answers
@Test is calling Parent class constructor in TestNG Selenium
I am a newbie to Java , please have a look at the below Code
//Parent Class
public class Abc {
Abc(){System.out.println("hiii");
}
}
//Child Class
public class CDE extends Abc{
@Test
public void Xyz(){
…

Soumyansh Gupta
- 121
- 1
- 2
- 10
0
votes
2 answers
Retrying a complete testNG class and not just @Test method on skip/failure
I have implemented IRetryAnalyzer to re-run my failed test cases in my testNG class.
public class Retry implements IRetryAnalyzer {
private int retryCount = 0;
private int maxRetryCount = 1;
private int outcome;
// Below method…

Ish
- 136
- 11
0
votes
1 answer
Trying to search and return the webelement
I am trying to search the webelement and trying to return back like in below code. Will it work. I have multiple times after returning it traversing back to first element always. Please help me in this.
public obj1 obj2(String Name)
{
…
0
votes
1 answer
In which order Test NG tests will execute?
I have 2 TestNG class containing different tests.
For Eg:
Class Test1{
@Test
public void Amazon(){
}
}
Class Test2{
@Test
public void Netflix(){
}
}
In the above example Class Test1 & Test2 are two…

Kiran
- 23
- 2
- 11
0
votes
1 answer
Is it possible to view each of cucumber scenario step result with TestNG in Eclipse?
Please refer to attached screen shot, with Junit one can see each of the scenario steps results but with TestNG it's not showing the same.
Is it possible with TestNG as well ? Am I missing any configuration, with JUnit it just works.

vikramvi
- 3,312
- 10
- 45
- 68
0
votes
1 answer
I am getting error "The method timeouts() is undefined for the type WebDriver.Options"
I am using my implicit wait as below:
//import
import org.openqa.selenium.WebDriver;
//driver declaration
public static WebDriver driver = null;
//implicit wait
driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
having error as…

ASM
- 709
- 2
- 8
- 27