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.

Prevent Test step if running in CTP

Options
goofy78270
goofy78270 Posts: 133

Unsure if this best fits under SOATest or CTP, but here it goes.

We have some test which hit endpoints that are behind a different DMZ, which the CTP server is not a part of. I was wondering if there was a way, to set a test suite variable or such, to capture the IP, ServerName, or ... that can be used to distinguish a test running locally versus through CTP.

Currently, these steps are failing because the CTP does not have access to the endpoint location. We are looking to get the CTP server whitelisted, but as an exercise, and future reference, we would like to be able to prevent some things from running in CTP, in situations like this, or any other reason.

Answers

  • Matt Love
    Matt Love Posts: 92 admin
    Options

    One strategy to handle different endpoints when running the test from CTP is to define a separate variable set. From within CTP it will look like this.

    Select the desired variable set when executing the test or adding it to a job in CTP.