Results 1 to 4 of 4

Thread: Regular Expression

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Answers
    6

    Regular Expression

    hello,

    Can anyone tell me how to use regular expressions in qtp.and wht does tht mean if provided with example...it would be great help.


  2. #2
    Junior Member
    Join Date
    Jun 2007
    Answers
    1

    Re: Regular Expression

    Thank You So Much


  3. #3
    Junior Member
    Join Date
    Jan 2007
    Answers
    3

    Re: Regular Expression

    Quote Originally Posted by gouthami123 View Post
    hello,

    Can anyone tell me how to use regular expressions in qtp.and wht does tht mean if provided with example...it would be great help.
    sorry ya... we r also searching.. once v r getting inform u.....


  4. #4
    Contributing Member
    Join Date
    Mar 2007
    Answers
    35

    Re: Regular Expression

    Regular expression are used when the part of the particular property of an object which was used most oftenly changes dynamically ..

    Say suppose for an example...take google application..

    Iteration1:
    Enter QTP in the search edit box
    Click on the Search button

    Ieration2:
    Enter Winrunner in the search edit box
    Click on the search button

    in the above scenario Search edit box(QTP and Winrunner) can be parameterized.When we hit the search button, the browser name will be "Google - QTP" for Iterantion1 and "Google - Winrunner" for iteration2.
    So "Google" is the common word for the browser name property.Here we can use regular expression to make the script reusable.

    v_SearchText = DataTable("SerachText","Action1")
    Browser("name:=Google").Page("title:=Google").WebEdit("name:=q").Set v_SearchText
    Browser("name:=Google").Page("title:=Google").WebButton("name:=Search").Click
    Browser("name:=Google.*").Page("title:=Google.*").WebEdit("name:=q","index:=0").Set "Mercury"


    Hope u got some idea now


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact