#32: Quick Search Clients (Live Search)
Review of waits and extract to function refactoring
Learning Objectives
Test Data Preparation
Search-as-you-type text search and select a result
Review: Waiting
Review: Extract to Function refactoring
Test Design
As for any searching-related automated tests, the first thought for QA engineers is test data preparation. For example, WhenWise live search supports several modes:
By first name, e.g. “James” for full name “James Bond”
By last name, e.g. “Bond”
By initials, e.g. “J B”
Also, we need to consider “No matches”, “Single result”, and “Multiple results”. In summary, you need to consider the above before writing automated test scripts.
A quick recap of the two common ways to prepare test data in automated test scripts:
Using seeded data
Enter new test data for this test script
Because the WhenWise test server has a built-in data reset utility, the first approach is a lot easier.
Test Data (Login) :
Site URL: https://whenwise.agileway.net
Login: physio@biz.com
Password: test01
Tasks
Task 1: Live Search
A live search box returns a list of matching results as a user types. This is achieved via AJAX.
Keep reading with a 7-day free trial
Subscribe to The Agile Way to keep reading this post and get 7 days of free access to the full post archives.