Forum Discussion
If you have used Postman, then you should know what HTTP request methods to use and also what HTTP headers to set, so that the server can respond to your request.
The same can be done using the methods shown in Sending and Receiving HTTP Requests From Script Tests.
Remember, sessions do expire. So reusing the previous session may not work.
- MaksZin2 years agoOccasional Contributor
Hi rraghvani . Thank you for your reply.
I understand how to send HTTP requests in TC, I mentioned it in my post, but I think my questions remain unanswered.
1. How can I set header and cookie in browser once I logged in with API request?
2. Does TC provide built-in tools for that?
3. Does TC provide built-in tools to reuse authentication state similar to Cypress and Playwright? (see links in initial post).
4. Example code would be helpful.
Thanks
Related Content
- 4 years ago
- 6 years ago
Recent Discussions
- 2 days ago