Forum Discussion
rajendermehta
14 years agoOccasional Contributor
Hello Sumedha and Allan,
I have the similar issue:
Story:
I have a test senerio where I input the data file to process and check whether it passes or failed for particular file input execution.
So, function look like:
function main()
{
//function call to get all files.
foreach(file in files)
{
function test(file)
{
//Do processing.
}
}
}
Problem:
Now, for any particular instance, my test execution fails. I want my test should continue execution for next files input, indepedent of error occured in any particular itteration. Please guide, how to do that.
Note:
I have already handled the exceptions by try, catch block. I have already defined LogOnError event handler and runner.stop(true), but since it terminate my whole test execution.
Best Regards,
Rajender Mehta
rajender_mehta@agilent.com
I have the similar issue:
Story:
I have a test senerio where I input the data file to process and check whether it passes or failed for particular file input execution.
So, function look like:
function main()
{
//function call to get all files.
foreach(file in files)
{
function test(file)
{
//Do processing.
}
}
}
Problem:
Now, for any particular instance, my test execution fails. I want my test should continue execution for next files input, indepedent of error occured in any particular itteration. Please guide, how to do that.
Note:
I have already handled the exceptions by try, catch block. I have already defined LogOnError event handler and runner.stop(true), but since it terminate my whole test execution.
Best Regards,
Rajender Mehta
rajender_mehta@agilent.com
Related Content
- 5 years ago
- 14 years ago
Recent Discussions
- 3 hours ago
- 3 days ago