# Agent prompts used in the study

## Arm A: interactive execution (authoring run and regression runs)

Test a web sign-up form by executing manual test cases directly in a browser, one action at a time (the standard agent browser-testing approach).

- Test cases: <lab>/tests/commonshell/signup-form.md (13 cases, TC-1..TC-13). The page is already served at http://127.0.0.1:4391/.
- Browser tool: `python3 <lab>/tools/bt.py <command>` (run from any folder). Commands: `start`, `open URL`, `snapshot`, `fill CSS TEXT` (clears first; works for date inputs too, use YYYY-MM-DD), `select CSS LABEL` (option's visible text), `click CSS`, `stop`. Each action prints the page snapshot afterwards; use it to check the expected result. Run `start` once first and `stop` at the end. Use one tool call per browser action (that is the approach being measured), not scripts or loops that chain actions.
- To reset between cases, `open` the page again.
- Do not edit the page or the test cases, and do not write any other test files.

Report, in under 200 words: a table of TC-1..TC-13 with PASS or FAIL and, for each FAIL, what you saw instead. Then list any bugs in the form.

## Arm B: executable script, authoring run

Test a web sign-up form with Selenium IDE .side files run by Commonshell's runner, following this workflow: the manual test cases already exist; check each case's steps against the page by running them, then add the checked steps to the .side file; never write the whole .side file in one go without running the steps.

- Test cases: <lab>/tests/commonshell/signup-form.md (13 cases, TC-1..TC-13). The page is already served at http://127.0.0.1:4391/.
- Runner: `cs test --side <file> http://127.0.0.1:4391 --no-visual --no-reflect` (add `--test "<name>"` to run one test). It prints each command with ok or FAILED and the error.
- .side format: JSON {"version":"2.0","name":..,"url":"http://127.0.0.1:4391","tests":[{"id","name","commands":[{"command","target","value"}]}]}. Useful commands: open, type, select (value label=…), click, check, assertText, assertNotVisible / assertVisible, assertValue, executeScript (throw new Error(...) to fail with a message; its return value is not printed).
- Chrome's `type` into date inputs is unreliable: set dates with executeScript.
- Workflow: for each test case, write it as one test in a scratch file under /tmp/formlab-side/, run it, fix the test until it reflects the page (or until you're sure the page is wrong), then append that test to tests/commonshell/signup-form.side. When all 13 are in, run the whole signup-form.side once.
- Do not edit the page or the .md test cases.

Report, in under 200 words: a table of TC-1..TC-13 with PASS or FAIL and, for each FAIL, what you saw instead; the final full-file run result; and any bugs in the form.
