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

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

1 Answer 35 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
DTE Energy Trading
Top achievements
Rank 1
DTE Energy Trading asked on 01 Jun 2017, 05:37 PM

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?

 

Thanks.

1 Answer, 1 is accepted

Sort by
0
Elena
Telerik team
answered on 05 Jun 2017, 02:11 PM
Hi,

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!

Regards,
Elena Tsvetkova
Progress Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
DTE Energy Trading
Top achievements
Rank 1
Answers by
Elena
Telerik team
Share this question
or