How to fetch dynamic data during runtime ?

5 posts, 0 answers
  1. Abdul Khader
    Abdul Khader avatar
    22 posts
    Member since:
    Feb 2016

    Posted 09 Feb Link to this post

    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

  2. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    81 posts

    Posted 12 Feb Link to this post

    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!
  3. Abdul Khader
    Abdul Khader avatar
    22 posts
    Member since:
    Feb 2016

    Posted 17 Feb in reply to Nikolay Petrov Link to this post

    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

     

  4. Nikolay Petrov
    Admin
    Nikolay Petrov avatar
    81 posts

    Posted 17 Feb Link to this post

    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!
  5. Abdul Khader
    Abdul Khader avatar
    22 posts
    Member since:
    Feb 2016

    Posted 23 Feb in reply to Nikolay Petrov Link to this post

    Hi Nikolay,

     

    Thanks for the quick reply.

    Regards

    Abdul

Back to Top