ramana reddy

what are the tests we can add into load test ................ as of my knowledge we can add only unit and web test .........is it possible to add any other tests we can add into load test except unit and web tests.


Re: Visual Studio Team System - Testing is it possible to add c# project into load test in vsts.

slumley MSFT

Those are the typical types of test you would add. For web test they can also be c# coded web tests. What type of test do you want to add




Re: Visual Studio Team System - Testing is it possible to add c# project into load test in vsts.

ramana reddy

we created some scritps in c# with extension of .cs,is it possible to add those scripts into load test i tried to add that scritps into load test but it is not displaying any tests in test mix when i tried to add that perticular scripts.

otherwise we can convert that perticular scripts into unit test and we will add to load test ....... is it works fine






Re: Visual Studio Team System - Testing is it possible to add c# project into load test in vsts.

Michael Koltachev - MSFT

Ramana, you can convert your .cs "scripts" to Unit Tests add Unit Test(s) to a Load Test. To do that, create a new class with and a test method with attrbiute, like this:
[TestClass]
public class MyScriptTests
{
[TestMethod]
public void Script1()
{
// ... Your script code here ...
}
}
If you need some initialization before the test runs, you can use [TestInitialize] or [AssemblyInitialize], also you can you the TestContext property of test class to keep some context data in between different unit tests. For more about Unit Tests, take a look here.

Thanks,
Michael