Creating the ActiveData Test Asset

Before using a data file in ActiveData testing, you must create an ActiveData asset that uses the file, and then associate the ActiveData asset with the visual test.

  1. In the Recent list on the Start Screen, double-click the visual test named AddAccount to open it. The AddAccount visual test opens in the Visual Navigator.
  2. In the Test Steps pane, click Actions > Insert > ActiveData > New. The ActiveData asset setup window opens.
  3. In the Name text box, name the ActiveData asset by typing customers.
  4. Click Browse to search for the customers.csv file to associate with the AddAccount ActiveData asset. The Choose ActiveData Asset dialog box opens.
  5. Navigate to the sample file location and select the sample ActiveData file, customers.csv. By default, the location is: C:\Program Files\Silk\Silk Test\examples\customers.csv.
  6. Click Open. The path and file name appear in the File text box of the General tab.
  7. In the ActiveData asset setup window, click the Options tab.
  8. Check the Use first row as header check box.
    Tip: Click the Details tab to view the contents of the ActiveData file.
    This setting treats the first row of data in the ActiveData file as a header row, not as data.
  9. Click Save and close to create the ActiveData asset and associate it with the AddAccount visual test.

In a visual test, information about any associated ActiveData assets is stored in the Properties pane of the <<Start>> step. To review each ActiveData asset associated with the visual test , select the <<Start>> step and review the ActiveData property in the Properties pane.

Now that the ActiveData asset has been created and associated with the visual test, you are ready to create the repetition logic that will use the active data in the test.