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

how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?

2023


Can any one brief some detail on how the shared and action object repository utilized/implemented in a real time project. I already know how to make shared object repositor by saving OR as .tsr extension..I wanted the actual concept of implementation...couple of live examples will be highly appreciated. Thanks

1992


What are the key elements available in test result window?

720


Can we record an application running on a remote machine using qtp?

807


Explain types of descriptive programming?

700






In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer

2028


In a flight window we have to enter the name and meal request for every passenger.In that window if we give Total passengers=1 then the Psngr1 name field and psngr1 meal request field will reflects.if we give Total passengers=2 then Psngr1 name field and psngr1 meal request field,Psngr2 name field and psngr2 meal request field and so on. how we can handle this scenerio thru Descriptive programming?

1543


What is the difference between run time object and test object?

666


Explain the concept of object repository and how quicktest professional recognises objects?

642


Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.

724


What the differences are and best practical application of Object Repository?

695


Will down time for server and content maintenance/upgrades be allowed? how much?

711


What are the different attributes used with regular expression?

641


how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0

1573


any body can you help me what is the script to automate an comand promt

2083