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

Thursday, January 4, 2018
Avatar

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: https://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
Avatar
re: andytoluna Thursday, January 4, 2018

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
Avatar
re: inflectra.david 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!

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: Thursday, January 4, 2018
  • Last Reply: Friday, January 5, 2018
  • Replies: 2
  • Views: 6965