Forum Discussion

emabindum's avatar
emabindum
Occasional Contributor
3 years ago

tear down script to get each iteration failed assertion messages at testcase level

Hi Team, In my test cases i have Datasource(Excel) and Datasource loops steps to test the same functionality with multiple test data.   Below is the teardown script am using at test case level. Bu...
  • KarelHusa's avatar
    3 years ago

    emabindum,

    you have multiple options:

    • You can add a Groovy script test step into the loop and do everything in that Groovy script.
    • You can increase the "Max Results" configuration in Test Case settings, and then the test step results of the past iterations will also be available.
    • Use a TestRunListener afterStep method to handle the tear-down activities.