How to create Test Steps for uploading files


To automate the file upload action in Testsigma you need to upload the file(that you want to use in the automated action) into Testsigma Storage.


Prerequisites

You should already know how to:

  1. Create a test case
  2. Create test steps

How to create test steps for testing file upload

  1. Go to Test Development > Uploads.
  2. Click on upload on the top right corner as shown in the image below.

uploads_testsigma

  1. Choose and upload a file. The uploaded file will appear as shown below.

upload_list

  1. Click on the blue color box beside the file to copy the file path.

file_path

Now let us discuss how we can use these links in our Test Steps.

  1. Create a Test Case and navigate to the application with the help of URL.
  2. Use NLP: Upload file test-data using the element element.

upload_test_step

  1. Replace test-data with the file path copied in step 4.

filepath_add

  1. Click Create.
  2. Add more steps to complete the Test Case.
  3. When you run the Test Case the file will be uploaded in the application. That's all we need to perform in order to add a Test Step to upload a file using Testsigma.