Active TopicsActive Topics  Display List of Forum MembersMemberlist  CalendarCalendar  Search The ForumSearch  HelpHelp
  RegisterRegister  LoginLogin


 One Stop Testing ForumTesting Tools @ OneStopTestingRational Robot @ OneStopTesting

Message Icon Topic: Regular Expressions in RFT

Post Reply Post New Topic
Author Message
AnithaRaman
Newbie
Newbie


Joined: 03Mar2009
Online Status: Offline
Posts: 1
Quote AnithaRaman Replybullet Topic: Regular Expressions in RFT
    Posted: 03Mar2009 at 5:15am

In RFT, regular expressions are helpful in validating dynamic data.

Suppose in your application you have a text that shows the current calendar date like this “Today's date - 03-03-2009”. Your test case is to validate that this information appears in the welcome page of your application each time you login. The current date is dynamic and changes each day. So the verification point as is cannot be used as it would fail when you playback the script the next day. In this scenario you can apply a data verification point to this text object on the application. Then convert the value into regular expression. So the regular expression would be something similar to this

“(0[1-9]|[12][0-9]|3[01])[- /.](0[1-9]|1[012])[- /.](19|20)\d\d”.  Now when you playback the script the next day the verification point would continue to pass as it is been customized to accept dynamic or changing data.

This is an example for the usage of Regular expressions. Regular expressions can be used in many such scenarios.




Post Resume: Click here to Upload your Resume & Apply for Jobs

IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.188 seconds.
Vyom is an ISO 9001:2000 Certified Organization

© Vyom Technosoft Pvt. Ltd. All Rights Reserved.

Privacy Policy | Terms and Conditions
Job Interview Questions | Placement Papers | Free SMS | Freshers Jobs | MBA Forum | Learn SAP | Web Hosting