Git Product home page Git Product logo

at_js_ht3_valiantsin_lutchanka's Introduction

JS automation API tests using Postman CI integration (Jenkins, Github Actions)

This repository purpose is to perform API positive and negative test automation of DropBox upload, check metadata and delete file features https://www.dropbox.com/ and perform CI integration of tests with Jenkins and Github Actions

The Dropbox account under the test is created for the testing purposes only and is not a private or personal. Authorization credentials provided in tests are for learning purposes only and to provide the possibility to check the automation task accomplishment.

Technology used

  • Postman (Newman)
  • Jenkins

Setup:

Run in Jenkins:

Screen record of pipeline and local job run on Jenkins server https://share.vidyard.com/watch/E4RGuuS4oaGZCsBH6WSM7B?

  • Screen recording video uploaded to the repository
  1. To integrate with Jenkins and run from the CSM(GIT) - create new Pipeline and choose Pipeline definition "Pipeline script from CSM", repository url "https://github.com/Valiantsin2021/AT_JS_HT3_Valiantsin_Lutchanka.git", branch "master", Script Path "Jenkinsfile"

  2. To create and buld job locally - download and uzip this repository.

  • Open Jenkins and create new Freestyle project
  • In General seettings tab choose advanced > Use custom workspace > provide directory path where you unziped the repository.
  • Choose display name
  • In Build settings - choose Add build step > Execute Windows batch command > npm install.
  • In Build settings - choose Add build step > Execute Windows batch command > npm test.
  • In Post-build Actions - choose Publish HTML reports > HTML directory to archive - newman > Index page - index.html > Report title HTML Report
  • Save the job and click on Build now.
  • To see the HTML report click on HTML Report after the job build finished.

To see GitHub Actions results:

  • Click on Actions > last workflow run > build > Run API tests

Run in Newman:

  1. Clone master branch of this repository
  2. Navigate to the folder of cloned repository and run terminal
  3. Install dependencies with "npm install"
  4. To run tests - "npm test"

Native run in Postman:

Run in Postman

at_js_ht3_valiantsin_lutchanka's People

Contributors

renovate[bot] avatar valiantsin2021 avatar

Watchers

 avatar

at_js_ht3_valiantsin_lutchanka'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

github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • actions/setup-node v2
  • actions/upload-artifact v2
  • actions/download-artifact v3
  • peaceiris/actions-gh-pages v2
npm
package.json
  • newman ^5.3.2
  • newman-reporter-htmlextra ^1.22.11

  • 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.