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 have 5 save buttons in 5 tabs . The tabs are placed one after the other. My object repository have these added as 5 save buttons with name sav1, save 2, save 3 , save 4, save 5 .all are getting highlighted from OR but they are not getting clicked. After spying each button all the properties are same except First button Index 0 html id:=btnSaveTab1 outerhtml:=", Second button "html id:=btnSave "outerhtml:=", Third button "html id:=", outerhtml:=",
What are the views available in qtp?
can u explain the keyword driven framework with an example clearly how to create all the files and how to attach to main test.
What are the benefits of quick test pro(qtp)?
Which HTML specification will be adhered to? How strictly? What variations will be allowed for targeted browsers?
How will you compare keyword and expert view?
If I am scripting Web-based Surveys using QTP that open up differently but at the exact same point require a username and password can I automate that username and password for all the surveys some how using QTP?
Hi I am new to QTP. can u please answer to my qus... suppose 3 excel sheets are there * we are trying to check for login credentials for a page. userid from excel1 , password is from excel2 whether the page is opened or not that checkpoint is result is should be stored in excel 3.... this qus i have faced in IBM technical round... please tell script for above query ... please please
In qtp, explain what is crypt object
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
Mention what are the different types of recording modes in qtp? Which will be used when?
What is checkpoints for qtp?
what is the diff b/w assistive and mandatary rules of object repository in QTP???
What is the difference in testing a client-server application and a web application?
hi all here i have tab named "Workbench" By clicking on "workbench" tab.it displays 4 tabs like below workbench common cargo commercial charter "common" tab have 10tabs inside,"cargo" tab also haveing 15 tabs inside and remaining two tabs also having few tabs inside. when clicked on "common" tab.it displaying the script like tab("workbench").select"common" if i clicked on "cargo".it displaying the script like tab"workbench_2").select"cargo" if i clicked on "commercial".it displaying the script like tab"workbench_3").select"commercial" if i clicked on "charter".it displaying the script like tab"workbench_4").select"charter" I have used a "FOR LOOP" for common,commercial,cargo,charter tabs.it was stopped at second tab SO, CAN I RECOGNIZE "WORKBENCH_2,_3,_4" AS A SINGLE VARIABLE if not, can anyone plese help me to solve this