Questions tagged [testng-eclipse]

The TestNG Eclipse plug-in allows you to run your TestNG tests from Eclipse and easily monitor their execution and their output.

References:

345 questions
1
vote
1 answer

cucumber.runtime.CucumberException: Failed to instantiate class

In my project I am trying to build framework using (Cucumber + TestNG + Maven). Everything was working very well till I tried to run the tests on different browsers in parallel using the testng.xml file. When I try to run the testng.xml, I receive…
1
vote
1 answer

Unsure how to launch runner using AbstractTestNGCucumberTests

I am Unsure how to launch the runner class within Eclipse using AbstractTestNGCucumberTests I have a project set up, intended to use TestNG to run a Cucumber test suite. I have followed all the steps in all the docs I can find, but I am unable to…
Charles F Radley
  • 163
  • 1
  • 2
  • 11
1
vote
0 answers

Can we avoid writing different classes for different test cases for testNG, If yes then how can we?

I am new to TestNG. I am writing classes containing a unit test case for spring boot application, and running them using eclipse TestNG plugin. For every different api or method I need to create different class containing test. Can we avoid creating…
1
vote
1 answer

Selenium and testng .. testng.xml parser exception which makes no sense

Code snip: @Test // checking the login functionality @Parameters({"username" , "password"}) public void TpPortalLogin(String username, String password) throws InterruptedException, IOException …
Charles F Radley
  • 163
  • 1
  • 2
  • 11
1
vote
1 answer

TestNg Eclipse Plugin - NullPointer when start test

When I try to run a testNg class, I immidiatly recieve this error about a NullPointerException (see log below). !ENTRY org.eclipse.core.jobs 4 2 2016-06-10 11:58:27.039 !MESSAGE An internal error occurred during: "Launching…
RetroMime
  • 387
  • 1
  • 8
  • 23
1
vote
1 answer

Not able to find TestNG options in eclipse after plugin installation

I am using eclipse kepler and I installed plugin for testNG as: Help --> Install New Software --> http://beust.com/eclipse After the installation, I can't find the TestNG options in eclipse. I even changed my jdk from 1.6 to 1.7 in java compiler and…
zenith
  • 33
  • 8
1
vote
2 answers

Where to put testNG xml file in ANT java web project

I am using testNG in a java web project. When I run the test with gui eclipse on Linux machine it creates a .xml file in my /tmp/ folder. My concern is If I create a custom xml file then where to put that file in project and how we can run that test…
shubham12511
  • 620
  • 1
  • 9
  • 25
1
vote
2 answers

testng problems writing results to test-output

Can someone explain what needs to change in Eclipse to resolve the following TestNG reporting issues? After updating Eclipse MARS.2 TestNG plug-in to 6.9.11.201604020423, TestNG displays messages showing problems with writing the results: [Utils]…
hal
  • 11
  • 2
1
vote
3 answers

Below If else condition is not working in my script

driver.findElement(By.id("btnSendMailCopy")).click(); Thread.sleep(3000); if(driver.findElement(By.xpath("/html/body/section[1]/div/article/nav/button[2]")).isDisplayed()) { …
1
vote
0 answers

org/apache/log4j/Priority Error in Test Case

I have created some test cases in my project using test-ng. When I am running the test cases from eclipse, it's working fine. but from my ant build script, TestNG gives following error: run.unit.tests: [testng] [TestNG] [Error] [testng] An…
Sandeep Kokate
  • 825
  • 4
  • 16
1
vote
1 answer

How to read a specific value from Excel sheet using Selenium WebDriver TestNG Data Provider Method?

Following is the code:- package sanityTests; import java.io.File; import java.io.IOException; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.chrome.ChromeDriver; import org.testng.Assert; import…
1
vote
2 answers

how to run several test cases in one file

I have a tricky question again and I hope you have a solution for me again. Currently I have 2 testng.xml (testng1.xml and testng2.xml) in testng1.xml --------------- ...
lorenlai
  • 51
  • 7
1
vote
3 answers

selenium testNG retry with incorrect result account

I am using testNG 6.9.10 that installed in Eclipse. I was trying to use retry to make sure the failed tests could run maxcount times that defined. See below codes. public class TestRetry implements IRetryAnalyzer { private int retryCount = 0; …
Boyka Zhu
  • 391
  • 1
  • 4
  • 18
1
vote
1 answer

May i know how do we capture the screenshot of android run in AWS Device Farm using Appium Java TestNG?

After execution of the test run in AWS Device Farm. The test run was successful but i am unable to see the screenshots and performance of that run. The below messages are displayed in those fields. Screenshots : No Screenshot found Performance : No…
1
vote
3 answers

TestNG Close Browsers after Parallel Test Execution

I want to close browsers after completion of all test. Problem is I am not able to close the browser since the object created ThreadLocal driver does not recognize the driver after completion of test value returning is null. Below is my working…