Git Product home page Git Product logo

api_cypress_dropbox_test's Introduction

JS automation tests using Cypress

This repository purpose is to perform API positive and negative test automation of DropBox upload and delete file features https://www.dropbox.com/

The test suites purpose is to perform the following assertions:

For run the tests you should add you DropBox account refresh token, app client and app secret respectively to cypress.config.js file

1. Retrieve the OAuth 2.0 token for authorizing API requests
2. Upload the test text file (text.txt) on the Dropbox and check it is uploaded successfully
3. Check the uploaded file Metadata is correct
4. Delete the uploaded file (text.txt) and check it is deleted successfully
5. Perform negative tests for upload, search and delete requests with assertions on wrong endpoints and wrong body/headers data

Job done:

Cypress

  1. Environment variables for tokens and keys
  2. Positive and negative test suites
  3. Constants in a separate file
  4. Mochawesome report
  5. Jenkiinsfile

Setup:

for Cypress tests

  1. Clone Cypress branch of this repository
  2. Navigate to the folder of cloned repository and run terminal
  3. Install dependencies with "npm install"
  4. Add you DropBox account refresh token, app client and app secret respectively to cypress.config.js file
  5. To run tests - "npm test"

api_cypress_dropbox_test's People

Contributors

valiantsin2021 avatar renovate[bot] avatar

Stargazers

 avatar

Watchers

 avatar

api_cypress_dropbox_test's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

npm
package.json
  • chai-json-schema ^1.5.1
  • crypto-js ^4.1.1
  • cypress ^10.9.0
  • cypress-multi-reporters ^1.6.1
  • mochawesome ^7.1.3
  • mochawesome-merge ^4.2.1
  • mochawesome-report-generator ^6.2.0
  • rimraf ^3.0.2

  • Check this box to trigger a request for Renovate to run again on this repository

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.