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.
You can use a StopWatch and check how much time WaitForControlExist() takes. Pseudo code:
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
Microsoft führt eine Onlineumfrage durch, um Ihre Meinung zur Msdn Website zu erfahren. Wenn Sie sich zur Teilnahme entscheiden, wird Ihnen die Onlineumfrage angezeigt, sobald Sie die Msdn Website verlassen.