-
Notifications
You must be signed in to change notification settings - Fork 8
Docs: Add detailed guide on Pre Script and Post Script #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
mustafa-sayyed
commented
Dec 28, 2025
- I have added a detailed guide on Pre Script and Post Script and How to use scripts to automate API Testing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR adds a comprehensive guide on automating API testing using Requestly's Pre-request and Post-response scripting features. The guide is aimed at developers who want to streamline repetitive API testing tasks through JavaScript-based automation.
Key changes:
- Introduces scripting concepts and core API objects (rq, rq.request, rq.response, rq.test, rq.expect, rq.environment)
- Provides practical examples for authentication token management, pagination, response validation, and NPM package integration
- Includes code samples demonstrating real-world use cases
Reviewed changes
Copilot reviewed 1 out of 3 changed files in this pull request and generated 10 comments.
| File | Description |
|---|---|
guides/community-content/automate-testing-via-scripts-in-requestly.mdx |
New documentation guide with examples and explanations of Pre-request and Post-response scripts |
images/guide-pre-and-post-scripts/scripts.png |
Screenshot image showing the Requestly scripts interface |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.