Support Center

Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

Testdroid Exception Handling

Frank Harper Feb 02, 2013 12:11PM CET

I noticed that TestDroid recorder generates exception handling code for every test case.

When I am writing my own test cases should I be adding the same code? If so why?

Below is an example of code generated by TestDroid recorder
try {
// ... test code here
} catch (AssertionFailedError e) {"com.test.Activity_Test.testRecorded_scr_fail", e);
throw e;
} catch (Exception e) {"com.test.Activity_Test.testRecorded_scr_fail", e);
throw e;

Up 2 rated Down
Michal Szpruta Feb 02, 2013 06:36PM CET Bitbar Testing help Agent
It's not needed. We implemented fail method, which takes screenshot and saves information about failed step in special file. We and our customers find it very useful, especially for tests run in Testdroid Cloud. This way we are able to show which step failed and show screenshot after it.

This question has received the maximum number of answers.

Contact Us
seconds ago
a minute ago
minutes ago
an hour ago
hours ago
a day ago
days ago
Invalid characters found