TestNG integration with SpiraTeam - Pass the results from methods in test case steps

Thursday, January 4, 2018 9:19:36 AM

Hi.

I am working on an integration of my automation tests with SpiraTeam. I managed to make it work up until the point where Eclipse reports the results back to SpiraTeam. I followed this documentation to integrate the tests with SpiraTeam: http://www.inflectra.com/Documents/SpiraTest-Team%20Automated%20Testing%20Integration%20Guide.pdf.  I used @SpiraTestCase on every method, just like in the documentation. But this basically passes my test 12 times if I have 12 methods. I have one question, though. Is there any way I can pass the test once, and report every method to a SpiraTeam test case step ID? 

 

So basically it would be one method per step in SpiraTeam. I don't want the methods to send the results back to @SpiraTestCase, I need something like @SpiraTestStep. Is there any way this can be done?

 

Thanks a lot!

2 Replies
Thursday, January 4, 2018 3:32:28 PM
Avatar
re: andytoluna on Thursday, January 4, 2018 9:19:36 AM

Hi Andy

That is not possible with the TestNG listener that we have currently I'm afraid.

However we do have the source code available on GitHub - https://github.com/Inflectra/spira-testng

If you'd like to fork the code and modify it to better suit your needs.

Regards

Adam

Friday, January 5, 2018 7:39:01 AM
Avatar
re: inflectra.adam on Thursday, January 4, 2018

Thanks for the reply, Adam!

This is good news as well, I did the best I could. I'll try to make something work with the code. Thanks again!

Statistics
  • Started: Thursday, January 4, 2018 9:19:36 AM
  • Last Reply: Friday, January 5, 2018 7:39:01 AM
  • Replies: 2
  • Views: 452