Exemple #1
0
    def pre_install(self,
                    execution_config_path,
                    global_config,
                    dut_config,
                    sysdebug_apis=None):
        """
        Pre installation actions

        :type execution_config_path: str
        :param execution_config_path: The path of the configuration of ACS

        :type global_config: Dictionnary
        :param global_config: Global configuration of ACS

        :type dut_config: Dictionnary
        :param dut_config: The configuration of the DUT
        """
        IApplication.pre_install(self, execution_config_path, global_config,
                                 dut_config, sysdebug_apis)

        self._wait_btwn_cmd = float(dut_config.get("waitBetweenCmd"))

        if self._parameters.get("wifi_connect", True):
            self._wifi_router = global_config.benchConfig.get_parameters(
                "WPA_WIFI_ROUTER")
            self._ssid = self._wifi_router.get_param_value("SSID")
            self._passphrase = self._wifi_router.get_param_value("passphrase")
            self._security = self._wifi_router.get_param_value("WIFI_SECURITY")

            self._phonesystem.display_on()
            self.__wifi_enable()
            self.__wifi_connection()
            self._phonesystem.display_off()
Exemple #2
0
    def pre_install(self,
                    execution_config_path,
                    global_config,
                    dut_config,
                    sysdebug_apis=None):
        """
        Pre installation actions

        :type execution_config_path: str
        :param execution_config_path: The path of the configuration of ACS

        :type global_config: Dictionnary
        :param global_config: Global configuration of AC

        :type dut_config: Dictionnary
        :param dut_config: The configuration of the DUT
        """
        IApplication.pre_install(self, execution_config_path, global_config,
                                 dut_config, sysdebug_apis)
        self._wait_btwn_cmd = float(dut_config.get("waitBetweenCmd"))