Skip to main content

Calling Other Plugins

It is possible for one plugin to call steps provided by another plugin. For example, a Blue Yonder plugin could call the WebDriver plugin to perform web interactions using the same browser session. In order for one plugin to call another plugin's steps, it must declare the other plugin as a dependency in its settings file. Then, it can call the other plugin from a step definition class through the suite context:

suiteContext.getPluginDependencies().call(otherPluginName, scenarioId, stepInputsBody);

The parameter for this call are:

  1. otherPluginName: a String value for the dependency plugin
  2. scenarioId: a UUID value for the current scenario, which can be fetched from the scenario context
  3. stepInputsBody: a StepInputsBody object that contains the step ID, parameters, and variables for the step being called