AGENT SKILL

test-data-generator

Produce the data sets a scenario or test case needs to run. Use when a tester says "generate test data", "give me boundary values for this field", or needs valid, invalid, boundary, and synthetic records to drive cases. Returns labeled data sets — valid, invalid, boundary, and faker-style synthetic — each tied to the field or scenario it exercises, with a note on which are safe to use in which environment.

License 许可
MIT
最近更新
2026-07-15
Stars
★ 4
Forks
8

01 前言 Front Matter

name
test-data-generator
license
MIT
metadata
{ "author": "TheTestingAcademy", "version": "1.0.0", "stlc-phase": "Test Case Development" }
description
Produce the data sets a scenario or test case needs to run. Use when a tester says "generate test data", "give me boundary values for this field", or needs valid, invalid, boundary, and synthetic records to drive cases. Returns labeled data sets — valid, invalid, boundary, and faker-style synthetic — each tied to the field or scenario it exercises, with a note on which are safe to use in which environment.

03 SKILL.md 正文

Test Data Generator

You supply the inputs that make cases executable — real-shaped but never real customer data. Coverage of edge and invalid values matters as much as the happy path.

When to use

  • A test case references a data set that does not exist yet.
  • Someone asks for boundary or invalid values for a specific field or form.
  • A suite needs bulk synthetic records to exercise volume, roles, or states.

Workflow

  1. Read the field rules. Take the field/entity definition from the scenario, AC, or schema. If constraints (type, length, format, allowed values) are unknown, ask — do not assume a validation rule that may not exist.
  2. Generate by class. For each field produce four labeled classes: valid (representative), invalid (type/format/constraint violations), boundary (empty, min, max, off-by-one, Unicode/whitespace), and synthetic (faker-style bulk realistic records).
  3. Tie to expected outcome. Note what each value should do — accepted, rejected with which error, or truncated — so cases can assert against it.
  4. Flag safety. Mark data that must only run in non-prod, and never use real PII; generate fabricated names/emails/IDs instead.
  5. HUMAN REVIEW GATE (mandatory). Present as a draft data set. Call out any constraint you assumed. Ask the tester to confirm the rules before the data is wired into cases.

Output shape

## Test Data — <field / entity>  (constraints: <type,len,format>)
Valid:     [ ... ]                 -> expected: accepted
Invalid:   [ ... , why invalid ]   -> expected: rejected (<error>)
Boundary:  [ empty, min, max, +1 ] -> expected: <per value>
Synthetic: <faker recipe / sample rows>   env: NON-PROD ONLY
--- HUMAN REVIEW GATE ---
Assumed constraints / "Confirm the rules before this data drives test cases"

Guardrails

  • Never use or copy real production / customer data; all records are fabricated.
  • Do not invent a validation rule to justify a value — an unknown constraint is a question.
  • Label every non-prod-only data set; do not imply data is safe for a live environment.
  • The data is a draft input until the field rules are confirmed by a human.

04 同仓库更多 Skills

PramodDutta
PramodDutta/skillmasterclass

se-wait-fixer

Scans Selenium Java code for Thread.sleep and for implicit+explicit wait mixing, then replaces them with WebDriverWait/ExpectedConditions or FluentWait to fix synchronization. Use when an SDET says "remove Thread.sleep from my tests", "fix the flaky waits", "my implicit and explicit waits conflict", or pastes code full of hard sleeps. Produces refactors the engineer must run and confirm.

★ 4
PramodDutta
PramodDutta/skillmasterclass

se-test-generator

Generates a runnable Selenium 4 + TestNG test in Java from a plain-language scenario, using explicit waits and stable locators. Use when an SDET says "write a Selenium test for login", "generate a TestNG test for the checkout flow", "automate this scenario in Selenium", or pastes Gherkin/steps and wants Java WebDriver code. Produces a draft test the engineer must review and run.

★ 4
PramodDutta
PramodDutta/skillmasterclass

se-report-integrator

Integrates reporting (Allure or ExtentReports) into a Selenium + TestNG suite with listeners, screenshot-on-failure, and step logging. Use when an SDET says "add Allure to my tests", "set up ExtentReports", "capture a screenshot on failure", "add a TestNG listener for reporting", or wants readable run reports. Produces listener and config code the engineer must run to generate a report.

★ 4
PramodDutta
PramodDutta/skillmasterclass

se-page-object-builder

Builds a Page Object Model class in Java (PageFactory @FindBy or explicit locators) with action methods and a WebDriverWait for a given page. Use when an SDET says "create a page object for the login page", "build a POM class", "refactor these locators into a page object", or pastes a page's fields and wants a reusable POM. Produces a draft class the engineer must review and run.

★ 4
PramodDutta
PramodDutta/skillmasterclass

se-locator-strategist

Recommends and repairs Selenium locator strategy — replaces brittle absolute XPath with By.id, By.cssSelector, or Selenium 4 relative locators, and explains the trade-offs. Use when an SDET says "this XPath keeps breaking", "make this locator more stable", "why is my locator flaky", "convert this XPath to CSS", or pastes selectors to harden. Produces proposals the engineer must verify in the DOM.

★ 4
PramodDutta
PramodDutta/skillmasterclass

se-grid-configurator

Configures Selenium Grid 4 (hub-and-node or standalone, including Docker) and wires RemoteWebDriver for parallel and distributed runs. Use when an SDET says "set up Selenium Grid", "run my tests on a remote grid", "dockerize Selenium Grid 4", "point my tests at RemoteWebDriver", or wants parallel execution across nodes. Produces config and code the engineer must run and validate in their environment.

★ 4