TestNG integration

Monday, September 12, 2011 10:20:16 PM
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 5:03:34 PM
Avatar
re: spiraTUser on Monday, September 12, 2011 10:20:16 PM
It should work with all the recent versions.
Thursday, September 15, 2011 5:05:01 PM
Avatar
re: inflectra.adam on 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? 

Statistics
  • Started: Monday, September 12, 2011 10:20:16 PM
  • Last Reply: Thursday, September 15, 2011 5:05:01 PM
  • Replies: 2
  • Views: 826