In this lesson, you add data to the dataset to test the
ClassicsCD sample application by placing more orders for the CD.
To display the Test dataset editor, click . In the Show view dialog, expand Functional
Test, click Test dataset and then click
OK.The dataset 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 |
-
Position your mouse pointer in the dataset editor, and
then press Enter to add a row after the first
row.
-
To save time, copy the data from row 0 in the dataset
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 dataset 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 dataset editor, click X to
close the dataset editor, and then click Yes to
save the changes you made to the dataset.