Coder Social home page Coder Social logo

automation-test-for-rest-api's Introduction

REST API Automation Test

This repository contains automation tests for a REST API using both Python and JavaScript. The tests are designed to validate the behavior of the API endpoints and ensure that they meet the expected specifications.

Table of Contents Overview Prerequisites Installation Usage Project Structure Contributing License Overview This project includes automated tests for a REST API that provides data based on specific parameters. The API requires a mandatory parameter symbol and an optional parameter date. The test cases cover various scenarios, including valid calls with different combinations of parameters and invalid calls without the required parameters.

Prerequisites Before running the tests, ensure that you have the following prerequisites installed on your machine:

Python (for Python tests) Node.js (for JavaScript tests) npm (Node.js package manager) Installation Clone the repository to your local machine:

bash Copy code git clone https://github.com/DYagmur/Automation-test-for-REST-API cd api-automation-tests Install Python dependencies:

bash Copy code pip install -r requirements.txt Install JavaScript dependencies:

bash Copy code cd js-tests npm install Usage Python Tests Run the Python tests using the following command:

bash Copy code python test_api.py JavaScript Tests Run the JavaScript tests using the following command:

bash Copy code cd js-tests npm test Project Structure python-tests: Contains Python scripts for API automation tests. test_api.py: Main Python test script. requirements.txt: Dependencies for Python tests. js-tests: Contains JavaScript scripts for API automation tests. test_api.js: Main JavaScript test script. package.json: Configuration file for npm. package-lock.json: Lock file for npm dependencies. Contributing If you would like to contribute to this project, feel free to fork the repository and submit pull requests. Contributions are welcome!

License This project is licensed under the MIT License.

automation-test-for-rest-api's People

Contributors

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