Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Need help for testcase fail over condition in Autoit.

$
0
0
Hi,

I want to know how we can rescue in Autoit.

What i mean is like, for eg i have 4 testcases.

Testcase1
          find checkbox by name "allow" and click it
          find checkbox by name "edit" and click it

Testcase2

          find checkbox by name "allow2" and click it
          find checkbox by name "copy" and click it

Testcase3

          find checkbox by name "allow3" and click it
          find checkbox by name "move" and click it

Testcase4

          find checkbox by name "allow4" and click it
          find checkbox by name "store" and click it



Now currently if i execute script and if in testcase1, script is not able to find checkbox "allow", it does not throw any error.

It just moved ahead with another line.

But what i want to do is like :

1. If it is not able to find any checkbox then it should skip this testcases and go to next testcases i.e. testcase2.
2. OR If it is not able to find any checkbox then simply call the cleanup function, which will close the current window and then go to next testcase.


How we can achieve this.

Im using Micro framework for unit test, so i created the testcases, but if test case fails then im not able to track it where it failed.


Any help is appreciated.

Thanks
Bhavesh

Viewing all articles
Browse latest Browse all 12506

Trending Articles