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

Data bound validation

11 Answers 76 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Andrew
Top achievements
Rank 1
Veteran
Iron
Andrew asked on 18 Oct 2013, 06:39 PM
I have a data bound verify statement in my test I would be nice to be able to build (string format) the expected string value.

ex: "Welcome {0}" there {0} would be the data  value

11 Answers, 1 is accepted

Sort by
0
Marin
Telerik team
answered on 22 Oct 2013, 08:22 AM
Hi,

 Can you provide some more details on your exact scenario, which Telerik product are you using and what exactly you would like to achieve.

Regards,
Marin
Telerik

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 22 Oct 2013, 01:05 PM
sorry this is for test studio. Using the vs plugin.

I have a data driven web test where I wanted to validate the exact contents of a label. The problem is that I cannot verify the exact text as the value changes with each user.

So I would like to build a string (string format) to build the value to compare with as below.
0
Daniel
Top achievements
Rank 2
answered on 23 Oct 2013, 11:58 AM
I think (and if I am wrong, I apologize) Andrew is referring to the contents of this post: http://www.telerik.com/automated-testing-tools/community/forums/test-studio-express/general-discussions/data-driven-validation.aspx

Support for string builder in data driven tests without having to use coded steps.
0
Boyan Boev
Telerik team
answered on 24 Oct 2013, 10:52 AM
Hi,

@Daniel, thank you for your input, we really appreciate it. 

@Andrew, did the referred thread help you. If you need additional assistance please do not hesitate to contact us again.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 24 Oct 2013, 01:09 PM
Thanks,

but what we are looking for as Daniel has said is support for sting builder in data driven tests
0
Boyan Boev
Telerik team
answered on 28 Oct 2013, 01:09 PM
Hello Andrew,

What do you mean by supporting string builder? You can build a string outside of the verification and then use it for the verification. 

In order to assist you best please give us some more detailed information, what exactly do you want to achieve.

Hope to hear from you soon.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 28 Oct 2013, 01:18 PM
sure as a coded step.
but it would be nice to just  set the expected string value as so:

ex: "Welcome {0}"-  there {0} would be the data  value


just like you can do with the .net telerik controls
0
Boyan Boev
Telerik team
answered on 29 Oct 2013, 08:58 AM
Hello Andrew,

You can data bound a verification without a coded step (see the attached screen shot). Please also read this article

However to build strings, use a string builder you have to use coded steps.

Thank you for your understanding.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 29 Oct 2013, 01:20 PM
I am well aware, that's why Daniel and I where saying it would be a nice feature to be able to do this without a coded step.

As you can do things like this in telerik .net controls.
0
Boyan Boev
Telerik team
answered on 31 Oct 2013, 11:51 AM
Hi Andrew,

We will definitely consider its implementation for future versions of the product.

If you need additional help please do not hesitate to contact us.

Regards,
Boyan Boev
Telerik
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
0
Andrew
Top achievements
Rank 1
Veteran
Iron
answered on 31 Oct 2013, 12:40 PM
thanks
Tags
General Discussions
Asked by
Andrew
Top achievements
Rank 1
Veteran
Iron
Answers by
Marin
Telerik team
Andrew
Top achievements
Rank 1
Veteran
Iron
Daniel
Top achievements
Rank 2
Boyan Boev
Telerik team
Share this question
or