VS Enterprise load test originating IP Address

Viewed 186

If I run a load test from VS enterprise using a single agent, will all the request come from a single IP Address, which effectively means a single user?

EDIT: I cannot check the IIS logs, as the site is load balanced and access is controlled via gateway - so the IIS logs all show the IP address of the gateway. So far I have not been able to find any logs for the gateway

2 Answers

To answer your question:

IP Switching used to configure IP switching, it allows a test agent to send requests to a server by using a range of IP address, this simulates calls that come from different client computers.

To use the IP switching feature, the test agent service must be running as a user in the Administrators group for that agent computer.

To verify that IP switching is working correctly, enable IIS logging on the web server and check the log file.

  1. Open your load test and select a scenario

  2. In the Properties window, set IP switching to True.

  3. Right click the a section and select Manage Test Controller

  4. Select an test agent and click Properties

  5. Check Enable IP Switching and configure NIC, Base Address …

  6. Right click your solution and select Add=> New Item, select Test Settings and add a new test Settings

  7. Configure test setting with Remote execution

  8. Select TEST menu=>Test Settings=>Select Test Settings file, then select that test setting file

  9. Run your load test.

Answer is quoted from here.

If you run a load test from single agent, all request come from the single IP Address of that agent, unless you enable IP switching.

But it does not mean, it is a single user!!

There are as many parallel user sessions and connections open as you specify. (there can be hundreds of TCP connections open with different source ports from the agent)

Related