ChrisSawicki

Hi,

I need to determine which methods attributed with "TestMethod" will be run for a load test. I'd prefer some sort of API for doing this, but cracking open files for reflection or XML parsing will work, too.

My scenario is this...I start my load test (using VS2005 TE for Software Testers) which executes test methods in different namespaces but with the same method names. I want to be able to determine which methods are going to be called by my load test from a plug-in that I have created. I need to know the assembly the method is located in as well as its full type name before the first test is executed. Is there any way to accomplish this BTW, the solution doesn't have to be pretty...I'm open to hacks.

Thanks,
Chris


Re: Visual Studio Team System - Web and Load Testing Determining which Test Methods will run for a load test from a plug-in

Bill Barnett - MSFT

In the Load test plug-ins TestSelected event handler, the TestSelectedEventArgs has the ScenarioName and the TestName (but it is the simple name). The only thing I can think of that you could do is use a Dictionary in the load test plug-in that hard codes a mapping from the combination of ScenarioName and TestName to the full assembly name.





Re: Visual Studio Team System - Web and Load Testing Determining which Test Methods will run for a load test from a plug-in

ChrisSawicki

Thanks, Bill!

Another possible option that I found (here and here) is computing the GUID value for each type + method name that is part of the load test project and using this as a lookup for what actual methods are going to be called.

-Chris