< Previous | Next >

Lesson 5: Add data to the datapool

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

The Test Datapool editor is displayed after the script editor.

The datapool editor 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. Position your mouse pointer in the datapool 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 datapool 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 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

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

< Previous | Next >