Lesson 5: Add data to the dataset

In this lesson, you add data to the dataset to test the ClassicsCD sample application by placing more orders for the CD.

About this task

To display the Test dataset editor, click Window > Show view > Other. In the Show view dialog box, 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

Procedure

  1. Position your mouse pointer in the dataset editor, and then press Enter to add a row after the first row.
  2. To save time, copy the data from row 0 in the dataset into the empty row that you created.
    1. Position the mouse pointer in the row 0 cell, right-click, and then click Copy.
    2. Position the mouse pointer in the row 1 cell, right-click, and then click Paste.
    3. Click Yes to paste the data into the empty row.
  3. Change the value in the Quantity, Card#, CardType, and ExpDate columns to test the ClassicsCD sample application by placing more orders for the CD.
    1. In row 1, in the Quantity column, select the cell, and type 2.
    2. In row 1, in the Card# column, select the cell, and type 9999 9999 9999 9999.
    3. In row 1, in the CardType column, select the cell, and select Amex from the list.
    4. 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
  4. 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.