|
|
|
|
Regular expression for SAP
|
|
04-08-2008, 08:51 PM
(This post was last modified: 04-08-2008 10:12 PM by lakshjai.)
Post: #1
|
|||
|
|||
|
Regular expression for SAP
[/color]hi Ankur, Im usinf SAP application and Im trying to use the regular expression for the below highlighted one: SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#1",strInsuranceName I tried using like : SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "RegExp: =Medical;# \d)*", strInsuranceName but it dint work, pls help me Thanks laksh |
|||
|
04-09-2008, 11:21 AM
Post: #2
|
|||
|
|||
|
RE: Regular expression for SAP
Why do u want to make this value a reg exp?...
probably you need to parameterize this. QTP Articles | QTP Training | QTP Jobs |
|||
|
04-09-2008, 07:59 PM
Post: #3
|
|||
|
|||
|
RE: Regular expression for SAP
Because the value Medical;#2 will change during run time, its not possible for us to know that value , the actual codewould be like :
Select Case strInsuranceName Case "Blue Cross/Blue Shield" SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#2",strInsuranceName Case "Aetna" SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#1",strInsuranceName Like this there are many other insurance types, depending upon the countries these insurances varies and it will be in different path, where path is nothing but Medical;#1 ClickLink Method syntax is: object.ClickLink Path, Item pls lemme know , if you need any further information. Thanks in advance |
|||
|
04-10-2008, 09:10 AM
Post: #4
|
|||
|
|||
|
RE: Regular expression for SAP
ok ...go to object repository ...change Medical;#1 to Medical;#[0-9] and tick the regular expression check box
QTP Articles | QTP Training | QTP Jobs |
|||
|
04-10-2008, 06:38 PM
(This post was last modified: 04-10-2008 06:40 PM by lakshjai.)
Post: #5
|
|||
|
|||
|
RE: Regular expression for SAP
Ankur,
Sorry for the late reply.. since I live in EST time zone , Im not able to reply u on time... Actually I dont see Medical;#1 in the OR, its just have TableTreeControl objects, andf I tried capturing the Medical;#1 object, but its capturing as TableTreeControl only.... I am wondering whether Medical;#1 is an object .... pls clarify my doubt. Thanks in advance laksh |
|||
|
04-10-2008, 06:47 PM
Post: #6
|
|||
|
|||
|
RE: Regular expression for SAP
no problem laksh...
can u attach concerned screenshot(s) for OR etc QTP Articles | QTP Training | QTP Jobs |
|||
|
04-10-2008, 06:52 PM
Post: #7
|
|||
|
|||
|
RE: Regular expression for SAP
Here is OR screenshot. lemme know , if u need any further info.
Thanks |
|||
|
04-10-2008, 07:25 PM
Post: #8
|
|||
|
|||
|
RE: Regular expression for SAP
In that case simply changing
Code: SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#1",strInsuranceNameCode: SAPGuiSession("Session").SAPGuiWindow("Enrollment").SAPGuiTree("TableTreeControl").ClickLink "Medical;#[0-9]",strInsuranceNameshould solve the problem. You have to make sure that there is only one unique link on a given page which satisfies this reg expression. Let us know how it goes. QTP Articles | QTP Training | QTP Jobs |
|||
|
04-10-2008, 07:38 PM
Post: #9
|
|||
|
|||
|
RE: Regular expression for SAP
Ankur,
I have tried this one also before but it dint work.. it is the unique one, in that page.... I have attached the screenshot of the error message |
|||
|
04-10-2008, 07:45 PM
Post: #10
|
|||
|
|||
|
RE: Regular expression for SAP
hmmmm....
well, turn on smart identification....record that piece of code again ...and then run your test...also check for mandatory and assistive properties and base and optional filter properties. let me know the result QTP Articles | QTP Training | QTP Jobs |
|||
|
« Next Oldest | Next Newest »
|
| Possibly Related Threads... | |||||
| Thread: | Author | Replies: | Views: | Last Post | |
| Regular expression for this string | falvi | 2 | 238 |
04-30-2012 11:14 AM Last Post: falvi |
|
| regular expression | rjkmr.aiht | 0 | 146 |
04-27-2012 11:37 AM Last Post: rjkmr.aiht |
|
| Regular Expression | samverma | 3 | 348 |
03-31-2012 01:21 AM Last Post: samverma |
|
| Square Bracket Issue - Regular Expression | kapsig431 | 2 | 281 |
03-29-2012 08:38 PM Last Post: kapsig431 |
|
| Regular Expression for time in 24 hour format with out colon | Pallavi | 3 | 431 |
03-13-2012 11:29 AM Last Post: sshukla12 |
|
User(s) browsing this thread: 1 Guest(s)
|
|

Search
Member List
Calendar
Help




