Repeato
  • Features
  • Pricing
  • Blog
  • Resources
  • Get for free
  • Getting started
  • Running test batches
  • Reporting
  • Test devices
  • Screenshot testing
  • Test exception handling
  • Tags
  • Automate switching devices
  • Advanced Configuration
  • Test workspaces
  • Advanced testing techniques
  • JavaScript API
  • Share tests within the team
  • Continuous Integration Support

Test exception handling

Repeato test exception handling explainedLet’s think of a video app. You want to test if some sort of offline download is working.

Let’s further assume that the app sometimes asks the user to rate the app through a special dialog that appears one out of 10 times the user starts the app.

This would result in your tests failing one out of 10 times because your tests don’t know how to deal with the rating popup.

Exception handlers to the rescue!

How does Repeato exception handling work?

  1. Record and save a short test that takes care of closing the rating popup. This might even be just a single step.
  2. Add this test to your test batch as an exception handler.
  3. When your test batch fails, your close-the-dialog exception handler takes care of closing the dialog. For each exception handler, you can define whether you would like to retry the current test step afterward or rather retry the whole test.

Add exception handlers to your test batch like this:

repeato test exception handler

 

There are 3 modes you can use for each exception handler:

  1. Retry step: If the exception handler succeeds, the original test restarts right at the step which failed before.
  2. Retry previous step:  If the exception handler succeeds the original test restarts right before the step which failed.
  3. Retry test: If the exception handler succeeds, the original test restarts right from the first step. So basically the whole test is executed again.

 

It’s possible to add more than one exception handler to your test. If the first one fails, the second one will be executed. If the second one fails, the third one will be executed, and so on…

Repeato

  • Home
  • Pricing
  • Blog
  • FAQ
  • About us

Documentation

  • Getting started
  • Test exception handling
  • Advanced testing techniques
  • JavaScript API
  • Release notes

Support

  • Support & Resources
  • Documentation
  • Book a demo
  • Contact

Legal

  • Imprint
  • Terms & Conditions
  • Privacy policy
Repeato Reviews
[activecampaign form=5 css=0]
Manage Cookie Consent
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes. The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
Manage options Manage services Manage {vendor_count} vendors Read more about these purposes
View preferences
{title} {title} {title}