How can I use NamedValues in the maneuver?
Question
I would like to use NamedValues (NValue) from the TestManager in the Minimaneuver Commands. How can I use NamedValues in the maneuver?
Solution
Using NamedValues in the Maneuver can be very useful.
You can define NamedValues in the Maneuver description like this:
$(NamedValue = < StartValue >)
After saving the TestRun, you can access this NValue in the TestManager and set its values for the variations. With the syntax above, you can also access the value of the NValue in the Minimaneuver Commands and use it for a trigger condition or a calculation like shown in the pictures below.
Here are two additional use case examples:
1) Define a dynamic end condition and write the NValue to a variable for saving it in the test results
2) Use the NValue for a Trigger condition in the maneuver and set a variable for 2 seconds.
You can download a TestRun and a TestSeries for each of these use case examples (CarMaker 8.1.1).
- Date: 03.06.2020
- Product: CarMaker
- Version: 8.1
- Component: TestManager
- Language: English
Tags
Test AutomationManeuver
NValue
NamedValue