I am setting up performance tests and am testing the performance of an Upload function. I want to now test performance when 5 users click the upload button at the same time. I don't know how to implement a way to do this. Below is the test I have setup for one user.
[Test]
[Category("PerfSingleUser")]
public void PerfSingleUserUploadLargeDataSet()
{
driver.GoToHomePage();
DateTime startDateTime = DateTime.Now;
var sw = Stopwatch.StartNew();
UploadFiles();
sw.Stop();
//Logging of performance results
var testDesc = string.Format("Time for ALEX to upload a large data set (AC2Q15Files) in a {0} browser", Browser.GetType());
StoreResultsInCSV(startDateTime, testDesc, elapsed);
Assert.IsTrue(sw.Elapsed < TimeSpan.FromSeconds(20), "Uploading large data set, AC2Q15Files, in a {0} browser exceeded" +
"20 seconds", browser.GetType());
}