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

Extract the text content from the "Comment Step"

1 Answer 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
KESHAB
Top achievements
Rank 2
KESHAB asked on 13 Jan 2014, 09:15 AM
I want to extract the text content from the comment step and want to write it in excel file. How can I do that?

1 Answer, 1 is accepted

Sort by
0
Boyan Boev
Telerik team
answered on 13 Jan 2014, 01:42 PM
Hi Keshab,

Thank you for contacting us.

You can achieve this in a coded step and you can only extract the whole description of the step:

this.ExecutionContext.Test.Steps[4].Description.ToString();

Note that you need to add Telerik.TestStudio.Interfaces and System.Runtime.Serialization dlls.

Here's one link of many from a Google search for writing in Excel.

Hope this helps.


Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
KESHAB
Top achievements
Rank 2
Answers by
Boyan Boev
Telerik team
Share this question
or