Data bound validation

12 posts, 0 answers
  1. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 18 Oct 2013 Link to this post

    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
  2. Marin
    Admin
    Marin avatar
    1043 posts

    Posted 22 Oct 2013 Link to this post

    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.

  3. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 22 Oct 2013 Link to this post

    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.
  4. Daniel
    Daniel avatar
    13 posts
    Member since:
    Aug 2013

    Posted 23 Oct 2013 Link to this post

    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.
  5. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 24 Oct 2013 Link to this post

    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!
  6. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 24 Oct 2013 Link to this post

    Thanks,

    but what we are looking for as Daniel has said is support for sting builder in data driven tests
  7. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 28 Oct 2013 Link to this post

    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!
  8. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 28 Oct 2013 Link to this post

    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
  9. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 29 Oct 2013 Link to this post

    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!
  10. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 29 Oct 2013 Link to this post

    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.
  11. Boyan Boev
    Admin
    Boyan Boev avatar
    1039 posts

    Posted 31 Oct 2013 Link to this post

    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!
  12. Andrew
    Andrew avatar
    125 posts
    Member since:
    Sep 2008

    Posted 31 Oct 2013 Link to this post

    thanks
Back to Top
  Cast Your Vote at DevPro Connections! Cast Your Vote at  Win IT Pro Connections!