Selenium Workbook #27: CRUD Test Revisit (with Modal)

Client CRUD with Database Reset; Testing modal.

Courtney Zhan

--

This article is one of the “Selenium Training Workbook” series, a set of bite-sized exercises.

In episode #22, we covered the CRUD (Create/Read/Update/Delete) tests for a Professional in WhenWise. Because automated testers typically write several sets of CRUD tests for an app, it is important to get familiar with writing CRUD tests. This and the next episode serve as a review, along with introducing a few new testing tips.

Learning Objectives

  • Review CRUD Test Design.
  • Use of database reset to help simplify test design.
  • Drive elements in a Modal.
  • Make steps that involve quick JavaScript more stable.

Note: If this exercise takes a bit long, you may skip the refactoring and leave it for the next episode.

Test Design

With CRUD tests, we usually write them together in one test script file. In other words, design as a whole.

There is not much to say about CREATE tests, except make sure the test data is dynamic. For example, you can’t create the same client twice (unless with database reset, which I will

--

--

No responses yet