Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Regular Expression
#1
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi,

can anyone please tell me the regular expression for the code below

Code:
DelphiWindow("Shell").DelphiTreeView("BISTree").Select "BIS Connections;test;new [38I0]", micRightBtn

the value [38I0] is dynamic, i want a regular expression for the same.

Note: This is not there in the Object Repository

I know that it could be done using descriptive programming. But, since i am new to QTP, i dont know how to proceed.

appreciate your help.

thanks

sudha
Reply
#2
Solved: 11 Years, 3 Months, 3 Weeks ago
You can parametrize this value. If the value is getting generated at run time. you can always add it dynamically. For ex:

Code:
var= [3810]

"BIS Connections;test;new " & var
Want to fast track your QTP/UFT Learning? Join our UFT Training Course
Reply
#3
Solved: 11 Years, 3 Months, 3 Weeks ago
You can use

Code:
DelphiWindow("Shell").DelphiTreeView("BISTree").Select "BIS Connections;test;new [\d*]", micRightBtn

If you have only one oject of that type there
Reply
#4
Solved: 11 Years, 3 Months, 3 Weeks ago
Hi you can use below one

^\d{4}$

This will check for only 4 digits.

Thanks
VENKATA
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Need Any digit in xpath path using Regular expression Priyam 1 3,484 10-05-2016, 11:05 AM
Last Post: Ankur
  Regular expression to read two words in lowercase, uppercase and with and without spa sarahq49 1 3,351 04-09-2015, 01:56 AM
Last Post: sarahq49
  Regular expression and script optimisation Padmavathy 1 3,817 03-30-2015, 11:46 AM
Last Post: supputuri
  Regular expression in descriptive programming testernc 1 16,565 12-08-2014, 06:38 PM
Last Post: anshika.agarwal
  need a regular expression. anu05446 0 3,114 11-26-2014, 03:00 PM
Last Post: anu05446

Forum Jump:


Users browsing this thread: 1 Guest(s)