Appium拒绝连接-Saucelabs

时间:2019-06-24 10:48:57

标签: selenium-webdriver appium saucelabs

在酱料实验室上运行appium脚本时,一段时间后自动出现异常:-Appium连接被拒绝。

这是我的DesiredCapabilities:-

DesiredCapabilities caps=new DesiredCapabilities();
        caps.setCapability(MobileCapabilityType.PLATFORM_NAME, "Android");
        caps.setCapability(MobileCapabilityType.DEVICE_NAME, "XXXXX");
        caps.setCapability("deviceOrientation","portrait");
        caps.setCapability("appiumVersion", "1.10.1");
        caps.setCapability("browserName", "");
        caps.setCapability("newCommandTimeout", 30000);

        caps.setCapability("app", "XXXXXXXXX.apk");
        caps.setCapability("appPackage", "XXXXXXXXXX");
        caps.setCapability("testobject_api_key", "D8C2XX3B1XXXXXXXXX");
        caps.setCapability("testobject_session_creation_timeout", "900000");
        caps.setCapability("testobject_app_id ", "2");
        caps.setCapability("testobject_suite_name", "Default Appium Suite");
        caps.setCapability("testobject_test_name", "Default Appium Test");
        caps.setCapability("appActivity", "in.test.XXXXX.appmodule.XXXXXXXX");

运行脚本后,appium抛出连接被拒绝。 有什么问题吗? 在此先感谢!

0 个答案:

没有答案