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

How I can use Regular Express to verify result?

1 Answer 128 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 09 Nov 2010, 10:38 AM
Hi there,
     I am evaluating your WebUI QA studio product.
It seems very handy and my question is how I can use Regular Express to verify content.
I found there is some icon 'Build Verification' with Regular Express, but i couldn't get it work.

Any advise or sample?

Thanks in advance,

FRank

1 Answer, 1 is accepted

Sort by
0
Stoich
Telerik team
answered on 09 Nov 2010, 04:44 PM
Hello Frank,
 
   thank you for giving our product a try.
If you haven't done so already please check out the detailed step-by-step guide on WebUI Test Studio:
http://www.telerik.com/documents/automated-testing-tools/WebUITestStudioQAEditionStepByStep.pdf

Once you open the PDF file a simple search on "RegEx" will take you to the chapter on regular expression.

I can also tell you that WebUI Test Studio uses regular expressions the same way that they're used in the .Net Framework. What this means is that you can look at any .Net regex tutorials. Here is an example I found useful:
http://support.microsoft.com/kb/308252  

In this tutorial you can see an example:
Regex emailregex = new Regex("(?<user>[^@]+)@(?<host>.+)"); 
which is a regular expression obect used to describe an e-mail pattern. For instance:
johndoe@tempuri.org

If you wanted to verify an e-mail link using WebUI Test Studio you can use the same regular expression in your regex verification: (?<user>[^@]+)@(?<host>.+)

In the same way you can reuse and learn from all .Net regex examples and tutorials that you find on the net. 

I hope this answers your question, please don't hesitate to contact us again if you need more help.

All the best,
Stoich
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
General Discussions
Asked by
Frank
Top achievements
Rank 1
Answers by
Stoich
Telerik team
Share this question
or