04-27-2016 03:29 AM
Hello,
i have a lot of teststeps that have all the same big preexpression.
How can i put this expression into a StationGlobal variable so that i i have to change only at one position and put the StationGlobal into the preexepression.
Thx
Solved! Go to Solution.
04-27-2016 05:12 AM
04-27-2016 06:23 AM
Exactly.
Works perfect. Thx
06-13-2016 09:39 AM
Hi again,
as already postet when putting the exepression in StationGlobal then i can reuse it with the Evaluate(StationGlobals.xyz).
So the function is correct and working.
Now i have another problem: I want to define this StationGlobal content with a statement at the beginning of my sequne
So something like StationGlobals.MyExpression =
(Find(RunState.NextStep.Name," - ") < 0 ? RunState.NextStep.Name : Mid(RunState.NextStep.Name, Find(RunState.NextStep.Name," - ") + Len(" - ")))
The check icon says No error but when executing there is an error
The post-expression for the step 'Set RenameExpression' could not be evaluated.
Error in argument 1, 'RunState.NextStep.Name', in call to the expression function 'Find'.
Unknown variable or property name 'RunState.NextStep'.
Errorcode: -17306; Unknown variable or property name.
How can i write this text to my StationGlobal for later evaluating?
Thx
06-13-2016 10:36 AM