Timing and Metrics Gathering

2 posts, 0 answers
  1. Ken White
    Ken White avatar
    2 posts
    Member since:
    Jul 2009

    Posted 26 May 2010 Link to this post

    Is there any native way to gather timing and metrics within TWTS?

    The scenario I'm thinking of is something like:

    1. Start Timer
    2. Do some steps (click login, type my password, hit OK, etc. Whatever.)
    3. Stop Timer
    4. Calculate the time (in miliseconds?)
    5. Write it to the log.

    The ultimate goal is to run the script before and after some performance improvements in my application and have a consistent, reliable way to measure those improvements in the user experience.

    Thanks,
    Ken White, ASI
  2. Missing user
    Missing user avatar

    Posted 26 May 2010 Link to this post

    Hello Ken,

    Thanks for the post and question. WebUI Test Studio no longer officially supports Visual Studio load or web tests, so there is not really any built in metrics we offer.

    So you could either create your own load or web tests in VS, or add a custom timer code solution in a code behind file for your WebUI tests. To write to the log, all you would need in code is:

    Log.WriteLine("My Test Info");

    and the string will be writted to the Log/.TRX file for the test run.

    Sincerely,
    Nelson
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Back to Top