hi iam new in qtp. i joined one company. they gave one application bild its contain banking domain .i have some doubts,if any one knows plese give me reply
1)Iam working in a Banking Application,In Account Openining Automation
there were hundreds of Account Numbers will be generated at the run time.Iam exporting the Account Numbers to one excel sheet,My Query is
when iam agian exporting acount numbers to the Same excel Sheet from the another test the previuous values are deleting.
I want to store account number which were generated by differnt tests i want to store in one single excel sheet,plz write the sample
2)when ever the account number is generated at the runtime ,before storing account number in the excel sheet ,i want to assaign a refernce number eg P1A1 to that account number and that value is to be stored in the excel sheet and this process isto be continued for "n number of times
when ever i want that account number i want to get the acccount number by refering the reference id.plz send the sample script
3)iam using the IF condition, I want to exceute set of operartions if one Dialog comes and if other dialog box appears i want to execute
another set of operation my query is the dialog boxes having Same Name [img]images/icons/cool.gif[/img] [img]images/icons/cool.gif[/img] [img]images/icons/cool.gif[/img] [img]images/icons/cool.gif[/img] ,But inside the text is differnt.can u suggest the syntax
Re: banking application
All those questions are answered already here in the group.
Please, Search and find the solutions.
You need to save DataTable explicitly after your account number is generated (DataTable.Export).
Then use DataTable.Import in another TestCase to get your previous set of data.
If you want reference to be as part of number,
AccNumber & "P1A1"
If you want them to be different fields, write reference as another parameter (column) into the same row of DataTable.
When you import DataTable - you can invoke both values separately by calling DataTable's parameter.
Retrive the text of Dialog by GetROProperty("text") and parse it to find particular substring from entire text, then compare it with IF
If you've done with searching and working on your code, and still have the doubts -
please, drop your lines in the group -
you definitely will get help.
On any question.