Forum Discussion
jays
Occasional Contributor
Instead of using 'Goto' test step, can you try using groovy script test step? This gives you more flexibility in catching 404 errors as well from other steps.
JParel
9 years agoOccasional Contributor
@savithajay wrote:Instead of using 'Goto' test step, can you try using groovy script test step? This gives you more flexibility in catching 404 errors as well from other steps.
I would prefer not to write a groovy test script as I'm not that knowledgeable in writing code, but if I did what would the pseudo code look like?
also how would I structure the test case?
This is what I envision
step 1 run Datasource
step 2 run JSON request with assertions
step 3 groovy test script to check for failed assertions in previous step
step 4 only run Datasink to enter in failed request links
step 5 run Datasource loop
Related Content
- 6 years ago
Recent Discussions
- 20 days ago