Contributions
Re: Is there a way to exit a test case when the first step fails?
Iadded the JDBC count stepand agroovy scriptwith a conditional "testRunner.gotoStepByName", and it looks like it's working the way I want. Thanks for the help!4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews1like0CommentsIs there a way to exit a test case when the first step fails?
I'mcreating tests foran API that updates an existing DB2 row. The first step of the test is a DataSource with an SQL query to select a specificrow to update. For example,I may want to test what happens when the API updates rows where timeOfDay='1200'. However, therearetimes when there are no rowson the databasethat match the criteria, so the DataSource does not find any data to use in the test, the APIrequestfails,and the test case fails.Instead, I wantto exit (or pass) the test without recording a failure. I've tried playing around with the "Fail on Empty" and "Skip Loop on Empty" options, but I haven't been able to getthem to do what I need. Is there a way toskip or passa test case when the first step fails?Solved4 years agoPlace ReadyAPI QuestionsReadyAPI Questions1.3KViews0likes2Comments