‎2009 Feb 12 1:48 PM
Hello Colleagues,
In my main script i refer to 3 different scripts .
1) Ref ( Script 1 ) -
if there are some unexpected things then i am asking the control to exit from this script .
2) Ref( Script 2)
3) Ref( Script 3) .
After control comes out of script 1 , i do not want it to execute Script 2 and Script 3.
because Script 2 and Script 3 Gets input from Script 1 and if Script 1 itself is failing no point in executing script 2,3.
Can you kindly help me as to how to tackle the issue ?.
regards
harsha
‎2009 Feb 13 6:26 AM
Hello harsha,
Create a boolean variable in each script which will return the status/run of the Script.
if the value is true then execute the next script,if it is false then skips the script anfd goto next.
Hope it helps..
Regards,
Venky
‎2009 Feb 13 3:00 PM
Hello ,
Can you kindly let me know how to create an Boolean Variable , do we have any datatype for boolean in eCATT ?.
I searched but i was not able to find .
Kindly explain with a small example that will help a lot .
Thanks in advance and regards
Harsha
‎2009 Feb 28 5:09 PM
Hello Harsha,
You can create one export variable in script one and set it to say X if it fails with error . Then in the main script where you have reffered this script you can check if the value of the flag is X then you can add one more exit here.
Hope it answers your question..
Thanks & Best regards,
Ajay
‎2009 Apr 13 5:26 AM
Hi Guys,
We could also handle this with the Error Behaviour in Start Options. Select " X Termination of Start Process " if you want to come out with the first error or select " No Termination, Continue with Next Script Command" . There are more options depending on ur usage.
Note: Please save your start options, and adhere to the same start options whenever u script or execute. Otherwise you would face isuses with scripts expecting different start options while doing a collective test run.
Regards,
Justin