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 |
How many verification points are there in Robot and What are they?
How to do data driven testing using robot?
hi i am sanganithi.i am having some doubt in rational robot.can we do synchronization in rational robot,if we can do means how can we do .please explain the steps clearly.
Can we compile the .sbl file?
Shortcut Key for Playback and Halting the playback in Rational Robot are a. F8 and F9 b. F5 and F9 c. F5 and F11 d. F8 and F11
What is the purpose of the Trap options?
Explain the use of "testobject root = getroottestobject();" in rft?
What is the purpose of .sbl, .sbh, .rec files?
What is user defined data type?
How many Verification points are there in Rational Robot? List them.
how many technologies and environments do the rational rose supports?
Unexpected Active Window tab is in a. General Option b. GUI Record Option c. GUI Playback Option d. Session Record Option