Automation Guide
Action-based testing language
TestArchitect Automation Classes
Engine class methods ![](data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABmJLR0QA/wD/AP+gvaeTAAAAXklEQVRIiWNgGAWjAAoYoZhmhk9kYGCYQStLHBgYGP4xMDD8h1pEE0vSkSyhmU9GqCVMtHABJYCmQTR0DXdgoCCjMROh5iEDA4MgAwPDRQYGhlyoRVQHNC3sRsEQBwD2mR7t73r7NQAAAABJRU5ErkJggg==)
The requested page is not available for selected version.
ShouldAssign
Syntax
integer ShouldAssign (string value )
Description
Test if an argument value specifies a variable that needs to be assigned (whether the assignment prefix “>>” was used).
Parameters
value
Value that is either an explicit value or the name of a variable to which a value should be assigned.
Return Value
The function returns 1 if an assignment is needed or 0 if not.
Notes
- Typically used for entry/capture of values that can be generated automatically by the system under test. If a tester specifies the “>>” prefix, a generated value should be captured and kept in the variable, otherwise the value should be assigned, possibly overwriting the generated value.