Skip to content
Testsigma DOCS

Test Plans

AfterTest in Test Cases & Step Groups


AfterTest in Testsigma lets you create a block of steps after the test case as well as add a step group to execute irrespective of the result of the test case. Both test case and after test blocks execute independently. This article will discuss how to enable and use after test in test cases and step groups.

For more information on test cases, refer to the documentation on creating test cases.


  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.