Exemplo n.º 1
0
class AutomateImportExportView(AutomateImportExportBaseView):
    class import_file(View):    # noqa
        file = FileInput(name='upload_file')
        upload = Button('Upload')

    class import_git(View):     # noqa
        ROOT = './/form[@id="retrieve-git-datastore-form"]'

        url = Input(name='git_url')
        username = Input(name='git_username')
        password = Input(name='git_password')
        verify_ssl = Checkbox(name='git_verify_ssl')
        submit = Button(id='git-url-import')

    export_all = VersionPick({
        Version.lowest(): Image('.//input[@title="Export all classes and instances"]'),
        '5.10': Button(title='Export all classes and instances')
    })
    reset_all = VersionPick({
        Version.lowest(): Image(
            './/img[starts-with(@alt, "Reset all components in the following domains:")]'),
        '5.10': Button(title='Reset all components in the following domains:')
    })

    @property
    def is_displayed(self):
        return self.in_import_export and self.export_all.is_displayed
Exemplo n.º 2
0
class ElementForm(AddBoxView):
    ele_label = Input(name='field_label')
    ele_name = Input(name="field_name")
    ele_desc = Input(name="field_description")
    choose_type = BootstrapSelect('field_typ')
    default_text_box = Input(name='field_default_value')
    default_value = Checkbox(name='field_default_value')
    field_required = Checkbox(name='field_required')
    field_past_dates = Checkbox(name='field_past_dates')
    field_entry_point = Input(name='field_entry_point')
    field_show_refresh_button = Checkbox(name='field_show_refresh_button')
    entry_value = Input(name='entry[value]')
    entry_description = Input(name='entry[description]')
    add_entry_button = Image('.//input[@id="accept"]')
    field_category = BootstrapSelect('field_category')
    text_area = Input(name='field_default_value')
    dynamic_chkbox = Checkbox(name='field_dynamic')
    entry_table = Table('//div[@id="field_values_div"]/form/table')
    text_area = TextInput(id='field_default_value')

    element_tree = ManageIQTree('dialog_edit_treebox')
    dynamic_tree = ManageIQTree('automate_treebox')
    bt_tree = ManageIQTree('automate_treebox')

    apply_btn = Button('Apply')
Exemplo n.º 3
0
 class form(View):  # noqa
     retirement_date = Calendar(name='retirementDate')
     remove_date = Image(locator='.//div[@id="retirement_date_div"]//a/img[@alt="Set to blank"]')
     retirement_warning = BootstrapSelect(id='retirementWarning')
     entities = View.nested(BaseNonInteractiveEntitiesView)
     save = Button('Save')
     cancel = Button('Cancel')
Exemplo n.º 4
0
 class scripting(View):  # noqa
     TEXT = 'Scripting Actions Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 5
0
 class automation(View):  # noqa
     TEXT = 'Methods For Automation Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 6
0
 class inventory(View):  # noqa
     TEXT = 'Infrastructure Inventory Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 7
0
 class general(View):  # noqa
     TEXT = 'General Configuration Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 8
0
 class vm_hosts(View):  # noqa
     TEXT = 'Virtual Machines Hosts Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 9
0
 class policies(View):  # noqa
     TEXT = 'Defining Policies Profiles Guide'
     img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
     link = VersionPick({
         Version.lowest():
         Text('//a[normalize-space(.)="{}"]'.format(TEXT)),
         '5.9':
         img_anchor
     })
Exemplo n.º 10
0
 class scripting(View):  # noqa
     TEXT = 'Scripting Actions Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 11
0
 class rest(View):  # noqa
     TEXT = 'Rest Api Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 12
0
 class providers(View):  # noqa
     TEXT = 'Providers Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 13
0
 class scripting(View):  # noqa
     TEXT = 'Scripting Actions Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 14
0
 class providers(View):  # noqa
     TEXT = 'Providers Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 15
0
 class automation(View):  # noqa
     TEXT = 'Methods For Automation Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 16
0
 class general(View):  # noqa
     TEXT = 'General Configuration Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 17
0
 class vm_hosts(View):  # noqa
     TEXT = 'Virtual Machines Hosts Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 18
0
 class policies(View):  # noqa
     TEXT = 'Defining Policies Profiles Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 19
0
 class policies(View):  # noqa
     TEXT = 'Defining Policies Profiles Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 20
0
 class inventory(View):  # noqa
     TEXT = 'Infrastructure Inventory Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 21
0
 class general(View):  # noqa
     TEXT = 'General Configuration Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 22
0
 class monitoring(View):  # noqa
     TEXT = 'Monitoring Alerts Reporting Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 23
0
 class inventory(View):  # noqa
     TEXT = 'Infrastructure Inventory Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 24
0
 class rest(View):  # noqa
     TEXT = 'Rest Api Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 25
0
 class automation(View):  # noqa
     TEXT = 'Methods For Automation Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))
Exemplo n.º 26
0
 class vm_instances(View):  # noqa
     # TODO: title must be changed once BZ 1723813 is resolved.
     TEXT = 'Virtual Machines Hosts Guide'
     link = img_anchor = Text(f'//a[@title="View the {TEXT}"]')
     img = Image(locator=f'//img[@alt="View the {TEXT}"]')
Exemplo n.º 27
0
 class monitoring(View):  # noqa
     TEXT = 'Monitoring Alerts Reporting Guide'
     link = img_anchor = Text('//a[@title="View the {}"]'.format(TEXT))
     img = Image(locator='//img[@alt="View the {}"]'.format(TEXT))