This question is locked. New answers and comments are not allowed.
Hi Telerik Team,
I have several question concerning handling test step failure and test results reporting.
I'm running child tests from the parent test using "Test as Step" functionality. I need to handle situation when some of these steps failed (write error message, make screenshot). As I know there is "OnStepFailure" method that should be called when some step failed:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/execution-extensions.aspx
But when I used this method in my parent test this method doesn't called at all.
What I should do to handle test step failure when test as step failed (even with ContinueOnFailure option)? Also I'm interesting on how to handle failures from parent test when failed some step inside his child test (Test As Step).
When I'm running tests from TestStudio Express VS plugin generated Visual Studio .trx reports file.
Questions:
1) How to customize such report? How to attach or bind application logs and screenshots to this report? Is TestStudio supported functionality to make and arrange screenshot for each executed test step (for visual representation of whole execution flow) ?
2) How to generate separated *.trx reports for each iteration inside Data Driven Test (not all in one)? Maybe there is method like
3) Is there is ability to change settings or bind another external data source at the start of test execution?
Thanks.
I have several question concerning handling test step failure and test results reporting.
I'm running child tests from the parent test using "Test as Step" functionality. I need to handle situation when some of these steps failed (write error message, make screenshot). As I know there is "OnStepFailure" method that should be called when some step failed:
http://www.telerik.com/automated-testing-tools/support/documentation/user-guide/code-samples/general/execution-extensions.aspx
But when I used this method in my parent test this method doesn't called at all.
What I should do to handle test step failure when test as step failed (even with ContinueOnFailure option)? Also I'm interesting on how to handle failures from parent test when failed some step inside his child test (Test As Step).
When I'm running tests from TestStudio Express VS plugin generated Visual Studio .trx reports file.
Questions:
1) How to customize such report? How to attach or bind application logs and screenshots to this report? Is TestStudio supported functionality to make and arrange screenshot for each executed test step (for visual representation of whole execution flow) ?
2) How to generate separated *.trx reports for each iteration inside Data Driven Test (not all in one)? Maybe there is method like
result.ExportToResultFile(@
"C:\"
, result.TestName);
but for VS *.trx reports?3) Is there is ability to change settings or bind another external data source at the start of test execution?
Thanks.