Beispiel #1
0
    def location_information(self, required_only=False):
        """
        Fill in the fields of "Location information" area.

        This method is responsible for filling in all the fields in the "Location information" area from the
        "https://testvm.agora.grnet.gr/ui/providers/create" page.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.LOI.1 - Street Name and Number
        input_field(self.driver,
                    self.fields_prefix + "loi_1_street_name_and_number",
                    "Λεωφ. Κηφισίας 7")
        # *.LOI.2 - Postal Code
        input_field(self.driver, self.fields_prefix + "loi_2_postal_code",
                    "115 23")
        # *.LOI.3 - City
        input_field(self.driver, self.fields_prefix + "loi_3_city", "Αθήνα")
        # *.LOI.5 - Country or Territory
        suggestion_input_field(
            self.driver, self.fields_prefix + "loi_5_country_or_territory",
            "Greece")

        if not required_only:
            # *.LOI.4 - Region
            input_field(self.driver, self.fields_prefix + "loi_4_region",
                        "Αττική")
Beispiel #2
0
    def maturity_information(self):
        """
        Fill in the fields of "Maturity Information" area.

        @return: True if all goes well otherwise False.
        """
        # *.ERP.MTI.1 - Technology Readinness Level
        suggestion_input_field(
            self.driver,
            self.fields_prefix + "mti_1_technology_readiness_level", "TRL1")
        # *.MTI.2 - Life Cycle Status
        suggestion_input_field(self.driver,
                               self.fields_prefix + "mti_2_life_cycle_status",
                               "Design")
        # *.MTI.3 - Certifications
        input_field(self.driver, self.fields_prefix + "mti_3_certifications",
                    "* Cert 1.\n* Cert 2.")
        # *.MTI.4 - Standards
        input_field(self.driver, self.fields_prefix + "mti_4_standards",
                    "Standard 1.")
        # *.MTI.5 - Open Source Technologies
        input_field(self.driver,
                    self.fields_prefix + "mti_5_open_source_technologies",
                    "* UNIX\n* GNU/Linux.")
        # *.ERP.MTI.6 - Version
        input_field(self.driver, self.fields_prefix + "mti_6_version", "v0.3")
        # *.ERP.MTI.7 - Last Update
        date_field(self.driver, self.fields_prefix + "mti_7_last_update")
        # *.MTI.8 - Changelog
        input_field(
            self.driver, self.fields_prefix + "mti_8_changelog",
            "Selenium 3.141.0 \n"
            "https://github.com/SeleniumHQ/selenium/releases/tag"
            "/selenium-3.141.0")
Beispiel #3
0
    def basic_information(self, required_only=False):
        """
        Fill in the fields of "Basic information" area.

        This method is responsible for filling in all the fields in the "Basic information" area from the
        "https://testvm.agora.grnet.gr/ui/providers/create" page.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.BAI.0 - ID
        input_field(self.driver, self.fields_prefix + "bai_0_id",
                    "selenium-PROVIDER")
        # *.BAI.1 - Name
        input_field(self.driver, self.fields_prefix + "bai_1_name",
                    "SeleniumHQ Browser Automation - PROVIDER")
        # *.BAI.2 - Abbreviation
        input_field(self.driver, self.fields_prefix + "bai_2_abbreviation",
                    "SeleniumHQ-PROVIDER")

        if not required_only:
            # *.BAI.3 - Website
            input_field(self.driver, self.fields_prefix + "bai_3_website",
                        "https://www.selenium.dev")
            # *.BAI.4 - Legal Entity
            checkbox_field(self.driver,
                           self.fields_prefix + "bai_4_legal_entity")
            # *.BAI.5 - Legal Status
            suggestion_input_field(self.driver,
                                   self.fields_prefix + "bai_5_legal_status",
                                   "Foundation")
Beispiel #4
0
    def basic_information(self, required_only=False):
        """
        Fill in the fields of "Basic information" area.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.BAI.0 - ID
        input_field(self.driver, self.fields_prefix + "bai_0_id",
                    "selenium-RESOURCE")
        # *.BAI.1 - Name
        input_field(self.driver, self.fields_prefix + "bai_1_name",
                    "SeleniumHQ Browser Automation - RESOURCE")
        # *.BAI.2 - Service Organisation
        suggestion_input_field(
            self.driver, self.fields_prefix + "bai_2_service_organisation",
            "National Infrastructures for Research and Technology")

        if not required_only:
            # *.BAI.3 - Service Providers
            table_select_field(self.driver,
                               self.fields_prefix + "bai_3_service_providers",
                               1)
            # *.BAI.4 - Webpage
            input_field(self.driver, self.fields_prefix + "bai_4_webpage",
                        "https://www.selenium.dev")
Beispiel #5
0
    def resource_location_information(self):
        """
        Fill in the fields of "Resource Location Information" area.

        @return: True if all goes well otherwise False.
        """
        # *.RLI.1 - Resource Geographic Location
        suggestion_input_field(self.driver, self.fields_prefix + "rli_1_geographic_location", "Greece")
Beispiel #6
0
    def access_and_order_information(self):
        """
        Fill in the fields of "Access and Order Information" area.

        @return: True if all goes well otherwise False.
        """
        # *.AOI.1 - Order Type
        suggestion_input_field(self.driver, self.fields_prefix + "aoi_1_order_type", "Fully open access")
        # *.AOI.2 - Order
        input_field(self.driver, self.fields_prefix + "aoi_2_order", "https://www.selenium.dev/order")
Beispiel #7
0
    def geographical_and_language_availability_information(self, required_only=False):
        """
        Fill in the fields of "Geographical and Language Availability Information" area.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.GLA.1 - Geographical Availability
        suggestion_input_field(self.driver, self.fields_prefix + "gla_1_geographical_availability", "Greece")
        # *.GLA.2 - Language
        suggestion_input_field(self.driver, self.fields_prefix + "gla_2_language", "el")
