Skip to content

LinkedInLearning/api-testing-foundations-4403636

Repository files navigation

API Testing Foundations

This is the repository for the LinkedIn Learning course API Testing Foundations. The full course is available from LinkedIn Learning.

API Testing Foundations

The ability to quickly and effectively test APIs is a critical skill for software testers and QA engineers. In this intermediate-level course, instructor Dave Westerveld covers the basics of API testing, sharing how to work with several industry-standard tools for testing APIs at scale in an organization. After providing a primer on web services and important API terminology, Dave shows how to use Postman for some basic API exploration. He then goes over some basic approaches and methodologies used in testing GET, POST, PUT, and DELETE requests; discusses some of the details of performance and security testing; and more.

Installing

  1. To use these exercise files, you must have the following installed:
    • python 3.11
    • poetry
  2. Clone this repository into your local machine using the terminal (Mac), CMD (Windows), or a GUI tool like SourceTree.

If you don't have the necessary prerequisites, see the sections below on how to install them

Installing python

You will need python 3.11 to run this application. You can check what version of python you have by going to the command shell (search for "terminal" in your applications) and calling

python -V

Note that on older Macs you that come with python 2 installed the python command will point to python 2. You should also try running python3 -V to see if you have python 3 installed.

If you do not have version 3.11, you will need to install it.

Mac OS

You can install python on a Mac using the homebrew package manager. If you do not yet have homebrew installed (you can check by running which homebrew), run the following command

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

To install python run this command:

brew install python@3.11

Windows

To install the latest version of python on Windows, go to the Windows downloads page on python.org. Download the latest release and run the installer.

Installing Poetry

This application uses poetry for dependency management. You can install poetry with the following command:

curl -sSL https://install.python-poetry.org | python3 -

Once you have it installed, you can use it to install all the other package dependencies.

Setup

With python 3.11 and poetry installed, you are ready to setup this application. Use poetry to install all the dependencies:

poetry install

Running the app locally

In order to run this app locally call this command:

poetry run uvicorn main:app --reload

Alternatively, you can run it with the make command:

make run-dev

You can then access the application at http://127.0.0.1:8000

You can see documentation for the API at http://127.0.0.1:8000/docs

Instructor

Dave Westerveld

Check out my other courses on LinkedIn Learning.

About

This is a repository for the LinkedIn Learning course API Testing Foundations

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published