Skip to main content

GitLab CI with APIF-Auto

Legacy Documentation
You're viewing legacy documentation for API Fortress (deployed via an on-premises container). To view documentation for the new SaaS version of API Fortress now known as Sauce Labs API Testing and Monitoring (with Sauce Connect tunnels) see API Testing on the Sauce Labs Cloud.

APIF-Auto, a command line tool that supports automated API Fortress test execution is an ideal tool for executing API Fortress tests in a GitLab CI workflow.

The pipeline script below serves as a template for creating a stage in your GitLab Pipeline for testing your APIs with API Fortress. If you’d like to take a look at the documentation for APIF-Auto, click here.

NOTE: It’s important to note that this is an example of a .gitlab-ci.yml. Experienced GitLab CI users are free to configure their workflow as best suits their needs. Please mind the yaml formatting.

image: 'python 3.7'
- python --version
- pip install -r requirements.txt
- API Fortress
stage: API Fortress
- python directory/ run-all ci_project -S -o output/directory
call APIs directly

You can configure the yaml file to make curl calls directly to the API Fortress API to achieve the same behavior.