📣 Requestly API Client – Free Forever & Open Source. A powerful alternative to Postman. Try now ->

Requestly Launches AI Test Authoring for API Test Scripts

Sagar Soni
Requestly introduces AI Test Authoring, allowing developers to automatically generate and refine API test scripts for faster, smarter testing.

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.

test authoring agent - ai prompt

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:

  1. No more boilerplate scripting. Tell the AI what you want to test and it writes the script.
  2. Smarter edge case coverage. The AI suggests variations and additional assertions you might miss.
  3. Iterate fast. Ask the AI to tweak, refine, or add assertions without rewriting tests.

test authoring agent - review changes

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:

  1. You don’t start with a blank test editor.
  2. You prompt the AI to write tests for you.
  3. 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.

Written by
Sagar Soni
Sagar is the co-founder and CTO of Requestly (recently acquired by BrowserStack). With over 8 years of experience in software development and entrepreneurship, he’s passionate about building innovative tools that solve real-world problems. From architecting scalable web applications to leading cross-functional teams, Sagar has worn many hats throughout his journey from technical implementation to business strategy. Always looking for the next challenge to tackle.