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

using Regex in Test studio for validating the content value

1 Answer 187 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Deepeka
Top achievements
Rank 1
Deepeka asked on 12 Sep 2012, 02:18 PM
Hi ,

I am new for Telerik and was trying with regex but was not clear enough.
Had tried from Elements menu ->Build verification Tab. 


Please give me example of regex as not able to provide verification for this -
as per my application i am trying to add validation where i want to check the "Name" column content Value "Test Group Type1",
also check screenshot attach for the same.

or please let me know other than regex what we can use in test studio for such kind of verification.









1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 17 Sep 2012, 03:16 PM
Hi Deepeka,

Thank you for evaluating Test Studio. According to your explanation and looking the screenshot, you are trying to verify the test content of a Grid Cell. However you didn't specify what type of Grid or Table you are testing. Is it a Silverlight or an Html? Is it a generic control or a RadControl? Please give us as much info as possible.

Instead of using regex (which are always overly complex) you can use our testing framework capabilities to accomplish your scenario. See this video for an example with similar verification against this HTML5 DataGrid demo.

If you continue to have difficulty, please provide us with a direct access to your application or point us to similar publicly accessible application and we'll be glad to assist you with the desired verification. If you feel that information is sensitive, you can re-open your support ticket 604868 and provide the info there. Support tickets are confidential unlike forum threads.

If you nevertheless want to use a Regular Expressions, there's plenty of info online. Here is an example. You can use them with Test Studio using the same syntax.

Regards,
Plamen
the Telerik team
Are you enjoying Test Studio? We’d appreciate your vote in the ATI automation awards.
Vote now
Tags
General Discussions
Asked by
Deepeka
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or