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
I want to do Certification course in QTP. For this I request you to suggest the best Tutorial in PDF format. Hence, if possible, kinldy mail PDF file to my mail-ID: sushmapokhriyal79@gmail.com
Explain advantages and disadvantages of ddf?
Can any one tell me about "Mapping Repository Parameter Values" and why we use it....??How to use it???Please, tell the preconditions also...........???? Thanks in Advance
I want to open a Notepad window without recording a test and I do not want to use System utility Run command as well. How do I do this?
What is qtpro? What is quick test pro?
Without using gui map editor we can recognize the application in winrunner ?
Is there any relation between Keyword Driven Framework and Recording modes provided in QTP( whether Recording modes are applied on keyword driven framework or not?)
How do Parameterization and Data-Driving relate to each other in QTP?
What is keyword view?
Problem with XML checkpoint in QTP ?
What is quick test pro?
Limitations in QTP?
if our qtp vb Script may be Currepted then What we want do?
How to open a new test using quicktest professional?
could any help me please, how to work on visual foxpro application using UFT