You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since the task doesn't specify a particular tool for load testing, I will use Visual Studio's load testing framework to write a C# code.
Save the following script as LoadTest.cs:
usingMicrosoft.VisualStudio.TestTools.LoadTesting;usingSystem;usingSystem.Threading;namespaceLoadTest{publicclassLoadTestPlugin:ILoadTestPlugin{privateLoadTest_loadTest;publicvoidInitialize(LoadTestloadTest){_loadTest=loadTest;_loadTest.TestStarting+=LoadTestStartingHandler;_loadTest.TestFinished+=LoadTestFinishedHandler;}privatevoidLoadTestStartingHandler(objectsender,EventArgse){Console.WriteLine("Load test starting.");}privatevoidLoadTestFinishedHandler(objectsender,EventArgse){Console.WriteLine("Load test finished.");}}}
Now wrap this code in a bash script to create the files:
Write the C# code to perform load testing on the application.
The text was updated successfully, but these errors were encountered: