Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to create a new Session after upgrading to java-client 5.0.0-BETA5 #605

Closed
poorvikamahesh opened this issue Mar 17, 2017 · 2 comments

Comments

@poorvikamahesh
Copy link

poorvikamahesh commented Mar 17, 2017

Hello,

I just upgraded the java-client to 5.0.0-BETA5. Now I am unable to launch the app and get the below error -

[Appium] Welcome to Appium v1.6.4-beta
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {"desiredCapabilities":{"app":"/Users/Desktop/xxx.ipa","newCommandTimeout":300,"platformVersion":"10.2.1","xcodeOrgId":"QWERTY","automationName":"XCUITest","bundleId":"com.xxx.xxx","platformName":"iOS","udid":"XXXXXXXXXXX","deviceName":"iPad","fullReset":true,"xcodeSigningId":"XXXX"},"requiredCapabilities":{},"capabilities":{"desiredCapabilities":{"app":"/Users/Desktop/xxx.ipa","newCommandTimeout":300,"platformVersion":"10.2.1","xcodeOrgId":"QWERTY","automationName":"XCUITest","bundleId":"com.xxx.xxx","platformName":"iOS","udid":"XXXXXXXXXXX","deviceName":"iPad","fullReset":true,"xcodeSigningId":"XXXX"},"requiredCapabilities":{}},"alwaysMatch":{"app":"/Users/poorvikamahesh/Desktop/Vinodh/DreamMapper_automation_March_3rd.ipa","newCommandTimeout":300,"
[MJSONWP] Bad parameters: BadParametersError: Parameters were incorrect. We wanted {"required":["desiredCapabilities"],"optional":["requiredCapabilities","capabilities","sessionId","id"]} and you sent ["desiredCapabilities","requiredCapabilities","capabilities","alwaysMatch","firstMatch"]
[HTTP] <-- POST /wd/hub/session 400 9 ms - 243 


My desired capabilities is as below


DesiredCapabilities capabilities = new DesiredCapabilities();

			capabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "XCUITest");
			capabilities.setCapability(MobileCapabilityType.NEW_COMMAND_TIMEOUT, 300 );
			capabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "abc");
			capabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "iOS");
			capabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "10.2.1");
			capabilities.setCapability(MobileCapabilityType.APP, "/path/to/app");
			capabilities.setCapability("bundleId", "com.xxx.xxx");
			capabilities.setCapability(MobileCapabilityType.UDID, "xxxxxxxx");
			capabilities.setCapability(MobileCapabilityType.FULL_RESET, true);
			capabilities.setCapability("xcodeOrgId", "xxxxx");
			capabilities.setCapability("xcodeSigningId", "xxxxx");
sAppiumDriver = new IOSDriver(new URL("http://localhost:4723/wd/hub"), capabilities);

Kindly help.

Thanks and Regards,
Poorvika

@Brian-Watson
Copy link

There's a known issue with BETA5 that is being worked on that will cause this. For now, you'll likely want to go back to BETA4. See...

#594

@SrinivasanTarget
Copy link
Member

Yes we are tracking it there. Fix is here Will be resolved by this weekend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants