-
Notifications
You must be signed in to change notification settings - Fork 165
[1LP][RFR] Automating service dialog load test #10099
Conversation
log = LogValidator( | ||
"/var/www/miq/vmdb/log/automation.log", | ||
matched_patterns=["Service dialog load - Begin"], | ||
) | ||
log.start_monitoring() | ||
view = navigate_to(service_catalogs, "Order") | ||
assert log.validate(wait="120s") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Required:
log = LogValidator( | |
"/var/www/miq/vmdb/log/automation.log", | |
matched_patterns=["Service dialog load - Begin"], | |
) | |
log.start_monitoring() | |
view = navigate_to(service_catalogs, "Order") | |
assert log.validate(wait="120s") | |
with LogValidator("/var/www/miq/vmdb/log/automation.log", matched_patterns=["Service dialog load - Begin"]).waiting(timeout=120): | |
view = navigate_to(service_catalogs, "Order") |
auto_log = LogValidator( | ||
"/var/www/miq/vmdb/log/automation.log", | ||
failure_patterns=[".*Service dialog load - Begin.*"], | ||
) | ||
auto_log.start_monitoring() | ||
view.submit_button.click() | ||
request_description = ("Provisioning Service [{catalog_item_name}] from [{catalog_item_name}]" | ||
.format(catalog_item_name=catalog_item.name)) | ||
provision_request = appliance.collections.requests.instantiate(request_description) | ||
provision_request.wait_for_request(method='ui') | ||
assert auto_log.validate(wait="180s") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same change as above.
request_description = ("Provisioning Service [{catalog_item_name}] from [{catalog_item_name}]" | ||
.format(catalog_item_name=catalog_item.name)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use f-string instead of format
?
casecomponent: Services | ||
initialEstimate: 1/16h | ||
""" | ||
catalog_item, sd, ele_label = generic_catalog_item_with_imported_dialog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're not going to use sd
and ele_label
, you can just do this -
catalog_item, _, _ = generic_catalog_item_with_imported_dialog
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Thanks for the changes o/
Purpose or Intent
PRT Run
{{pytest: cfme/tests/services/test_dynamicdd_dialogelement.py::test_load_service_dialog --long-running }}
removed
test_dd_multiselect_default_element_is_shouldnt_be_blank_when_loaded_by_another_element
test. we already have automation for multiselect dropdown