scenario.campaignrunner module¶
Campaign execution management.
- CAMPAIGN_RUNNER¶
Main instance of
CampaignRunner.
- class CampaignRunner¶
Bases:
LoggerCampaign execution engine: runs test scenarios from input files.
Only one instance, accessible through the
CAMPAIGN_RUNNERsingleton.This class works with the following helper classes, with their respected purpose:
CampaignArgs: command line arguments,CampaignExecution: object that describes a campaign execution,CampaignLogging: campaign execution logging,CampaignReport: campaign report generation.
- __init__()¶
Configures logging for the
CampaignRunnerclass.
- main()¶
Campaign runner main function, as a member method.
- Returns:
Error code.
- _exectestsuitefile(campaign_execution, test_suite_path)¶
Executes a test suite file.
- Parameters:
campaign_execution –
CampaignExecutionobject to store results into.test_suite_path – Test suite file to execute.
- Returns:
Error code.
- _exectestsuite(test_suite_execution)¶
Executes a test suite.
- Parameters:
test_suite_execution – Test suite to execute.
- Returns:
Error code.
- _exectestcase(test_case_execution)¶
Executes a test case.
- Parameters:
test_case_execution – Test case to execute.
- Returns:
Error code.