Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


A dialog is diplays " Transaction 254689 has been
successfully completed" How to get the transaction ID from
the message ?

Answers were Sorted based on User's Feedback



A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / 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

A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / tester

Get the message using GetROproperty.then use spit function
suppose
var1="Transaction 254689 has been successfully completed"
spl=split(var1," ")
msgbox spl(1)

Is This Answer Correct ?    7 Yes 1 No

A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / 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

A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / pravati

x="Transaction 254689 has been successfully completed"
for i=1 to len(x)
y=mid(x,i,1)
if isnumeric(y) then
z=z & y
end if
next
msgbox z

Is This Answer Correct ?    0 Yes 0 No

A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / mdbasha7862@gmail.com

Try with 'MID Function'

var2="Transaction 254689 has been successfully completed"
midfun=mid(var2,12,6)
msgbox (midfun)

Is This Answer Correct ?    0 Yes 2 No

A dialog is diplays " Transaction 254689 has been successfully completed" How to get the ..

Answer / qtphelper

Use GETRO and obtain the inner text . Since every time the
number is generated after transaction use mid function and
retrieve the number

Is This Answer Correct ?    0 Yes 5 No

Post New Answer

More QTP Interview Questions

We are calling Actions in Expert View by using Run Action.but i want to know where we are saving the Actions Scripts.Pls explain??

1 Answers  


How to connect the real time application application with the QTP?

2 Answers  


To which environments does quicktest professional (qtp) supports?

0 Answers  


What is the difference between functional spec. and Business requirement specification?

5 Answers  


What is the extension of 'Log file' in QTP

3 Answers  


what testing activities u may want to automate in a project?

2 Answers  


Hi , I am new to VBscripting, My requirment is to write a vbscript to read a row (which has coloumns like Description, Code, date(DD/MM/YY), hours etc) and export these feilds to a Website and then click on Submit Automatically on that web page. This it should do for all the Rows in that excel file. Any help is much appriciated Thanks Shalini

2 Answers   TCS,


There is an built in window application in qtp9.1,i.e.Flight4.0.i want to implement the recovery maneger on it.How can i do this?

0 Answers  


How QTP integrate with application?

1 Answers  


Hi Can u plz suggest who is the Best Faculty for Advanced QTP Scripting in Hyderabad ,plz suggest me..... or send me a replay to satheesh.goli@gmail.com, r make me a call 9866335752

1 Answers   AppLabs,


HI! I have completed my testing course in 2008. but now am working in banking sector as a data analyst and i want to move to an IT based company but am unable to understand whether i have to complete the testing course again and try for a job .

1 Answers  


What exactly is the difference among all the three recording modes.

5 Answers   Accenture,


Categories