Engine.NewStepType
- Updated2024-10-09
- 1 minute(s) read
Engine.NewStepType
Syntax
Engine.NewStepType
Return Value
Purpose
Creates and returns a new StepType object.
Remarks
You must specify the name of the new step type by setting the StepType.Name property. You can add the type to a TypeUsageList object to associate the type with a particular PropertyObjectFile object. Once you create the step type, you can use the Engine.NewStep method to create an instance of the type.
Note
TestStand does not validate step type names you create programmatically for invalid characters, such as spaces, which can result in errors when you use the data type. Use the
TypeUsageList.ValidateNewTypeName
method to validate step type names. TestStand requires step type names to be strings that contain only letters, numbers, and underscores. Step type names cannot contain spaces, start with a number, or be empty. Additionally, You cannot duplicate step type names already in memory.