features.steps.common_steps¶
File for steps which are used more often across multiple feature files.
Attributes¶
Functions¶
|
Verifies that the TPC_Web application is running. |
|
|
|
Provides annotation "@Commentary" inside feature files for additional text explanation. |
|
Logs the admin user into the TPC_Web interface. |
|
Verifies that the system displays a success message after an action. |
|
Verifies that the system displays a specific error message. |
|
Authenticates the API client to enable authorized interactions with the REST API. |
|
Verifies the API response status code. |
|
Verifies the response payload includes the specified error message. |
|
Simulates click on given button. |
|
Navigates to the given page. |
Module Contents¶
- features.steps.common_steps.step_tpc_web_running(context)[source]¶
Verifies that the TPC_Web application is running.
This step checks that the TPC_Web application is running and accessible at the expected URL.
- Parameters:
context (behave.runner.Context) – the behave context
- Return type:
None
- features.steps.common_steps.step_domain_exists(context, domain_name)[source]¶
.
- Parameters:
context (behave.runner.Context) – the behave context
domain_name (str) – a domain name
- Return type:
None
- features.steps.common_steps.commentary_step(context)[source]¶
Provides annotation “@Commentary” inside feature files for additional text explanation.
- Parameters:
context (behave.runner.Context) – the behave context
- Return type:
None
- features.steps.common_steps.step_admin_logged_in(context)[source]¶
Logs the admin user into the TPC_Web interface.
This step sets up the initial state for all scenarios, ensuring the admin is authenticated and on the TPC_Web dashboard.
- Parameters:
context (behave.runner.Context) – the behave context
- Return type:
None
- features.steps.common_steps.step_confirmation_message(context, confirm_message)[source]¶
Verifies that the system displays a success message after an action.
- Parameters:
context (behave.runner.Context) – the behave context
confirm_message (str)
- Return type:
None
- features.steps.common_steps.step_error_message(context, error_message)[source]¶
Verifies that the system displays a specific error message.
- Parameters:
context (behave.runner.Context) – the behave context
error_message (str) – The expected error message text.
- Return type:
None
- features.steps.common_steps.step_api_client_authenticated(context)[source]¶
Authenticates the API client to enable authorized interactions with the REST API.
- Parameters:
context (behave.runner.Context) – the behave context
- Return type:
None
- features.steps.common_steps.step_verify_status_code(context, status_code)[source]¶
Verifies the API response status code.
- Parameters:
context (behave.runner.Context) – the behave context
status_code (str) – The expected status code.
- Return type:
None
- features.steps.common_steps.step_verify_error_message(context, error_message)[source]¶
Verifies the response payload includes the specified error message.
- Parameters:
context (behave.runner.Context) – the behave context
error_message (str) – The expected error message text.
- Return type:
None
- features.steps.common_steps.step_when_admin_click_button(context, button_name)[source]¶
Simulates click on given button.
- Parameters:
context (behave.runner.Context) – the behave context
error_message (str) – The expected error message text.
button_name (str)
- Return type:
None
Navigates to the given page.
- Parameters:
context (runner.Context) – Behave context.
page_name (str) – Page name.
- Return type:
None