Give LLMs API specs and ask to write you API tests
06 Nov 2025
There is Cursor agentic IDE screen that shows agent converting json specs into API tests.
For a while, I had a few collections of API tests in Postman while I was exploring our API a while ago. We aren't planning to use Postman for API automation and I thought what if I speed up API test automation by giving my agent json specs (claude-4-sonnet in Cursor) and ask to convert those specs into API tests.
Beforehand, I have asked agent to read and run already existing API tests and asked it to follow the pattern, coding standards that are already established in the repo. In this way, I can keep consistency and should take less time to review vibed tests to align with existing.
What I have realised is I didn't ask my agent to not generate tests for endpoints that already exist, so I will need to review those to make sure there aren't duplicates. Something to keep in mind for next time.
Beforehand, I have asked agent to read and run already existing API tests and asked it to follow the pattern, coding standards that are already established in the repo. In this way, I can keep consistency and should take less time to review vibed tests to align with existing.
What I have realised is I didn't ask my agent to not generate tests for endpoints that already exist, so I will need to review those to make sure there aren't duplicates. Something to keep in mind for next time.
Nataliia Burmei
Lead Quality Engineer
I am Nat, Lead Quality Engineer who loves travelling, running, quality coffee with a book on the side. Totally unbiased, I love quality.
Open To
Write
Podcasting
Speak
Meet at MoTaCon 2026
Simon Tomes
Great use of an agent! Thanks for sharing.
Danny Dainton
Postman will allow you to do this to, all inside the platform with Agent Mode ♥️
https://www.postman.com/product/agent-mode/
Sign in
to comment
Cases, runs, evidence, requirements, and releases in one AI-powered platform for authoring, execution, and automation.
Explore MoT
Thu, 1 Oct
A tech conference to help you navigate the ever-shifting landscape of Quality Engineering, AI, Leadership, Product, Accessibility and Security.
Learn how to dig deeper into the Web with the use of Devtools
Into the MoTaverse is a podcast by Ministry of Testing, hosted by Rosie Sherry, exploring the people, insights, and systems shaping quality in modern software teams.