Skip to content
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

Feedback for “JavaScript API Reference” #86

Open
jgiganti opened this issue Jul 23, 2024 · 0 comments
Open

Feedback for “JavaScript API Reference” #86

jgiganti opened this issue Jul 23, 2024 · 0 comments

Comments

@jgiganti
Copy link

The documentation for setNextRequest states that it should work in a post-request script or test-script. I have only been able to get it to run in script:post-response {} and in tests {}. for instance the first snippet works but the second one does not. This would not be as big a problem except for the fact that when importing a collection from postman it keeps the setNextRequest in the tests section and it also calls is postman.setNextRequest

script:post-response {
  bru.setNextRequest("TestsVariable 3");
}

tests {
  bru.setNextRequest("TestsVariable 3");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant