Introduction
Postbot AI assistant features:
- Test Script Generation
- Fixed Broken Tests
- Expert Debugging
- Intuitive Prompt Response
- Smart Suggestions
- Visualise Responses
- Add More Tests
- Save a field from response
- API Documentation
- Test Suite Collection
- Get Help
1. Test Script Generation
Steps to generate Test Scripts with Postbot:
- Open Postman
- Navigate to Script Tab > Click on "Ask PostBot" icon
- Type a natural language prompt like: "Test if the response status is 200"; "Verify whether the response body has the attribute "token"; "Validate that the array length is 10"; "Ensure the response time is under 500ms"
- Postbot automatically generates the relevant JavaScript code for your test case and inserts it directly into your test script area, ready for review and execution.
- Click “Save” and Run the Request: Postbot’s script will run automatically each time you send the request.
2. Fixed Broken Tests
Steps to Auto-Fix Script Errors with Postbot:
- Open Postman
- Navigate to "Script" tab and write any script (intentionally include a syntax error to test).
- Run the request by clicking Send. If there's a syntax or runtime error, Postman will highlight it in the test results area.
- Observe the “Fix Script” Icon. You’ll see a “Fix Script” button/icon next to the error message. This appears when Postbot detects issues it can resolve.
- Click on “Fix Script". Postbot will analyze the error and automatically suggest or apply a fix. You can review and accept the changes or modify them as needed.
3. Expert Debugging
Expert Debugging by Postbot empowers developers and testers to:
- Diagnose failing test scripts
- Identify syntax errors and runtime issues
- Automatically fix broken test logic
- Understand what went wrong and why
- Receive step-by-step guidance on resolving complex issues
4. Intuitive Prompt Response
An intuitive prompt response means you can type and get the output:
“Check if the response includes an email field and status is 200”
5. Smart Suggestions
- Real- Time Code Suggestions: As developers begin typing test scripts in the Tests tab, Postbot proactively suggests common test behaviors, helping avoid boilerplate repetition and syntax errors.
- Response-Aware Completions: Postbot analyzes the live API response or any saved response examples to generate customized test suggestions that are tailored to the structure and content of the response.
- Function Name-Based Proposals
- Data-Driven Test Recommendations
- Boosts Productivity
6. Visualise Responses
We have option to see the results in more intuitive way which is more clear to understand.
- Visualise response as a table : Can see the response result in tabular form
- Visualise response as line chart : Can see the response result as line chart
- Visualise response as a bar chart : Can see the response result as bar chart
7. Add More Tests
- Open any request in Postman.
- Navigate to the “Script” tab.
- Click on the “Add More Tests” button (usually found below the test editor).
- Choose from common test templates or use Postbot to generate custom tests
- You can ask in plain language (e.g., "Add a test to check if the response time is under 500ms").
- Click Insert to add the suggested test to your script area.
8. Save a Field From Response
- Another request
- Headers or body
- Conditional logic in tests
Steps to save a field from response:
- Send API request to get a valid response.
- Navigate to the “Script” tab under the request.
- Click “Ask Postbot”.
- Type a prompt like: "Save the Token field from the response to an environment variable"; "Extract userId and store it as a collection variable"
- Postbot will generate a script for you
9. API Documentation
- Open Postman and go to your Collection or a specific Request.
- Navigate to the Documentation section (either in the request pane or via the collection sidebar).
- Click “Ask Postbot” in the documentation field.
- Use natural prompts like: “Write a detailed description of this GET request”; “List the headers and body of this API call in brief.”; “Add usage examples with response format”; “Generate markdown documentation for this API”
10. Test Suite Collection
- Open Postman and go to your Collections tab.
- Click on an existing collection or create a new one.
- Click on the three-dot menu, next to the collection or folder name and then click on “Generate Tests with Postbot”.
- In the Postbot sidebar, type a prompt like: “Generate basic tests for all requests in this collection”; “Create a test suite to validate response status, body fields, and response time”; “Add error response validation for each request”
Postbot will:
- Add relevant tests to the Tests tab of each mentioned request
- Suggest test case names and logic
- Optionally handle parameterized test data (e.g., from CSV/JSON files)
11. Get Help
- Expertly Curated Instructions: Postbot pulls relevant information from official documentation, tutorials, and FAQs to provide accurate and relevant support, right when you need it.
- No More Searching: Instead of jumping to external forums or search engines, simply ask Postbot your question directly inside Postman.
- Context-Aware Help: Whether you're writing tests, debugging scripts, or visualizing responses, Postbot understands your context and offers tailored help.
