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 regular expression?
What are the check points can be inserted without recording?
hi nani my doubt is how does qtp process metrix related to software process.
How to use conditional loops in qtp ?
Are Shared ORs read-only?
How will you handle java tree in qtp?
How many types of recording modes are there?
how to do the batch testing in test director using manual testing procedure?
If u r using library files (Instead of Check Points) , How do u do bitmap check ?
Hi All , How can we decicde for pariticular frame(DataDriven or Keword Driven)in Project? Thanks Balaji
What is qtp window?
What is the virtual object?
What are the different types of checkpoints?
What is the difference in the global and action sheet in qtp?
How to analyzing test results using quicktest professional (qtp)?