get the order no from the following orderdetails
orderstring="ORD13456PNR"
eg:13456

Answer Posted / qtp

use instrrev or InStr and get the index position using the
search string as PNR
after that bye using the mid function we can get the order
number

var pos=instr(order string,"PNR")

string1=mid(orderstring,3,pos)

msgbox (string1)

Is This Answer Correct ?    0 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Dis advantages of XML checkpoint ?

1746


How to suppress warnings from the test results page?

775


i am new QTP... please tell me automation frameworks , types & for whiich type of applications frameworks are used & how to generate script in keyword driven framework

1811


What is keyword view?

765


What are the types of environment variables in qtp?

760






Consider one application is open, clicking one menu will open another application in another browser. QTP does not catch the URL of the second browser(second application). can we capture it ?

1674


What is an optional step in qtp ?

823


How do you handle multiple banners(at the top the page, the banner is scrolling) in a web page(Dont take the name property(regular expression))

1852


What is expert view and keyword view?

821


what is the difference between the modular framework and datadriven frame work

2106


This is Karthic and my mail id is karthic.venkitapathi@gmail.com, please give me an idea to crack qtp 10

1697


Write the script to delete the mail which is at 9th,13th and 18th place in INBOX of Gmail ?

1865


What is test object model in quicktest professional (qtp)?

733


can any body clearly explain about keyword driven framework .give me the explanation for files what ever you use in this frame work?

1871


How would you export a script from one pc to another in qtp?

850