5

How can I find the IP addressses used by the agent computers in a Visual Studio load test? When using Microsoft's cloud based load testing service I see the status message that This load test will run using 2 Internet Protocol (IP) addresses but how do I learn what they are? I have not seen the addressses within the headers or bodies of the http(s) messages.

Whilst it would be possible to add a request to one of the many "what is my IP address?" servers I do not want to add that load to my tests nor to the external servers.

  • 1
    Does it need to be presented in the test results, or are you just looking for your own knowledge? – Lyndon Vrooman Jul 10 '17 at 17:30
  • 1
    @LyndonVrooman Need to tell our customer the IP Addresses after the test run. In the results would be best. If I can get the value by program (eg in a plugin) then it should be easy to make it visible in the results. For example by inserting it into the "Reporting name" of a convenient request. – AdrianHHH Jul 10 '17 at 20:46
  • 1
    Hoping that someone else has come across this. I'm unfortunately not completely certain how to do it automatically. I've been looking for an excuse to use the cloud based tests to see how it differs from the on-prem service, but, I don't think that I'll get to it this week. – Lyndon Vrooman Jul 11 '17 at 14:07
  • 1
    Are you using their cloud service or local agents? – ECiurleo Jul 13 '17 at 15:49
  • 1
    @ECiurleo stated in the question "... When using Microsoft's cloud based load testing service...". – AdrianHHH Jul 13 '17 at 16:24
1

This answer doesn't directly get it with the load testing tools, but an alternate method.

Utilize logging to pull logs from each server and set the destination for the logging to an external location. This will allow you to get the logs from each server respectively into a desired location for each server on your systems. You will then be able to compare the server logs with the test execution to be sure know which server was doing what at what time.

Note: You will also need to be sure that the server and application logging is setup to sufficiently capture the traffic/activities you are after.

  • What logging do you suggest, how would it be created and where would it be written? Remember that this must all be done within Microsoft's cloud load testing facility. – AdrianHHH Sep 7 '17 at 8:31
  • I don't know all what Microsoft cloud allows to log, but it would be on their servers and likely you would not want all the debug stuff turned on as it would increase your load. You don't mention the exact traffic you are after, but I would assume that a process is started on respective servers when the tests are run. If you start an additional thread with each concurrent load user then you probably want to capture the thread counts as they increase on each machine. Setup logging or get the cloud admins to setup logging so that each thread addition is logged as it starts/stops – mutt Sep 7 '17 at 14:14
  • The log path would go to a local directory that the network can access and a separate file for each server that would start by including the server IP it's coming from in the log. How the IP is retrieved you would need to ask the cloud admins to help get that setup as they control all of that. – mutt Sep 7 '17 at 14:16
  • I think I follow your ideas. The problem is that the cloud load testing service does not provide the sort of logging you imply. It provides a service that uploads some files and data that form a load test. It then runs that test. Finally it downloads some results that are in a defined format. As far as I can see there are no facilities for adding extra data into the downloaded results. Hence my original question, how can I access and download some additional results - OK I only asked about IP addresses in this question but if I can download them then I can surely download other wanted data. – AdrianHHH Sep 7 '17 at 14:48
  • Do you have a sys admin support contact? They have to have VMs or Physical boxes somewhere that you are connecting to. Someone has to be managing them. You would be discussing logging with them as they would have to configure that for you and you just provide what you need logged from each server. Most places have something like that, they may add cost to it, or might reject altogether and say you can't. In the latter case it's a dead end...but I'm hoping they will work with you some and allow logging remotely from the boxes you utilize during your tests. – mutt Sep 7 '17 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.