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.

GitLab CI – Using APIF-Auto

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. 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/apif-run.py run-all ci_project -S -o output/directory
  Just to note the yaml file could also be configured to make CURL calls directly to the API Fortress API to achieve the same behavior.