Skip to content
This repository has been archived by the owner on Apr 7, 2022. It is now read-only.

[1LP][RFR] Automating service dialog load test #10099

Merged
merged 1 commit into from
May 8, 2020

Conversation

niyazRedhat
Copy link
Contributor

@niyazRedhat niyazRedhat commented May 6, 2020

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

@niyazRedhat niyazRedhat changed the title [WIPTEST] Automating service dialog load test [RFR] Automating service dialog load test May 6, 2020
@dajoRH dajoRH removed the WIP-testing label May 6, 2020
@valaparthvi valaparthvi added the test-automation To be applied on PR's which are automating existing manual cases label May 7, 2020
Comment on lines 541 to 547
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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Required:

Suggested change
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")

Comment on lines 549 to 559
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")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same change as above.

Comment on lines 555 to 556
request_description = ("Provisioning Service [{catalog_item_name}] from [{catalog_item_name}]"
.format(catalog_item_name=catalog_item.name))
Copy link
Contributor

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
Copy link
Contributor

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

@valaparthvi valaparthvi changed the title [RFR] Automating service dialog load test [WIPTEST] Automating service dialog load test May 7, 2020
@dajoRH dajoRH added needs-lint and removed lint-ok labels May 7, 2020
@dajoRH dajoRH added lint-ok and removed needs-lint labels May 7, 2020
@niyazRedhat niyazRedhat changed the title [WIPTEST] Automating service dialog load test [RFR] Automating service dialog load test May 7, 2020
@dajoRH dajoRH removed the WIP-testing label May 7, 2020
Copy link
Contributor

@valaparthvi valaparthvi left a 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/

@valaparthvi valaparthvi changed the title [RFR] Automating service dialog load test [1LP][RFR] Automating service dialog load test May 7, 2020
@valaparthvi valaparthvi added the test-cleanup Test removal, collection changes, re-organization label May 7, 2020
@jawatts jawatts self-assigned this May 8, 2020
@jawatts jawatts merged commit 9e725ac into ManageIQ:master May 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
lint-ok test-automation To be applied on PR's which are automating existing manual cases test-cleanup Test removal, collection changes, re-organization
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants