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

Commit

Permalink
Automting dynamic refresh dialog test
Browse files Browse the repository at this point in the history
  • Loading branch information
niyazRedhat committed Apr 22, 2020
1 parent 2893ee0 commit 184e5b2
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 154 deletions.
30 changes: 0 additions & 30 deletions cfme/tests/services/test_dialog_element_in_catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -562,36 +562,6 @@ def test_request_details_page_tagcontrol_field(request, appliance, import_dialog
assert details_view.is_displayed


@pytest.mark.meta(coverage=[1694737])
@pytest.mark.manual
@pytest.mark.tier(2)
def test_regex_validation_should_work():
"""
Bugzilla:
1694737
Polarion:
assignee: nansari
startsin: 5.10
casecomponent: Services
initialEstimate: 1/6h
testSteps:
1. Import DataStore and Dynamic Dialog
2. Add catalog item with above dialog
3. Navigate to order page of service
4. In service Order page
5. Add values
expectedResults:
1.
2.
3.
4.
5. Regex validation should work
"""
pass


@pytest.mark.tier(2)
@pytest.mark.meta(automates=[1696474])
@pytest.mark.customer_scenario
Expand Down
45 changes: 35 additions & 10 deletions cfme/tests/services/test_dynamicdd_dialogelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,21 +462,46 @@ def test_dynamic_dropdown_values_should_load_correctly():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_child_dialog_should_update_with_new_options_based_on_option_of_parent_dialog_upon_ref():
@pytest.mark.customer_scenario
@pytest.mark.meta(automates=[1580535, 1694737])
@pytest.mark.tier(2)
@pytest.mark.parametrize("import_data", [DatastoreImport("bz_1580535.zip", "bz_1580535", None)],
ids=["datastore"])
@pytest.mark.parametrize("file_name", ["bz_1580535.yml"], ids=["refresh_dialog"])
def test_dynamic_field_update_on_refresh(appliance, import_datastore, import_data, file_name,
generic_catalog_item_with_imported_dialog):
"""
Bugzilla:
1580535
1694737
Polarion:
assignee: nansari
startsin: 5.10
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.9
tags: service
Bugzilla:
1580535
initialEstimate: 1/16h
testSteps:
1. Import Datastore and dialog
2. Add service catalog with above created dialog
3. Navigate to order page of service
4. In service Order page
expectedResults:
1.
2.
3.
4. dynamic field should update correctly
"""
pass
catalog_item, sd, ele_label = generic_catalog_item_with_imported_dialog

service_catalogs = ServiceCatalogs(appliance, catalog_item.catalog, catalog_item.name)
view = navigate_to(service_catalogs, "Order")
view.fields("Menu").refresh.click()
menu = view.fields("menu").read()
topping = view.fields("dropdown_list_1").read()

data = {"Burger": "Black Bean", "Fries": "Sweet Potato", "Shake": "Vanilla",
"Empty Set": "Nothing selected for parent dialog"}
assert topping == data[menu]


@pytest.mark.customer_scenario
Expand Down
114 changes: 0 additions & 114 deletions cfme/tests/services/test_service_catalog_dialog_manual.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,23 +142,6 @@ def test_custom_image_on_item_bundle_crud():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_catalog_item_changing_the_provider_template_after_filling_all_tabs():
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.5
tags: service
Bugzilla:
1240443
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_request_filter_on_request_page():
Expand All @@ -176,21 +159,6 @@ def test_request_filter_on_request_page():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_check_all_availability_zones_for_amazon_provider():
""" Check if all availability zones can be selected while creating catalog item.
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/8h
startsin: 5.5
tags: service
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_edit_catalog_item_after_remove_resource_pool():
Expand All @@ -217,23 +185,6 @@ def test_edit_catalog_item_after_remove_resource_pool():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_generic_object_details_displayed_from_a_service_do_not_include_associations():
"""
Polarion:
assignee: nansari
casecomponent: Automate
testtype: functional
initialEstimate: 1/4h
startsin: 5.9
tags: service
Bugzilla:
1576828
"""
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_dialog_dropdown_ui_values_in_the_dropdown_should_be_visible_in_edit_mode():
Expand Down Expand Up @@ -353,39 +304,6 @@ def test_cui_should_check_dialog_field_associations():
pass


@pytest.mark.manual
@pytest.mark.tier(3)
def test_generic_object_should_be_visible_in_service_view():
"""
Polarion:
assignee: nansari
casecomponent: Services
initialEstimate: 1/4h
testtype: functional
startsin: 5.8
tags: service
Bugzilla:
1515945
"""
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_reconfigure_service_for_dialogs_with_timeout_values():
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.7
Bugzilla:
1442920
"""
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_timepicker_should_pass_correct_timing_on_service_order():
Expand All @@ -401,23 +319,6 @@ def test_timepicker_should_pass_correct_timing_on_service_order():
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_should_be_able_to_see_requests_if_our_users_are_in_groups_with_managed_tags():
"""
Polarion:
assignee: nansari
casecomponent: Services
initialEstimate: 1/4h
testtype: functional
startsin: 5.9
tags: service
Bugzilla:
1596738
"""
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_user_should_be_able_to_change_the_order_of_values_of_the_drop_down_list():
Expand Down Expand Up @@ -467,18 +368,3 @@ def test_entries_shouldnt_be_mislabeled_for_dropdown_element_in_dialog_editor():
1597802
"""
pass


@pytest.mark.manual
@pytest.mark.tier(2)
def test_reconfigure_existing_duplicate_orders():
"""
Polarion:
assignee: nansari
casecomponent: Services
testtype: functional
initialEstimate: 1/4h
startsin: 5.9
tags: service
"""
pass

0 comments on commit 184e5b2

Please sign in to comment.