Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

A dialog is diplays " Transaction 254689 has been
successfully completed" How to get the transaction ID from
the message ?

Answer Posted / sandeep guttikonda

This task can be done by using the QTP methods:
we are having
1) GetVisibleText
2) GetROProperty
3) GetTOProperty

As it is dialog it will appears during runtime so by using
GetROProperty we can capture the text.

Example:
Captured_Text = Window("window Name").Dialog("Dialog
Name").Object("Object Name").GetROProperty("Property Name")

Hence the entire line will be stored in Captured_Text

Now we need to retrieve the transaction ID:
For this we have Split function in VBScript

Syntax: Split(Expression, Delimeter)

Example: Transaction_ID = Split(Captured_Text, " ")
Here in this case the transaction ID, 254689 will be in
Transaction_ID(1).

Please let me know if you need further info.

Thank.

Regards,
Sandeep Guttikonda.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is regular expression?

1045


What are the check points can be inserted without recording?

1057


hi nani my doubt is how does qtp process metrix related to software process.

1973


How to use conditional loops in qtp ?

1038


Are Shared ORs read-only?

1053


How will you handle java tree in qtp?

1096


How many types of recording modes are there?

1027


how to do the batch testing in test director using manual testing procedure?

2360


If u r using library files (Instead of Check Points) , How do u do bitmap check ?

2023


Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji

1815


What is qtp window?

985


What is the virtual object?

1118


What are the different types of checkpoints?

1037


What is the difference in the global and action sheet in qtp?

1007


How to analyzing test results using quicktest professional (qtp)?

1026