Dienstag, 16. Februar 2010 06:13Hello,
In my test case, I want to calculate the time taken to execute each step. For Ex: After click on the login button, how much time it takes to get the application up and runnning. Or after click on the Generate button, how much time is taken to generate a report.
Can this be done using Coded UI Test. Please suggest.
Dienstag, 16. Februar 2010 12:16You can use a StopWatch and check how much time WaitForControlExist() takes.
Stopwatch t = Stopwatch.StartNew();
// Wait for control exist on some item on the report.
t.ElapsedMillseconds -> Should give you the time taken for your control to come. There might be a slight margin of error though.
Please mark the post as answered if this answers your question. ThejK