Forum Discussion
nmrao
5 years agoChampion Level 3
What is the use case?
If assertion fails the step fails, Isn't it?
If assertion fails the step fails, Isn't it?
- Said5 years agoContributor
Thanks for your response... Below is a (simplified) structure of my test case.
TestCase Init Groovy DataSource Soap Call1 Groovy TestStep Set TestResult (DataGen) Save TestResult (DateSync) DataSource Loop
use case: I have a DataSource Loop processing a few hunderd rows. I need to report pass / fail for each row. In the step Set TestResult (DataGen) I have this statement:
return testRunner.testCase.testSteps["Soap Call1"].assertionStatus
With this I know if the current row passed or failed.
I have some assertions in the Groovy TestStep. I also would like to know per row if any of the assertions in that step failed. This is needed for the reporting that I am doing in the step Save TestResult (DateSync).
Hope you can advise on the best way to do this.
Thanks in advance!
- nmrao5 years agoChampion Level 3So do you run the same code for Groovy step?
<code>
return testRunner.testCase.testSteps["Groovy TestStep"].assertionStatus
<code>
What happens if groovy script fails or passes currently ?- TanyaYatskovska5 years agoSmartBear Alumni (Retired)
Thanks for the help, nmrao,
Said, was the issue resolved? Please share the solution you decided to use.
Related Content
Recent Discussions
- 2 days ago