polyspace.project.TestCase Class
Namespace: polyspace.project
Description
This Python® class contains information about a graphical test case that is saved separately
from a Polyspace® Platform project in a .pstestd file. When you add a reference
to this .pstestd file from a project, it is called a test reference. Saving
your graphical test cases in .pstestd files and referencing those files
from one or more projects enables you to create a modular project structure that improves
sharing and version control workflows. For more information about project structure, see Modularize Project by Using External Configurations, Test References, and External Stub Files.
To work with test references in the Polyspace
Python API, use this class, which contains the test case definition, together with the
polyspace.project.TestCaseRef class, which contains the name of the graphical test
case and the path to the .pstestd file where it is saved. You can also work
with test references in the Polyspace Platform user interface.
To create and manage test cases that are owned by the project, use the polyspace.project.OwnedTestCase class.
Creation
Description
referencedTestCase = myTestCaseRefObj.get() returns the
polyspace.project.TestCase object referenced by the
polyspace.project.TestCaseRef object
myTestCaseRefObj. For more information on managing referenced test
cases from a test suite see polyspace.project.TestCaseRef.
Properties
Methods
Version History
Introduced in R2025aSee Also
polyspace.project.CodeInfo | polyspace.project.Project | polyspace.project.TestCaseRef | polyspace.project.OwnedTestCase | polyspace.project.ScriptedTestStep | polyspace.project.TabularTestStep
Topics
- Author Graphical Tests Using Python API for Polyspace
- Create Easily Shareable Projects for Version Control
- Modularize Project by Using External Configurations, Test References, and External Stub Files
- Modularize Existing Project by Using Polyspace Python API
- Create Project Dynamically by Using Polyspace Python API