03-05-2010 01:00 PM
Hi,
I am trying to use the property loader to set cetain steps to jump to clean up on fail but I can't seem to get the syntax correct.
What I am using is
TS.FailAct | TS.FailActTarget |
"Goto" | "<Cleanup>" |
Any help appreciated.
Thanks & Regards,
Shane.
03-06-2010 10:14 AM
Hey Shane,
Are you going to change those steps to jump to a different location on fail? If not then you wouldn't need to set them with the property loader. Just hard code them to go to cleanup on failure.
One option is to use the Specify by Expression. Then use a local variable as the expression. Use the property loader to set the local variable to the destination. For cleanup use <Cleanup>.
Hope this helps,
03-08-2010 08:09 AM
Hi,
I would in the future like to chage the jump to a different step location - so hence I would like to get this working through the property loader to avoid having to update the test sequence. Using a local variable is an idea but I don't want to have to create a local variable per step.
Any help greatly appreciated.
Thanks & Regards,
Shane.
03-11-2010 07:15 AM
The trouble you have is that not properties are visible to the PropertyLoader and the Step.TS properties is one of them.
You would have modify the PropertyLoader code to handle that.
The use of a Local variable means you would have to have a local variable for every step in a sequence.
Regards
Ray Farmer