예제 #1
0
파일: ssui.py 프로젝트: nachandr/cfme_tests
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.title.text
                in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = Kebab(
        locator='.//div[contains(@class, "dropdown-kebab-pf") and ./button][1]'
    )
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console",
                            classes=['open-console-button'])
    retirement_state = TextInput(
        locator=".//label[text()='Retirement State']/parent::div/div/input")
    resource_power_status = PowerIcon(
        ".//span/i[contains(@class, 'pficon') and contains("
        "@uib-tooltip,'Power State')]")
    standard_output = Text('.//div[@class="well"]')
예제 #2
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.title.text
                in {self.context['object'].name, 'Service Details'})

    configuration = SSUIDropdown('Configuration')
    policy_btn = SSUIDropdown('Policy')
    lifecycle_btn = SSUIDropdown('Lifecycle')
    power_operations = SSUIDropdown('Power Operations')
    access_dropdown = SSUIAppendToBodyDropdown('Access')
예제 #3
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and
                self.title.text in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = SSUIDropdown('Power Operations')
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console", classes=['open-console-button'])
예제 #4
0
class DetailsMyServiceView(MyServicesView):
    title = Text(locator='//li[@class="active"]')

    @property
    def is_displayed(self):
        return (self.in_myservices and self.title.text
                in {self.context['object'].name, 'Service Details'})

    notification = Notification()
    policy = SSUIDropdown('Policy')
    power_operations = VersionPicker({
        LATEST: SSUIDropdown("Power Operations"),
        "5.10": Kebab()
    })
    access_dropdown = SSUIAppendToBodyDropdown('Access')
    remove_service = Button("Remove Service")
    configuration = SSUIDropdown('Configuration')
    lifecycle = SSUIDropdown('Lifecycle')
    console_button = Button(tooltip="HTML5 console",
                            classes=['open-console-button'])
    resource_power_status = PowerIcon(
        ".//span/i[contains(@class, 'pficon') and contains("
        "@uib-tooltip,'Power State')]")