Using a DataBindVar to Create a New DataBindVar that is Only Part of It

2 posts, 0 answers
  1. DTE Energy Trading
    DTE Energy Trading avatar
    3 posts
    Member since:
    Oct 2016

    Posted 01 Jun 2017 Link to this post

    Is it possible to shorten an extracted DataBindVariable so that I can use the shortened variable to verify another step?


    For example, if I extract "Example :::: Test" from a page to a DataBindVariable, am I able to create a new DataBindVariable that is shortened to only "Example" that I can use to verify another part of the page in a later step?



  2. Elena
    Elena avatar
    1216 posts

    Posted 05 Jun 2017 Link to this post


    Thank you for your interest in Progress Test Studio. 

    The described scenario could be accomplished adding a coded step with few lines of code to transform the extracted value and assign it to the new variable. 

    Please note that the initial value could be extracted either with extraction step or in code and then used in the test. To get the sub-string as per your requirements is a subject of general programming approach which is out of my authority. However I searched the web and found a forum post that might be helpful for you. 

    I hope the above details will be useful to find out the best solution for your requirements. Thank you for your cooperation!

    Elena Tsvetkova
    Progress Telerik
    The New Release of Telerik Test Studio Is Here! Download, install,
    and send us your feedback!
Back to Top