Resolving Plugin Errors
There are many errors that could happen when attempting to add a step plugin to Cycle. Whenever Cycle identifies an error, it will issue notifications through the editor (the Cycle Desktop IDE or the Cycle Testing VS Code extension).
Step spec file
The following errors could happen regarding the steps.yml file:
- The
steps.ymlfile is not found in the step plugin directory. - Cycle fails to parse the file.
- A step is missing any of its fields.
- A step ID is duplicated.
- A step text is duplicated.
- Different step plugins provide steps with the same CycleScript step text.
If Cycle discovers any of these issues, it will issue error notifications in the current editor. You will not be able to run any Cycle tests until the step plugin is fixed.
Settings file
The following errors could happen regarding the settings.yml file:
- The
settings.ymlfile is not found in the step plugin plugin directory. - Cycle fails to parse the file.
- The file is missing the start command.
- The file cannot find the plugin dependencies.
If Cycle discovers any of these issues, it will issue error notifications in the current editor. You will not be able to run any Cycle tests until the step plugin is fixed.
Executable artifact
The following errors could happen when trying to start the step plugin process for test execution:
- The start command in the
settings.ymlfails (for any reason). - The plugin is not alive after timing out from calling the plugin's health check endpoint.
- The Cycle engine attempts to call a step that the plugin does not provide.
When the Cycle engine hits any of these errors, it will abort immediately and report error messages to all the standard places (editors, logs, console out).
API compatibility
There could be incompatibilities between Cycle and the plugin's API endpoints. This is very unlikely if you are building your plugin using the Java Plugin SDK, but it could happen if there are version misalignments between the SDK and the Cycle app. Please double check your versions and then reach out to the Cycle Labs support team if you have any trouble.