Use Case: Database Commits/Rollbacks

In this section, we will detail a sample scenario in which a Database Commit and Rollback is performed. This use case showcases an example of how to use If-Then-Else to check any database issues and then commit or rollback the database actions if any of them fail. In the eventuality of failure, CloudTest will not simply exit the clip but will execute the rollback. This scenario includes an intentional error that demonstrates the rollback potential of the feature.

  • Before you begin, create your database target (use the steps in Creating a Database Target above).
  • Create a new test clip, include your database target, and add the first database action to the new clip (all using the steps in Creating a Clip for Database Actions above).