API Reference

Plugin hooks

rampa.pytest_plugin.pytest_configure(config)
function
function
rampa.pytest_plugin.pytest_configure(config)

Register the rampa_scenario marker.

Parameters:

config (Any)

Return type:

None

Fixture implementation

rampa.pytest_plugin.rampa_result(request)
function
function
rampa.pytest_plugin.rampa_result(request)

Run a rampa scenario defined by @pytest.mark.rampa_scenario.

The marker accepts the same kwargs as ScenarioConfig plus an optional thresholds dict. The fixture runs the scenario, waits for completion, and returns the RunResult.

If thresholds are configured and any fail, the test fails with a descriptive message.

Parameters:

request (pytest.FixtureRequest) – Pytest request object.

Returns:

  • RunResult – The completed test run result.

  • >>> import rampa.pytest_plugin

Return type:

RunResult

Internal

async rampa.pytest_plugin._run_plan(plan)
async function
async function
async rampa.pytest_plugin._run_plan(plan)

Run a test plan through the headless engine.

Parameters:

plan (TestPlan)

Return type:

RunResult