Skip to content
TestsigmaDOCS

Test Plans

AfterTest in Test Cases & Step Groups

  1. Navigate to Create Tests > Test Cases, and create a test case. Test Case

  2. Click on Test Case settings and enable AfterTest Case toggle. Test Case Settings

  3. From If AfterTest fails dropdown menu, Dropdown Menu

    • Select Show Testcase Result if you want to see the test case results.
    • Select Fail the test if you want to fail the test case.
  4. For data-driven test cases, you can see the When to execute AfterTest steps dropdown menu. Data Driven Scenario

    • You can select Run after all iterations to run AfterTest after all iterations are executed.
    • Or you can select Run after each iteration to execute the AfterTest for every iteration.

NLPs

  1. You can use Test Case Result is Passed/Failed/Not Executed NLP to execute After Test block depending on the result of your Test Case.
  2. You can also use Test Case Iteration Result is Passed/Failed/Not Executed NLP to execute the After Test block depending on the result of iteration.