Git Product home page Git Product logo

onedrive-automation's Introduction

OneDrive Automation

gif included for the inevitable "It runs on my computer"

Installation

Install the required libraries:

npm install
  1. replace the path in test.js for "downloadPath" to where chrome downloads as in "C:/Users/your username/Downloads/one.txt"

Finally run the test suite

npm test

To see the report open the html located in mochawesome-report folder (mochawesome.html)

Tools Used

Kept to a minimum on purpose

Uses latest node.js No compilers used, just base javascript

Test Layout

  • Succesfully logs into OneDrive using the credentials provided

    Verifies the title of the dashboard for onedrive. Successfull login should take you the main dashboard for onedrive

  • 0 Byte .txt file upload and subsequent failure

    Verifies by checking the status of the upload. Upload monitor provides an error if the file is 0 Byte.

  • 1 Byte .txt file upload

    Verifies by checking the status of the upload. Upload monitor provides a confirmation upon a succesfull upload. Alternative verification would be whether the file exists on OneDrive

  • Check Metadata of the uploaded file

    Verifies by checking the metadata. Choose the file size as its expected to be a certain size within a empty OneDrive.

  • Reupload 1 Byte .txt file and subsequent failure

    Verify by checking the status of the upload. Upload monitor provides an error if the file already exists.

  • Download the original version and verify

    Verify by checking the contents of the file after downloading. The contents to be expected are already known.

  • Open and Edit The Uploaded File and save it

    Verify by checking the contents of the file after editing

  • Download the new edited version and verify

    Verify by checking the contents of the file after downloading. The contents to be expected are already known. Assert that it does not equal already downloaded original version.

  • Delete the uploaded file from OneDrive

    Verify by checking the status monitor. Status monitor provides a confirmation for deletion. Alternative is check whether the file exists in OneDrive

Expanding the existing framework

The current structure is based on page object model so this could easily be adapted to include the whole site but some changes might be required such as

  • Having a dedicated class for initializing the selenium builder with settings, currently it is just basic version
  • Refactoring out the dashboard.js to include individual components of the dashboard itself such as navigation bar, file selected menubar.
  • Expanding the mocha test layouts to bigger suites

onedrive-automation's People

Contributors

saeedmalikx avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.