tosca

Tosca: searching for CPs within test step values


I'm trying to find a way to search for the usages of Test Configuration Parameters within test steps.

For example, I would like to look up the string "{CP[param]}" within a library or folder and end up on the step containing it.

I've had a look at the official examples for searching for a Test Step value, and thought I could simply swap that "motorcycle" with my CP, BUT actually I cannot even make it work with a simple value such as "True". Any ideas?


Solution

  • I finally got the answer by contacting Tricentis Support. Here is what they told me. I've already tested it and it works.

    To find the test step whose test step value uses a TCP, you can use the below TQL query:

    =>RETURN SUBPARTS:XTestStep=>SUBPARTS:XTestStepValue[Value=?"CP"]
    

    In case you want to find the specific TestStep value, you can use:

    =>SUBPARTS:XTestStepValue[Value=?"CP"]