Applies to LoadNinja 1.0, last modified on October 31, 2019

About

When testing a web application, you may need to upload a file to it, for example, to add an image to a user profile. In LoadNinja, you can record file uploading as any other event – just upload one or multiple files in your application as you normally would during script recording, and LoadNinja will record your actions as a special command:

The File Upload event

Click the image to enlarge it.

You can upload any file, there are no restrictions on file types. To view the details of an uploaded file (or files), expand the File Upload event in the script editor:

File details

Click the image to enlarge it.

The uploaded files are stored on the LoadNinja server. When you run the recorded script, LoadNinja will copy the files to the servers launched for your test, and virtual users will upload them to the tested application.

After uploading a file, you can replace or download it.

Replace file

To replace the file the event uploads, do the following:

  1. Click next to the File Upload event and select Replace from the menu:

    Replace a file

    Click the image to enlarge it.

  2. In the subsequent dialog, click Choose File to select a new file (or multiple files), and then click Submit:

    Choose a new file

    Click the image to enlarge it.

    If your event works with several files, select the desired files in the dialog. If you want to upload more or fewer files, simply select the desired number of files.

    Note that when replacing several files, you can choose up to 10 files.
    The size of each file cannot exceed 1MB.

View file

To view a file, download it to your computer:

Download a file

Click the image to enlarge it.

Restrictions

  • One event can upload up to 10 files.

  • Each file should not be larger than 1 MB.

See Also

Script Recorder

Highlight search results