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 fragmentation and paging?

1585


Which recording modes need more memory?

571


Explain the Different types of QTP test assets and their extensions?

599


1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP

1536


What is the difference between qtp and selenium?

539






what is the advantages and disadvantages of using functions instead of re usable actions

1418


Hi All, How to get repeated word in string . Thanks Balaji

924


What is an expert view and keyword view?

562


In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?

1498


how to test Web application using QTP software

1328


How to suppress warnings from the test results page?

596


Can anyone share/send me QTP 8.2 Crack as I had it before but now it's virus affected. Pls send me on Sawale.vijay@gmail.com Thanks, ~Vijay

2655


We stored into the objects OR and then write the scripting

1536


What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?

690


how can i call function (which has link with excell sheet at a remote location) within another function

1569