Requestly Launches AI Test Authoring for API Test Scripts

Testing APIs sucks. Nobody likes writing the same assertions over and over again. Requestly just cut out the grunt work by rolling out an AI-powered test authoring agent for API testing, and it is a game changer for teams that write, run, and maintain API tests.

Traditionally, you spin up a client, create collections, map endpoints, and write JavaScript assertions to validate every response. It works, but it is repetitive, error-prone, and boring. Requestly’s new feature flips that on its head.
What’s New: AI Test Authoring
With this launch, you can now generate API test cases using natural language or minimal prompts. The AI understands your endpoints, expected responses, edge cases, and can draft robust test scripts for you automatically.
That means:
- No more boilerplate scripting. Tell the AI what you want to test and it writes the script.
- Smarter edge case coverage. The AI suggests variations and additional assertions you might miss.
- Iterate fast. Ask the AI to tweak, refine, or add assertions without rewriting tests.

This is not just autocomplete. It is AI that understands testing logic. It leverages patterns from your API definitions, endpoint behavior, and best practices in automated testing to generate usable tests.
How It Fits Into Requestly
Requestly’s already lets you write and run tests with JavaScript using the rq.test API and Chai-style assertions. You can validate status codes, JSON structures, error responses, authentication flows, everything you would expect from a modern client-side test suite. With AI test authoring:
- You don’t start with a blank test editor.
- You prompt the AI to write tests for you.
- You can review, refine, and accept what the AI generated.
This makes it easier to bootstrap tests for large APIs without spending hours on every endpoint.
Why It Matters to Dev & QA Teams
If you have ever fought with API test coverage, this will feel like a breath of fresh air. Here is what teams gain immediately:
1. Faster test creation Manual test scripting is the slowest part of API automation. AI does the heavy lifting so you can focus on logic and edge cases.
2. Better test coverage AI can suggest tests for common scenarios and edge cases you might forget, like 4xx responses, schema mismatches, or missing fields.
A Practical Example
Instead of writing something like:
rq.test("Status 200 and user name exists", () => {
rq.expect(rq.response.status).to.equal(200);
rq.expect(rq.response.json().user.name).to.exist;
});You could prompt:
Generate API tests for the “Create User” endpoint that validate success, missing fields, and unauthorized access.
The AI then produces the script, you review it, and you are done. No boilerplate. No guesswork.
That is huge for teams shipping APIs daily.
Final Verdict
No sugar-coating, this is a practical productivity boost, not a gimmick. If you are tired of writing the same tests on repeat, AI test authoring in Requestly does not just save time, it improves quality by catching the things you forget.
Whether you are a solo dev or part of a large QA team, this feature will change how you approach API testing.
Contents
Subscribe for latest updates
Share this article
Related posts










