In this lesson, you add data to the datapool to test the
ClassicsCD sample application by placing more orders for the CD.
About this task
To display the
Test Datapool editor, click . In the
Show view dialog box, expand
Functional
Test, click
Test Datapool and then click
OK.
The datapool editor opens to the right of the script editor, and looks
like this table:
|
Composer |
Item |
Quantity |
Card# |
CardType |
ExpDate |
Name |
Street |
CityStZip |
Phone |
Price |
0 |
Bach |
Violin Concertos |
1 |
1234 1234 1234 1234 |
Visa |
12/12 |
Trent Culpito |
75 Wall St. |
Ny, Ny 12212 |
212-552-1867 |
$14.99 |
Procedure
- Position your mouse pointer in the datapool editor, and
then press Enter to add a row after the first
row.
- To save time, copy the data from row 0 in the datapool
into the empty row that you created.
- Position the mouse pointer in the row 0 cell, right-click,
and then click Copy.
- Position the mouse pointer in the row 1 cell, right-click,
and then click Paste.
- Click Yes to paste the data into
the empty row.
- Change the value in the Quantity, Card#, CardType,
and ExpDate columns to test the ClassicsCD
sample application by placing more orders for the CD.
- In row 1, in the Quantity column, select the cell, and
type 2.
- In row 1, in the Card# column, select the cell, and
type 9999 9999 9999 9999.
- In row 1, in the CardType column, select the cell, and
select Amex from the list.
- In row 1, in the ExpDate column, select the cell, and
type 12/13.
The data in the datapool looks like this table: |
Composer |
Item |
Quantity |
Card# |
CardType |
ExpDate |
Name |
Street |
CityStZip |
Phone |
Price |
0 |
Bach |
Violin Concertos |
1 |
1234 1234 1234 1234 |
Visa |
12/12 |
Trent Culpito |
75 Wall St. |
Ny, Ny 12212 |
212-552-1867 |
$14.99 |
1 |
Bach |
Violin Concertos |
2 |
9999 9999 9999 9999 |
Amex |
12/13 |
Trent Culpito |
75 Wall St. |
Ny, Ny 12212 |
212-552-1867 |
$14.99 |
- In the Test Datapool editor, click X to
close the datapool editor, and then click Yes to
save the changes you made to the datapool.