Skip to content

The repo is to test the file upload scenario. The repo dynamically uploads the file to BrowserStack from a local file path.

Notifications You must be signed in to change notification settings

BrowserStackCE/wdio-fileupload-preloadedfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

webdriverio-browserstack

WebdriverIO FileUpload with BrowserStack

BrowserStack Logo

Description

The repo is to test the file upload scenario. The repo dynamically uploads the file to BrowserStack from a local file path. The path can be updated in line 14 of conf/upload-media.js file. The repo uses onPrepare hook method to run the fileUpload function before the test starts. To emulate the repo, users can copy the onPrepare hook part from the conf/upload.conf.js and the actual upload function in conf/upload-media.js

Pre-Requisite

  • Minimum Node version 20.17

Setup

  • Clone the repo
  • Install dependencies npm install
  • You can setup environment variables for all sample repos

Running your tests

  • To run tests, run npm run test

Notes

  • You can view your test results on the BrowserStack automate dashboard

  • You can export the environment variables for the Username and Access Key of your BrowserStack account

    export BROWSERSTACK_USERNAME=<browserstack-username> &&
    export BROWSERSTACK_ACCESS_KEY=<browserstack-access-key>

Additional Resources

About

The repo is to test the file upload scenario. The repo dynamically uploads the file to BrowserStack from a local file path.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published