GithubHelp home page GithubHelp logo

polishnotationapi's Introduction

Polish Notation API test in Jenkins

The tests were created using Postman and exported as a collection JSON file.

To run the test in Jenkins please follow the steps below:

Prerequisite

Install NodeJS and npm. Newman is written in NodeJS and we distribute the official copy through npm. Install nodejs and npm for Linux "https://docs.npmjs.com/getting-started/installing-node"

Access to Jenkin server and interface

Steps

  1. On the Jenkins machine install newman using "npm install -g newman"
  2. Copy the "Test.postman_collection.json" to a directory and remember this for later

Note: You Run this collection inside newman, using the command "newman run Test.postman_collection.json" to see if everything is set up correctly

  1. In Jenkins, create a new job by clicking on the “New Item” link on the left sidebar > Select a “Freestyle Project” from the options > Name your project.

  2. Add a build step in the project. The build step executes a Shell command (for linux and Mac OS) and execute Windows batch command (for windows).

  3. The command is

export PATH=/usr/local/bin/
newman run /DIRECTORY/Test.postman_collection.json

Replacing DIRECTORY with the directory path to the json file

  1. Click the save button to finish creating the project.

  2. Run this build test manually by clicking on the “Build Now” link in the sidebar.

Jenkins indicates that the build has failed with a red dot in the title. We can check why with the console output from newman.

There are two tests that fails

  • Division is not possible on the API
  • Addition results is return if there's no operator defined

polishnotationapi's People

Contributors

alantouk avatar

Watchers

 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.