TestNG integration

Monday, September 12, 2011
Avatar
What version of TestNG does SpiraTest v3.0 support?
I am trying to integrate TestNG scripts with SpiraTest and running into issues. I followed the steps outlined in "Automated Unit Testing" guide. But when i run the automated test from my Eclipse, it fails to report the results in SpiraTeam. I get this in Eclipse Console:

Starting test run...

Test run finished with 0 Failures.

0 test results were successfully transmitted to SpiraTest (0 errors).

I am using TestNG 5.14.1.

Is there a step by step guide which explains how to setup the testcase in SpiraTeam UI so that its execution status will get updated when the corresponding testng script is run from an IDE like Eclipse?

Thanks!
2 Replies
Thursday, September 15, 2011
Avatar
re: spiraTUser Monday, September 12, 2011
It should work with all the recent versions.
Thursday, September 15, 2011
Avatar
re: inflectra.david Thursday, September 15, 2011

You need to make sure that the Eclipse TestNG configuration has the SpiraTest listener added. You also need to make sure that all the attributes are appropriately added to the test methods.

Have you tried:

  1. Executing the sample tests that come with the plugin
  2. Running the TestNG test fixture from the command-line and not through Eclipse.

Do either of these cases work? 

Spira Helps You Deliver Quality Software, Faster and With Lower Risk

And if you have any questions, please email or call us at +1 (202) 558-6885

 

Statistics
  • Started: Monday, September 12, 2011
  • Last Reply: Thursday, September 15, 2011
  • Replies: 2
  • Views: 2351