TesterAgent

Test cases for a website: examples and a template

A test case is a set of steps that tests one function: an ID, preconditions, steps, test data and the expected result. A test scenario is the broader thing you want to test, and one scenario usually has several test cases. TesterAgent generates test cases from the functions it finds on your site, runs them automatically and exports them as CSV that opens in Excel or Google Sheets.

Test case vs test scenario vs test script

Three terms that are often mixed up
TermWhat it isExample
Test scenarioWhat to test, in one lineUsers can log in
Test caseExact steps, data and expected resultLog in with a valid email and password → dashboard opens
Test scriptThe automated code that runs a test caseA Playwright script

Five example test cases

Examples (adapt the steps to your site)
IDFunctionStepsExpected result
TC-001Login formOpen /login, enter a valid email and password, press Sign inThe account page opens; no error
TC-002SearchType a product name that exists, press EnterResults list the product
TC-003Contact formSubmit with the email field emptyA clear message says the email is required
TC-004Language switchSwitch to Lao on the home pageThe same page opens in Lao; no English left
TC-005404 pageOpen a URL that does not existA 404 page with links back; status 404

CSV template

Use these columns: id, function, page, preconditions, steps, test_data, expected, actual, status. One row per test case; keep IDs stable so you can compare runs.

Generate them automatically

On Pro and Business, TesterAgent finds your site’s functions and writes these test cases for you. See the test case generator.