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
how to fetch the values from grid? & qtp recogniges that grid as a webelement? what u do?
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
What are the key elements available in test result window?
Can we record an application running on a remote machine using qtp?
Explain types of descriptive programming?
In application which areas to be automated and what kind of situation will be take? using QTP? Plz give me the clear answer
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?
What is the difference between run time object and test object?
Explain the concept of object repository and how quicktest professional recognises objects?
Can UFT be connected to Quality Center? If ‘Yes’ brief the process or steps.
What the differences are and best practical application of Object Repository?
Will down time for server and content maintenance/upgrades be allowed? how much?
What are the different attributes used with regular expression?
how we connect 1. qtp9.2 to the quality center9.0? 2. Load runner8.0 to the quality center9.0
any body can you help me what is the script to automate an comand promt