This scenario demonstrates how to automate testing the file upload functionality of a web application using TestDriver’s capabilities. The test will check if the file upload process works correctly and if the uploaded file is processed as expected.

Prerequisites

Before running the tests, ensure you have performed the following steps:

  1. If you haven’t already, signup for a Free Trial on the TestDriver website
  2. Install the TestDriver CLI globally using npm or just follow the VS Code Extension Setup Walkthrough:
npm install -g @testdriverai@beta
  1. Run the init command to set up the TestDriver configuration using the API key you got when you signed up for the trial:
testdriverai init
Now you are ready to run the tests!

Scenario overview

  1. Load a website with a file upload feature.
  2. Generate a file that will be used for the upload.
  3. Use TestDriver to perform the file upload process.
  4. Check if the uploaded file is processed correctly by the application.

TestDriver in action