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.
- Postman (Newman)
- Jenkins
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
-
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"
-
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:
- Clone master branch of this repository
- Navigate to the folder of cloned repository and run terminal
- Install dependencies with "npm install"
- To run tests - "npm test"
Native run in Postman: