polyspace.project.TabularTestStep Class
Namespace: polyspace.project
Description
This Python® class contains information about a tabular test step that you author using the Polyspace® Test™ Python API. This class includes:
Reference to the function that the step exercises
Inputs supplied to this function
Assessments against which the success of the test is evaluated
Note
You can only assign strings to the Value property of an input or assessment. Therefore, put quotes around the values you want to assign. For example:
To specify the integer
42, assign the string"42"to theValueproperty.To specify the double
3.14, assign the string"3.14"to theValueproperty.To specify the string
"My String", assign the string'"My String"'to theValueproperty.To specify the address of a variable
var, assign the string"&var"to theValueproperty.
When generating code for your tests, Polyspace Test uses the content of the string to reconstruct the value of the input or assessment.
Creation
Syntax
Description
tabularStep = testCase.TestSteps.createTabular(
creates a tabular test step with name stepName, functionToTest)stepName in a polyspace.project.TestCase or polyspace.project.OwnedTestCase object testCase. The step
invokes functionToTest as the code under test and is added as the last
step in the test.
tabularStep = testCase.TestSteps.createFrom(
creates a tabular test step with name existingTabularStep, stepName)stepName by copying an existing
tabular test step existingTabularStep.
Input Arguments
Properties
Version History
Introduced in R2025a