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...


Explain the planning and creating datapool with an example?



Explain the planning and creating datapool with an example?..

Answer / biju

A datapool is a test dataset that supplies data variables
in a test script during playback. Using datapools allows
you to run multiple iterations of a script using different
data each time.

Sub Main
Dim Result As Integer -> Header file

'Initially Recorded: 9/22/01 12:45:07 PM
'Script Name: Classics Place an Order Datapool


Dim x As Integer 'variable for loop
Dim dp As Long 'variable for datapool
Dim quantity, expdate As String 'variables for fields


dp=SQADatapoolOpen("Order CD") -> Open the Data Pool


For x = 1 to 10 -> Start of loop

Call SQADatapoolFetch(dp) ->fetch a row from the data pool

Window SetContext, "Name=frmMain", ""
PushButton Click, "Name=cmdOrder"
'Result = WindowVP
(CompareProperties, "Name=frmOrder", "VP=Object Properties
1")

Window SetContext, "Name=frmOrder", ""
EditBox Click, "Name=txtQuantity", "Coords=84,8"

'Quantity data
Call SQADatapoolValue(dp,1,quantity)
InputKeys "{HOME}+{END}{DELETE}” &quantity
EditBox Click, "Name=txtCreditCard", "Coords=9,6"
InputKeys "{HOME}+{END}{DELETE}1234 1234 1234 1234"
EditBox Click, "Name=txtExpirationDate", "Coords=14,11"

'Expiration date data
Call SQADatapoolValue(dp,2,expdate)
InputKeys "{HOME}+{END}{DELETE}"&expdate

Result = ComboBoxVP
(CompareData, "Name=comboCardType", "VP=Object Data 1")

PushButton Click, "Name=cmdOrder"
Window SetContext, "Name=frmConfirm", ""
PushButton Click, "Name=cmdOK"

Next x
Call SQADatapoolClose(dp)


End Sub

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Rational TestSuite Interview Questions

What is the purpose of the Trap options?

0 Answers  


How many Verification points are there in Rational Robot? List them.

3 Answers  


Unexpected Active Window tab is in a. General Option b. GUI Record Option c. GUI Playback Option d. Session Record Option

1 Answers  


How we write a java script using RFT for the below scenario iam having dropdown list COUNTRY(it contains india,us,uk...) once we select the india in that list it will open the corresponding states in STATES dropdown list. i would like to change those values dynamically... can u pls send me the coding....

0 Answers   IBM,


Is it possible to perform performance/stress tests using Rational Test Manager, by executing manual test scripts?

3 Answers  


Which is the correct order? a. Planning, Designing, Execution, Implementation and Analysis b. Planning, Designing, Implementation, Execution and Analysis c. Analysis, Planning, Designing, Execution and Implementation d. Planning, Analyzing, Designing, Execution and Implementation

10 Answers  


Where do you view the results in Trap option?

0 Answers   Accenture,


If we have to use a different data type then which command helps us in that a. Custom Data type b. Import from command line c. Microsoft excel d. None of the above

2 Answers  


How will you edit a baseline file of a verification point?

0 Answers   Covansys,


Can we compile the .sbl file?

5 Answers  


For distributed functional testing what do we require in test manager? a. Test Agent b. Test Monitor c. Test Executer d. Test Mentor

2 Answers  


Hi all when you run your scripts, all the corresponding bugs can be loged in to Quality Center (or any bug tracking tool), when you have a connection between both the tools. obviously one is being a BUG TRACKING and TEST MANAGEMENT TOOL (QC) and the next is a TESTING TOOL (QTP). my question is that....being both are different tools how can you establish a connection. As you connect your Monitor with CPU by some cables. ns_prasad21@yahoo.co.in

2 Answers   Wells Fargo,


Categories