| || |
Capture request or traffic on click.
I am new to this tool( trail 7.5) as well to load testing.
My requirement is --While user click on a banner (Web App-IE) JS makes a server request. In that request they have some variables to catch and count How many are looking at this page or ad they are interested.
I have gone so far to record traffic while recording a webtest and I do know which request to handle. The real question is How do I use the task( which has the traffic or request)in the webtest???? Or Do I need to use load test only to go through task?? If I have to use load, then at the same time I do not want to generate load.
It would be a great deal if I could use the task in Webtest.
Pl need advice to choose teh path....
Re: Capture request or traffic on click.
So, what you need to do is to capture HTTP traffic during the function web test execution.
TestComplete cannot do this. We have a corresponding suggestion in our DB, and your request has increased its rating. Thanks for your post.
You can accomplish your task by using a third-part HTTP proxy. Here are the steps I'd follow to do this:
1. Install a proxy tool on my test PC.
2. Configure my tested application to use the proxy (probably, from script to make sure that the settings are correct before the actual test execution).
3. Right before the click that causes the HTTP request to be generated, enable traffic capturing in the proxy tool (from my test script).
4. Simulate the click and stop traffic capturing.
5. Interact with the proxy tool from my test script to pull out the needed information about the recorded requests, locate the needed request by the URL and check its parameters.
I hope this helps.