Beispiel #8
0
    def other_information(self, required_only=False):
        """
        Fill in the fields of "Other Information" area.

        This method is responsible for filling in all the fields in the "Other Information" area from the
        "https://testvm.agora.grnet.gr/ui/providers/create" page.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.OTH.1 - Hosting Legal Entity
        input_field(self.driver,
                    self.fields_prefix + "oth_1_hosting_legal_entity",
                    "Something")
        # *.OTH.2 - Participating Countries
        suggestion_input_field(
            self.driver, self.fields_prefix + "oth_2_participating_countries",
            "Greece")
        # *.OTH.3 - Affiliations
        table_select_field(self.driver,
                           self.fields_prefix + "oth_3_affiliations", 5)
        # *.OTH.4 - Networks
        table_select_field(self.driver, self.fields_prefix + "oth_4_networks",
                           25)
        # *.OTH.5 - Structure Type
        table_select_field(self.driver,
                           self.fields_prefix + "oth_5_structure_type", 1)
        # *.OTH.6 - ESFRI Domain
        table_select_field(self.driver,
                           self.fields_prefix + "oth_6_esfri_domain", 3)
        # *.OTH.7 - ESFRI Type
        suggestion_input_field(self.driver,
                               self.fields_prefix + "oth_7_esfri_type",
                               "Not an ESFRI project or landmark")
        # *.OTH.8 - MERIL Scientific Domain
        table_select_field(
            self.driver, self.fields_prefix + "oth_8_meril_scientific_domain",
            1)
        # *.OTH.9 - MERIL Scientific Subdomain
        table_select_field(
            self.driver,
            self.fields_prefix + "oth_9_meril_scientific_subdomain", 5)
        # *.OTH.10 - Areas of activity
        table_select_field(self.driver,
                           self.fields_prefix + "oth_10_areas_of_activity", 2)
        # *.OTH.11 - Societal Grand challenges
        table_select_field(
            self.driver,
            self.fields_prefix + "oth_11_societal_grand_challenges", 5)
        # *.OTH.12 - National Roadmaps
        input_field(self.driver,
                    self.fields_prefix + "oth_12_national_roadmaps",
                    "SELENIUM")
Beispiel #9
0
    def contact_information(self, required_only=False):
        """
        Fill in the fields of "Contact Information" area.

        This method is responsible for filling in all the fields in the "Contact Information" area from the
        "https://testvm.agora.grnet.gr/ui/providers/create" page.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # Main Contact/Resource Owner
        suggestion_input_field(self.driver, "main_contact", "Django EmberJS")
        # Public Contact
        suggestion_input_field(self.driver, "public_contact", "Django EmberJS")
Beispiel #10
0
    def contact_information(self, required_only=False):
        """
        Fill in the fields of "Contact Information" area.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # Main Contact/Service Owner.
        suggestion_input_field(self.driver, "main_contact", "Owen Appleton")
        # Public Contact
        suggestion_input_field(self.driver, "public_contact", "Public Contact (EGI Foundation)")
        # *.COI.13 - Helpdesk Email
        input_field(self.driver, self.fields_prefix + "coi_13_helpdesk_email", "*****@*****.**")
        # *.COI.14 - Security Contact Email
        input_field(self.driver, self.fields_prefix + "coi_14_security_contact_email", "*****@*****.**")
Beispiel #11
0
    def maturity_information(self, required_only=False):
        """
        Fill in the fields of "Maturity Information" area.

        This method is responsible for filling in all the fields in the "Maturity Information" area from the
        "https://testvm.agora.grnet.gr/ui/providers/create" page.

        @param required_only: Fill in only the required fields or not?
        @return: True if all goes well otherwise False.
        """
        # *.MTI.1 - Life Cycle Status
        suggestion_input_field(self.driver,
                               self.fields_prefix + "mti_1_life_cycle_status",
                               "Other")

        # *.MTI.2 - Certifications
        input_field(self.driver, self.fields_prefix + "mti_2_certifications",
                    "ISO-1234")
Beispiel #12
0
    def basic_information(self):
        """
        Fill in the fields of "Basic information" area.

        In this form, all fields are required.
        @return: True if all goes well otherwise False.
        """
        # First Name
        input_field(self.driver, "first_name", "selenium - First Name")
        # Last Name
        input_field(self.driver, "last_name", "selenium - Last Name")
        # Email
        input_field(self.driver, "email", "*****@*****.**")
        # Phone
        input_field(self.driver, "phone", "0123456789")
        # Position
        input_field(self.driver, "position", "Automatic UI tests")
        # Provider
        suggestion_input_field(self.driver, "organisation", "EGI Foundation")