padv.builtin.query.FindUnits Class
Namespace: padv.builtin.query
Superclasses: padv.Query
Query for finding units
Description
This class requires CI/CD Automation for Simulink Check.
The padv.builtin.query.FindUnits
class provides a query that can return the
units in your project. The query uses the same unit classification as the Model Design and
Model Testing Dashboards. A unit is a functional entity in your
software architecture that you can execute and test independently or as part of larger system
tests. Some software development standards, like certain testing objectives, apply
specifically to units in a software architecture. You can use the FindUnits
query to find the Simulink® and System Composer™ models in your design that you need to assess. If you need to find both the
units and components in your design, you can use the built-in query padv.builtin.query.FindDesignModels
instead. For information how to classify the
models in your project, see Categorize Models in Hierarchy as Components or Units.
You can use this query in your process model to find the units in your project and run
tasks on
those artifacts. For example, you can reconfigure the built-in task
padv.builtin.task.CollectMetrics
to collect model and code testing metrics
for the units in your project by specifying the task iteration query as
padv.builtin.query.FindUnits
.
The padv.builtin.query.FindUnits
class is a handle
class.
Creation
Description
creates
a query for finding the units in your project.query
= padv.builtin.query.FindUnits
sets certain properties using one or more name-value arguments. For example,
query
= padv.builtin.query.FindUnits(Name=Value
)query = padv.builtin.query.FindUnits(ExcludePath = "Control")
creates
a query that finds the units in the project, but excludes units that have
"Control"
in the file address.
The padv.builtin.query.FindUnits
class also has other properties, but you cannot set
those properties during query creation.
Input Arguments
Properties
Methods
Examples
Capabilities and Limitations
This table identifies functionality that is supported by the query.
Functionality | Supported? |
---|---|
Input query for task | Yes. See InputQueries. |
Iteration query for task | Yes. See IterationQuery. |
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.