Integrating Test Executions from various Testing Frameworks
You can integrate any Testing Framework with Sealights using our Public API to capture Tests Events like Start and End of Test Stage, Tests results, etc.
We’re listing below some examples of integrations for your reference.
The sample code listed in this article is not supported by Sealights as an official plugin, agent, or product and is shared as a courtesy.
Sealights Integration samples repository
Sealights had published a repository of several sample integrations on Github:
Known Third Party Integrations
Robot Framework Sealights Custom Listener
This section demonstrates applying SeaLights with Test Optimization to tests executed with the Robot framework (Python): It uses a reference implementation of the Robot Listener interface to facilitate calls to SeaLights API at appropriate phases of the test suite's lifecycle. The SeaLights integration is implemented in the file SLListener.py
available as an open-source project for you to be able to customize it to your specific configuration.
By default, the command line to add the Sealights' listener to the Robot execution is as follows: --listener “SLListener.py:<CustomerDomain>:<Token>:<buildSessionId>:<Test Stage Name>:<LabId>”
.
The command arguments are specified after the listener name (or path) using a colon (:
) as a separator:
Customer Domain URL
Token
buildSessionId
Test Stage name
(Optional) LabId
For example:
robot --listener "SLListener.py:your-domain.sealights.co:`cat sltoken.txt`:`cat buildSessionId.txt`:Robot Tests" some_tests.robot
or
robot --listener "SLListener.py:your-domain.sealights.co:${SL_TOKEN}:${SL_BUILD_SESSION_ID}:Robot Tests:${SL_LAB_ID}" some_tests.robot
For more information about Robot Framework Interfaces, please refer to the official documentation: https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html#listener-interface
Katalon Studio Sealights plugin
This plugin is publicly ava