Submit and vote on feature ideas.

Welcome to the new Parasoft forums! We hope you will enjoy the site and try out some of the new features, like sharing an idea you may have for one of our products or following a category.

Skipping test case or dbtool

jngojngo
jngojngo Posts: 46

I got a scenario where there’s a chain of 3 test. First 2 are payload and the last is a dbtool call. Based on the reponse of the first test. I will either run the remaining two test or skipped them entirely. My question is how can I skip those remaining two test case.

Comments

  • benken_parasoft
    benken_parasoft Posts: 1,228 ✭✭✭
    edited December 2018

    It is possible to execute tests conditionally based on a test suite variable. Read this part of the docs describing Variable Condition (scroll down to about the middle of the page).

    In particular, your first test could have a Data Bank chained to the Response output which writes the determining value to the test suite variable. In the test suite, you configure the variable condition for the other two tests to make them execute or skip depending on what value was written to the test suite variable.