dmadrian

I'm writing some information to log files about a currently running load test from my test agent machines, but I want to name the log files with the date and time of the currently running test. I could certainly just get the current time as the test starts and use that, but I want to make sure it corresponds exactly with the time Team Foundation Server assigns to the test.

Is there a property of the load test I can access while it's running to get the start date/time that Team Foundation Server has for the test

Thanks,

David



Re: Visual Studio Team System - Testing Accessing StartTime of Currently Running Load Test

Nagaraju Palla MSFT

I'm not sure what you meant by TFS time here. Are you running these tests as part of a team build and trying to get the time when this test started




Re: Visual Studio Team System - Testing Accessing StartTime of Currently Running Load Test

dmadrian

When you are watching a load test that's running in Visual Studio, the tab for that item has a time at which the test started. This same time appears on each previously run load test that can be selected from Test Runs window. It seems like the time the test is started is being captured and stored as part of the load test.

Because I want my log files to reflect the time the test started, for the data they contain, I'm interested in knowing whether I can access this (date/)time property as the test is running to name the log files.

David Madrian





Re: Visual Studio Team System - Testing Accessing StartTime of Currently Running Load Test

Michael Taute - MSFT

dmadrian,

I'm sorry, there is currently no way to tell what the file name for the loadtest log will be at runtime.

If you're running locally, one way around this might be to look in the run log folder for the newest file in that folder and try to base your naming scheme off of that file, since it's created when the run is started. If you're running remotely, there isn't a whole lot you can do here.

In the future if you have web and load testing questions, please consider posting to the web and load testing form directly for the fastest response. You can find it here: http://forums.microsoft.com/MSDN/ShowForum.aspx ForumID=1408&SiteID=1