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

How to fetch dynamic data during runtime ?

4 Answers 97 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Abdul Khader
Top achievements
Rank 1
Abdul Khader asked on 09 Feb 2016, 04:11 PM

Hello All,

 

I have an application on which a random text will be generated dynamically during run time.

Note : This text changes every time I navigate to this page. Even on refreshing page, I get new new text.

 

My concern is :

(1) How do I extract this dynamic text from application ?

(2) After extracting it, how can I split this text based on delimiter ? (There is a delimiter " : " which separates the text into two halves).

(3) How can I get these two halves and save it an excel file ?

 

Thanks

Abdul

4 Answers, 1 is accepted

Sort by
0
Nikolay Petrov
Telerik team
answered on 12 Feb 2016, 03:23 PM
Hello Abdul,

To extract the random text from your application first you need to be sure that Test Studio finds the element containing that text by "id" or other non randomly changed element's attribute.

Next step is to create an extraction step in your test to get the randomly generated text.

After that - add a coded step, where you can place C# code that process the sting you have. For example if you want to split strings in C# you may refer to this article. For saving data in Excel format you may search in google for how to and use it also in a coded step.

Let me know if that helps.

Regards,
Nikolay Petrov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 17 Feb 2016, 10:16 AM

Thanks for the quick update Nikolay.

I have one more question for you. In same application, we generate PDF reports.

So using Telerik, Is it possible to read/edit PDFs ?

If yes in any case, can you guide me how to approach for automating PDFs using Telerik

 

Thanks

Abdul

 

0
Nikolay Petrov
Telerik team
answered on 17 Feb 2016, 12:58 PM
Hi Abdul,

Test Studio does not have the functionality to read or interact with PDF file's content. 

If you need further assistance please let us know.

Regards,
Nikolay Petrov
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Abdul Khader
Top achievements
Rank 1
answered on 23 Feb 2016, 09:30 AM

Hi Nikolay,

 

Thanks for the quick reply.

Regards

Abdul

Tags
General Discussions
Asked by
Abdul Khader
Top achievements
Rank 1
Answers by
Nikolay Petrov
Telerik team
Abdul Khader
Top achievements
Rank 1
Share this question
or