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
0 answers
Depends-on Not working as expected with testNG version 6.13.1
I am not able to run my test suite in correct flow as it was running earlier in version 6.9.9.
It was working fine with 6.9.9
But above or equal 6.11 it's not working same as before.
Here is my sample code of java file.
public class TestReport {
…

Gaurav kumar
- 11
- 4
0
votes
1 answer
Eclipse Run as TestNG String index out of range: -2
TestNG plugin was working fine until yesterday. Now all tests, different classes get the same error. Running either via the class or the individual test. How can I fix this?
An internal error occurred during: "Launching Testing123".
String index out…

mancocapac
- 812
- 6
- 23
0
votes
2 answers
Getting [TestNg] No test found error while running my @Test
While running my @Test using TestNg, i am getting "[TestNG] No tests found. Nothing was run Usage: [options] The XML suite files to run" error message. Could anyone please help me on the same. Please find the attach screen shot for all the…

Bishnu Prasad
- 87
- 4
- 13
0
votes
1 answer
How to pass file location as a parameter in testng.xml
I need to pass file location as parameter in testng.xml. I'm working on a framework which accepts the location of excel file (Data driven) as parameter in testng.xml. Below is a sample of testng.xml.

user0450
- 15
- 1
- 5
0
votes
1 answer
Why am I getting the following error "the content of element type listener must match (listener)*"?
I was trying to implement IAnnotationTransformer interface of TestNG to retry failed Test Cases again but am getting the following error in my TestNG.xml
Screenshot of the error being displayed
Code for MyTransformer :
package Analyzer;
import…

UMANG BHATIA
- 11
- 7
0
votes
1 answer
How to manage before or after scenario methods in listener?
I wanted to know if we can maintain login in more than one scenario present in same bdd file. Is there any listener where I can manage in it. Like before or after scenario present in that listener.
Would like to know more about same…

Prashant
- 1,351
- 3
- 20
- 32
0
votes
0 answers
Testing report status swipe after sending an email
I have automated more than 5 applications in Java with Selenium Webdriver + TestNG + Email helper.
Currently, I am facing one issue in one of the applications. After successfully done the execution the HTML report generated as well as the same…

DRaj
- 13
- 4
0
votes
1 answer
java.lang.NullPointerException ,at Annotaion_testng.Login_case.login(Login_case.java:34
package Annotaion_testng;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.testng.annotations.BeforeClass;
import…

Fijan Kaji
- 25
- 4
0
votes
0 answers
How can I resolve could not find or load main class org.testng.Testng
I am getting below error while executing testng.xml through command prompt
Error : Could not find or load main class org.testng.TestNG
D:\>cd…

Prashant
- 1,351
- 3
- 20
- 32
0
votes
0 answers
How can I send value from Java file to testng.xml
I would like to know if we can send value from Java file to testng.xml. This is one of my requirement in current project. As I am completely new to automation testing. Help me how I can achieve it
Thanks,
Prashant

Prashant
- 1,351
- 3
- 20
- 32
0
votes
1 answer
How to trigger screenshot on every validator/Assert pass and fail using testng listener
I want to take screenshot for every validator/assert pass and fail steps. Let me know if we have testng listeners can help me to implement this scenario as I am new to selenium webdriver and testng automation testing

Prashant
- 1,351
- 3
- 20
- 32
0
votes
0 answers
I am running Register, Homepage and CreateNewProject with the help of xml file in the TestNG, but only Register is getting executed
I have tried grouping, setup etc. (Tests are provided with the proper annotations)
…

Prashant Morade
- 31
- 1
- 1
- 7
0
votes
1 answer
How to Perform load Testing with Selenium TestNG at a time by opening multiple windows
I have executed the below code to perform load test
@Test(invocationCount = 5, threadPoolSize = 1)
public void GmailLogin() throws InterruptedException {
System.setProperty("webdriver.chrome.driver", "D:\\CIPL0564\\D…

Bhuvana
- 75
- 6
0
votes
0 answers
Maven run tests specified in my Eclipse Folder(Path- src/test/java/pakage) but Test Results are not shown correctly
I have a Maven Project in eclipse. On running pom.xml file it runs my 2 tests mentioned on path- src/test/java/pakage.
But,When I check the test results in index.html file in the test-output folder - it shows only 1 test that too method name and…

Samira
- 33
- 9
0
votes
1 answer
TestNG Eclipse plugin does not appear to be installed after successfully installing
1.) I am on a Mac running Eclipse Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200
2.) Go to Help -> Install New Software...
3.) Add TestNG http://beust.com/eclipse
4.) Select the TestNG Plugins.
5.) Go through the screens to install…

Doug Noel
- 684
- 4
- 19