A dialog is diplays " Transaction 254689 has been
successfully completed" How to get the transaction ID from
the message ?
Answer Posted / lakshmi
Capture the text into a variable by using GETROPROPERTY.
So now
Str="Transaction 254689 has been successfully completed"
Arr=Split(Str," ")
for i=0 to ubound(Arr)
if IsNumeric(Arr(i))=true then
Msgbox "Transaction ID is "& Arr(i)
End if
Next
| Is This Answer Correct ? | 8 Yes | 0 No |
Post New Answer View All Answers
How to associate function library at a run time?
how can i call function (which has link with excell sheet at a remote location) within another function
What is test object model in quicktest professional (qtp)?
If I give some thousand tests to execute in two days what do you do?
how do you parameterize search button from the website? the page is a single winobject and i have made a virtual object button of search button but search box can't be converted into a winedit and if we try to convert it into winedit the value we enter in a searchbox appears as numbers in the script so we arent able to parameterize.help!!!
How can I find out the cursor position through QTP suppose I am keep tabbing(Pressing the tab key continuously) and stoped at a position Now I want to find out where the cursor position is
What is method name to compare two XML files.
What are the major/ important methods, functions in QTP we use realtime testing
i have two questions for regular expression :- Q1. I have date pattern eg-29/11/2011 29-11-2011 29.11.2011 Que- if any separator is there between date,month and year pattern should match else it should not match eg- pattern should not match in case of 2911-2011 Q2. let say i have a string and there is a number in between of that string eg.-Amount 30002.234 successfully credited to your account . now i have to match this pattern in such a way that even if decimal is not there pattern should match ,how i will do this using regular expression
What is the syntax to call one action in another?
Brief the process of testing with UFT?
What is meant by a Check Point in UFT? Also, explain the applicable Check Points.
Have you faced any problems with object repository?
How did you resolve conflicts present in Object Repository?
What are metrics and matrix?