11-11-2004 04:56 AM
11-11-2004 11:03 AM
12-08-2010 11:25 PM
Hi Ray,
I have a simple question regarding Goto. Using Goto we can go back to anystep and execute, however after executing that particular step I want the control to go back after "Goto" statement. Could you explain me how it is possible ?
Example :
Step1
step2
step3
Goto step1
step4
In the above scenario, when the control go back to step1 and excutes then want the control back to step4.
One more imporatant question. Can I use "Goto" while testing my safety critical systems ?
Thanks,
Krishna
,
12-09-2010 01:00 AM
Hi,
If all you want to do is repeat Step1 again it would be a lot cleaner just to do Step1 again rather than mess with a Goto (and the logic required to make it branch forward to Step 4).
ie
Step1
Step2
Step3
Step1
Step4
As to the question of using a Goto, well the point here is you are 'testing' and therefore it's important to test all boundary conditions and paths through your safety critical software.