This is a migrated thread and some comments may be shown as answers.

Write the duration of specific step into log

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Alex
Top achievements
Rank 1
Alex asked on 04 Aug 2015, 01:09 PM

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.

1 Answer, 1 is accepted

Sort by
0
Accepted
Boyan Boev
Telerik team
answered on 07 Aug 2015, 08:02 AM
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
 
Tags
General Discussions
Asked by
Alex
Top achievements
Rank 1
Answers by
Boyan Boev
Telerik team
Share this question
or