website logo
⌘K
Welcome to Relicx
How does Relicx work ?
Benefits of Relicx
Getting Started
Sign-up
Instrumenting Your App
Security and Privacy
Application & Environments
Adding Application
Adding a new Test Environment
SDK
getSessionUrlCallback()
identify()
Log()
sessionVars()
sessionLabels()
User Sessions
Session Replay and Detail
Developer Console
Automatic Release Validation
How Does Relicx Release Validation Work?
Benefits of Relicx Release Validation
Running Release Validation
Interpreting the results
Adding Tests
Smart Tests
Interactive Test Authoring
Generating Tests from User Sessions
Editing Tests
Running Tests
Test Run Page
Test Suite
CI/CD Integration
Notifications
Slack
Email
Additional Resources
Importing tests into Relicx
Testing Firewall Protected Apps
Timezones
How-to-Guides
Instrumenting Your App
Convert a session with errors to test
Video Resources
Changelog
Docs powered by
Archbee

CI/CD Integration

7min

You can integrate Relicx with your CI/CD pipeline using GitHub Actions or CLI.

Github Actions

Repo: https://github.com/relicx-ai/relicx-githubaction

Text
|
    uses: relicx-ai/relicx-githubaction@v1.2
    with:
      username: ${{ secrets.USERNAME }}
      password: ${{ secrets.PASSWORD }}
      app_id: <app_id>
      command: run_test_suite
      test_suite_id:<test_suite_id? 
      environment_id: <env_id>
      wait: false


To generate the Github Actions code navigate to Settings -> Integrations -> CI/CD





Python CLI

Setup

Please ensure the following pre-requisites are met before using the python cli

  • python3
  • Access to https://app.relicx.ai
  • Alternatively you may have to install urllib package if you come across this error ModuleNotFoundError: No module named 'urllib3'
Text
|
pip install urllib3


Now install the Relicx package

Text
|
wget https://s3.us-west-1.amazonaws.com/apiclient.relicx.ai/prod/relicx.tar.gz
pip install relicx.tar.gz


Once the setup is complete, execute the test suite with the following commands. You can also generate the command from the product by navigating to Settings -> Integrations -> CI/CD

export relicx_username= <credentials> export relicx_password= <credentials> python -m relicx.cli --app_id <app_id> run_test_suite --environment_id <env_id> --test_suite_id <test_suite_id> --wait true

Set wait to true to make the run blocking and false otherwise. A blocking run will make your CD wait until the test suite execution has finished.

Updated 28 May 2023
Did this page help you?
PREVIOUS
Test Suite
NEXT
Notifications
Docs powered by
Archbee
TABLE OF CONTENTS
Github Actions
Python CLI
Setup
Docs powered by
Archbee