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
What is fragmentation and paging?
Which recording modes need more memory?
Explain the Different types of QTP test assets and their extensions?
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
What is the difference between qtp and selenium?
what is the advantages and disadvantages of using functions instead of re usable actions
Hi All, How to get repeated word in string . Thanks Balaji
What is an expert view and keyword view?
In Test Directory, What are the contents in test case designing? if you prepare in excel sheet how u use thrw Test Directory?
how to test Web application using QTP software
How to suppress warnings from the test results page?
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
We stored into the objects OR and then write the scripting
What is the syntax to call one script from another? And what can be the syntax to call one “action” in another?
how can i call function (which has link with excell sheet at a remote location) within another function