#29: Search/Find/Filter Clients (Test Data Preparation)
Test data preparation; Search as you type
This exercise will introduce an important concept in E2E Test Automation: Test Data Preparation. Like many websites, the WhenWise app has a search function. In this exercise, we will do a simple search, finding clients by name.
Learning Objectives
Test Data Preparation
Make test data available for all test cases in one test script
Search-as-you-type text field
Test Design
For customer name searching, we must prepare a set of person names first (for different scenarios). There are two methods:
Using seeded data
Enter new test data for this test script
Method 1: (pure) Seeded test data
The test script depends on the seeded test data if the app provides this utility (WhenWise does, see this article).
Pros:
Very simple (for this test script), just use them.
Test execution will be fast
Cons:
Efforts to create and maintain the test data
If there are changes to seeded client test data, this test script (most likely) will fail.
Method 2: Fresh newly created test data for this test script
Keep reading with a 7-day free trial
Subscribe to AgileWay’s Test Automation & Continuous Testing Blog to keep reading this post and get 7 days of free access to the full post archives.