Example #1
0
    def install_required_tools(self):
        tools = [TclLibrary(self.log)]
        self.node_tool = Node(self.log)
        self.npm_tool = NPM(self.log)
        self.mocha_tool = Mocha(self.tools_dir, self.node_tool, self.npm_tool, self.log)
        tools.append(self.node_tool)
        tools.append(self.npm_tool)
        tools.append(self.mocha_tool)
        tools.append(JSSeleniumWebdriverPackage(self.tools_dir, self.node_tool, self.npm_tool, self.log))
        tools.append(TaurusMochaPlugin(self.plugin_path, ""))

        self._check_tools(tools)
Example #2
0
    def install_required_tools(self):
        tools = []
        tools.append(TclLibrary(self.log))
        self.node_tool = Node(self.log)
        self.npm_tool = NPM(self.log)
        self.newman_tool = Newman(self.tools_dir, self.node_tool, self.npm_tool, self.log)
        tools.append(self.node_tool)
        tools.append(self.npm_tool)
        tools.append(self.newman_tool)
        tools.append(TaurusNewmanPlugin(self.plugin_path, ""))

        self._check_tools(tools)
Example #3
0
    def prepare(self):
        self.startup_timeout = self.settings.get('timeout', 30)
        self.addr = self.settings.get('addr', '127.0.0.1')
        self.port = self.settings.get('port', 4723)
        self.tool_path = self.settings.get('path', 'appium')

        required_tools = [Node(self.log),
                          JavaVM(self.log),
                          Appium(self.tool_path, "", self.log)]

        for tool in required_tools:
            if not tool.check_if_installed():
                tool.install()
Example #4
0
    def install_required_tools(self):
        tools = []
        tools.append(TclLibrary(self.log))
        self.node_tool = Node(self.log)
        self.npm_tool = NPM(self.log)
        self.wdio_tool = WDIO(self.tools_dir, self.node_tool, self.npm_tool, self.log)
        tools.append(self.node_tool)
        tools.append(self.npm_tool)
        tools.append(self.wdio_tool)
        tools.append(TaurusWDIOPlugin(self.plugin_path, ""))
        tools.append(WDIOMochaPlugin(self.tools_dir, self.node_tool, self.npm_tool, self.log))

        self._check_tools(tools)
Example #5
0
    def install_required_tools(self):
        self.node_tool = Node(self.log)
        self.npm_tool = NPM(self.log)
        self.newman_tool = Newman(self.tools_dir, self.node_tool,
                                  self.npm_tool, self.log)

        tools = [
            self.node_tool, self.npm_tool, self.newman_tool,
            TclLibrary(self.log),
            TaurusNewmanPlugin(self.plugin_path, "")
        ]

        self._check_tools(tools)
Example #6
0
 def install_required_tools(self):
     node = Node(env=self.env, log=self.log)
     npm = NPM(env=self.env, log=self.log)
     self.appium_python = AppiumPython(engine=self.engine,
                                       settings=self.settings,
                                       log=self.log)
     self.appium_server = AppiumServer(path=self.tool_path,
                                       def_path=self.default_path,
                                       tools_dir=self.tools_dir,
                                       node_tool=node,
                                       npm_tool=npm)
     required_tools = [
         node, npm,
         JavaVM(log=self.log), self.appium_python, self.appium_server
     ]
     for tool in required_tools:
         if not tool.check_if_installed():
             tool.install()