Forum Discussion
Hi Chirag,
Alexei is right. Currently, to access and log request and response bodies during the playback, you can create event handlers for the OnLoadTestingRequest and OnLoadTestingResponse events. Please see the Checking Server Response help topic for an example demonstrating how to create a handler for the OnLoadTestingResponse event and to verify server responses.
As an alternative, if you don't want to use event handlers to check server requests and responses in your script code, you can use a third-party debugging proxy server like Fiddler (which is a freeware tool). You just need to configure your proxy server and specify the HTTP Proxy Server settings of TestComplete to send simulated HTTP traffic via the proxy tool. It will record all HTTP requests simulated by TestComplete and appropriate responses received from the tested Web server. Then, you can easily inspect these requests and responses (both headers and bodies) with the debugging proxy tool.
Related Content
- 9 months ago
- 2 years ago
Recent Discussions
- 12 hours ago
- 13 hours ago