Your progress is saved locally. to save it permanently.

0 of 2 steps0%
1

Generate Integration Test Suite

  1. Start a new chat in Agent Mode
  2. Drag and drop your collection into the chat
  3. 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:

  1. Register crew member (POST /register) — save api_key & callsign
  2. Generate Mission Briefing (POST /mission/brief) with phase: transit
  3. Get Mission Overview (GET /mission)
  4. 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
  5. Update one log (PATCH /logs/{logId1}) — category to science
  6. Delete communication log (DELETE /logs/{logId2})
  7. Generate final briefing (POST /mission/brief) with empty body
  8. Verify mission completion (GET /mission) — all steps completed: true

Do not write tests yet — we will add them subsequently.

  1. Run the generated collection using Collection Runner — verify all requests show green checkmarks
2

Run and Verify Tests

  1. In the same Agent Mode chat, enter:

Run the collection using the collection runner and add integration tests based on the responses.

  1. Wait for Agent Mode to add tests to each request
  2. Open Collection Runner and run the test collection again
  3. 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.