amathews
15 years agoOccasional Contributor
How to make test TimeOut for data driven test function?
So here's the situation: I'm an automation tester new to the company that inherited a large suite of TestComplete tests from the previous automation tester. These tests are data driven from an excel file, running each row as a test case in one function. Since it's all run in one function, however, I can't set a timeout time for each test case, but this excel file has, like, 500 test cases, so if one test hangs up on an action then it ruins the rest of the suite.
Question(s):
1) Is there a way to set a "timeout" for all individual actions, i.e. if a new action has not been performed in X time then throw timeout exception (in which case when the timeout gets thrown I can make an OnTimeout event that moves me on to the next testcase in the Excel file)?
2) Can TestComplete/jscript support Threads? Could a "monitor test" thread poll for stuff and maybe throw a timeout exception at the test?
3) Other options?
Thanks
Question(s):
1) Is there a way to set a "timeout" for all individual actions, i.e. if a new action has not been performed in X time then throw timeout exception (in which case when the timeout gets thrown I can make an OnTimeout event that moves me on to the next testcase in the Excel file)?
2) Can TestComplete/jscript support Threads? Could a "monitor test" thread poll for stuff and maybe throw a timeout exception at the test?
3) Other options?
Thanks