padv.builtin.query.FindTestCasesForModel Class
Namespace: padv.builtin.query
Superclasses: padv.Query
Query for finding test cases for model
Description
The padv.builtin.query.FindTestCasesForModel class provides a query that
can return the test cases associated with a model, including test cases associated with
subsystem references. You can automatically include or exclude certain test cases by using the
optional name-value arguments.
You can use this query in your process model to find test cases for your tasks to iterate over or use as inputs.
The padv.builtin.query.FindTestCasesForModel class is a handle class.
Creation
Description
creates a query for finding the test cases associated with a model, including test cases
associated with subsystem references.query = padv.builtin.query.FindTestCasesForModel()
sets certain properties using one or more name-value arguments. For example,
query = padv.builtin.query.FindTestCasesForModel(Name=Value)padv.builtin.query.FindTestCasesForModel(Tags = "TagA") creates a
query object for finding test cases that use the test case tag
"TagA".
Note
If you use this query as an input query and specify non-empty values for
IncludeLabel, ExcludeLabel,
IncludePath, or ExcludePath, your task
results can unexpectedly become outdated. If you see this behavior, consider using a
different query, like padv.builtin.query.FindArtifacts, instead. For more information and a list
of queries that are not impacted by this limitation, see Other Limitations.
The padv.builtin.query.FindTestCasesForModel class also has other properties, but you cannot set
those properties during query creation.
Name-Value Arguments
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
| Functionality | Supported? |
|---|---|
Input query for task | Yes. |
Iteration query for task | Yes. |