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:
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:
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.
To replace the file the event uploads, do the following:
Click next to the File Upload event and select Replace from the menu:
In the subsequent dialog, click Choose File to select a new file (or multiple files), and then click Submit:
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.
One event can upload up to 10 files.
Each file should not be larger than 1 MB.