padv.builtin.query.FindModelsWithTestCases Class
R2026bNamespace: padv.builtin.query
Superclasses: padv.Query
Query for finding models that have test cases
Description
Add-On Required: This feature requires the CI/CD Automation for Simulink Check add-on.
The padv.builtin.query.FindModelsWithTestCases class provides a query
that can return the models in your project that have test cases.
You can use this query in your process model to find models that are associated with
test cases. For example, If you use a built-in task like
padv.builtin.task.MergeTestResults to merge the test results for each
model in your project, you can use the FindModelsWithTestCases query to
find only models that have test cases and therefore test results that the task can
merge.
The padv.builtin.query.FindModelsWithTestCases class is a handle class.
Creation
Description
creates a query for finding the models in your project that have test
cases.query = padv.builtin.query.FindModelsWithTestCases()
sets certain properties using one or more name-value arguments. For example,
query = padv.builtin.query.FindModelsWithTestCases(PropertyName=Value)query = padv.builtin.query.FindModelsWithTestCases(ExcludePath =
"Control") creates a query that finds models that have test cases,
but excludes models that have "Control" in the file
address.
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
| Functionality | Supported? | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Input query for task | No. | ||||||||||||||
Iteration query for task | Yes. See IterationQuery. The query supports iteration artifacts with these artifact types:
|