0 of 2 steps0%
1
Generate Integration Test Suite
- Start a new chat in Agent Mode
- Drag and drop your collection into the chat
- Paste this prompt:
Generate a new collection to do an end-to-end integration test
- Refer to example responses for data to be sent in the body.
- Refer to the collection attached for the request type and add scripts to chain data between the requests.
- Create an environment "artemis.test" (baseUrl: https://artemis.up.railway.app)
Flow:
- Register crew member (POST /register) — save api_key & callsign
- Generate Mission Briefing (POST /mission/brief) with phase: transit
- Get Mission Overview (GET /mission)
- Create 3 mission logs (POST /logs) — save each log ID (path is response.log.id) Crew: wiseman, glover, koch, hansen Category: navigation, life-support, communication, science, crew-status, anomaly
- Update one log (PATCH /logs/{logId1}) — category to science
- Delete communication log (DELETE /logs/{logId2})
- Generate final briefing (POST /mission/brief) with empty body
- Verify mission completion (GET /mission) — all steps completed: true
Do not write tests yet — we will add them subsequently.
- Run the generated collection using Collection Runner — verify all requests show green checkmarks
2
Run and Verify Tests
- In the same Agent Mode chat, enter:
Run the collection using the collection runner and add integration tests based on the responses.
- Wait for Agent Mode to add tests to each request
- Open Collection Runner and run the test collection again
- Verify all requests pass with green checkmarks AND all tests pass
Debugging tip: If tests fail, paste the error into Agent Mode:
This test is failing with [error]. Debug it.