Forum Discussion
Through teardown scripts if we try to get total test case execution count , we are getting wrong number, through 'TestRunner' its working as expected,
This issue become blocker while implementing 'Extent report'
Have attached sample project, any help here would be great
- HimanshuTayal5 years agoCommunity Hero
kmv :
Write your code in below teardown script
Project -> TestSuites -> teardown script
Refer below link for more help 🙂
https://www.linkedin.com/pulse/integration-extent-report-soapui-akshay-sharma
- kmv5 years agoOccasional Contributor
Thanks for your reply, i am able to create extent report, but my issue is test case count
when i try to run via 'TestRunner' (Right click on testsuite -> 'Launch TestRunner') : Test execution count : 4 (SOAPUI-TestRunner-Count.PNG) - This is correct
when i tried to get total test execution count through 'teardown' script, i am getting count as 2 (SOAPUI-TestRunner-Count.PNG)
So in the extent report i am getting two test cases (test case which got executed via groovy script not getting captured in teardown script)
Have attached project (xml) for reference
- HimanshuTayal5 years agoCommunity Hero
kmv : Yes it won't come under extent as it is being executed by some groovy not via testRunner. If you want that test case to be a part of Extent Report than you need to execute it via testRunner.
The images/project file which you have attached are not getting opened. Please attach them again or DM me.
Related Content
- 7 years ago
- 6 years ago
- 4 years ago
- 10 years ago