Write the duration of specific step into log

2 posts, 1 answers
  1. Alex
    Alex avatar
    5 posts
    Member since:
    Jun 2015

    Posted 04 Aug 2015 Link to this post

    Hi,

    Is it possible to write duration of specific test step into log file?

    I know that it is possible to create test-as-step for this test and then override OnAfterTestCompleted() with writing the whole TestResult duration into the log file (such as is written here), but is this possible to do such way only for a step, not the whole test?

     For example, i have a test step that executes cmd and copies two files to specific directories on a remote server and i would like to log it duration.

     Thanks in advance.

  2. Answer
    Boyan Boev
    Admin
    Boyan Boev avatar
    1040 posts

    Posted 07 Aug 2015 Link to this post

    Hi Alexander,

    Thank you for contacting us.

    No unfortunately we do not have such property for a single step.

    As a possible workaround is to start a stopwatch before the step and stop it after the step.

    Let me know if that works for you.

    Regards,
    Boyan Boev
    Telerik
     
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
     
Back to Top