Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The 'test-output' folder is not created when running TestNG Selenium test outside of Eclipse

  1. We created some java code (selenium webdriver script) with Eclipse.
  2. Inside my project I used selenium jar files and TestNG jar
  3. While running these scripts we go test output folder within Eclipse.
  4. Then we created an executable jar from the script what we generated and while running this generated jar we are not getting the TestNG test-output folder.

Please suggest how could we create test-output folder while running our executable jar.

like image 951
fsptesting Avatar asked Feb 19 '15 14:02

fsptesting


People also ask

Where is test-output folder in TestNG?

By default, all reports are generated at the Project -> test-output folder.

How do I enable TestNG report in Intellij?

You can add Listener like "EmailableReporter" or "FailedReporter" in the "Run Configurations", it will generate test-output directory in your workspace. Show activity on this post. On the "Listeners tab", Use default listeners should be checked. And Output directory should be set correctly.


1 Answers

After you run the scripts just refresh the project. [Right-click the project-> Properties-> Click Refresh] You can now see the test-output folder in your eclipse.

like image 137
Raj Avatar answered Nov 15 '22 12:11

Raj