Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Can't get test connecting to local appium server #4054

Closed Answered by alaz-aura
alaz-aura asked this question in Q&A
Discussion options

conf.codecept.js

helpers: {
 Appium: {
 appiumv2: true,
 app: 'path/to/ipa',
 platformName: 'iOS',
 deviceName: 'iPhone 14',
 udid: 'EFD167BF-800F-4CE7-B88F-808AE1B56D98',
 automationName: 'XCUITest',
 hostname: '0.0.0.0',
 port: 4723,
 path: "/wd/hub"
 }

test output:

2023年12月05日T04:48:10.502Z ERROR webdriver: Request failed with status 404 due to unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
2023年12月05日T04:48:10.503Z ERROR webdriver: unknown command: The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
Error: Can't connect to WebDriver.
Error: Failed to create session.
The requested resource could not be found, or a request was received using an HTTP method that is not supported by the mapped resource
Please make sure Selenium Server is running and accessible

Running in circles here for something so basic. Any help would be appreciated, thanks.

You must be logged in to vote

Resolved this by finally narrowing down my issue. Below is a working appium helper config:

Before

 Appium: {
 appiumv2: true,
 "appium:deviceName": "iPhone 14",
 "appium:automationName": "xcuitest",
 "appium:bundleId": "appBundleIdHere",
 "appium:platformName": "iOS",
 hostname: '127.0.0.1',
 port: 4723,
 path: "/"
 },
 },

Working helper config:

Appium: {
 "platform": "iOS",
 "desiredCapabilities": {
 "appium:udid": "EFD167BF-800F-4CE7-B88F-808AE1B56D98",
 "appium:bundleId": "com.thisisaura.auraPlatform",
 "appium:automationName": "xcuitest",
 },
 host: "127.0.0.1",
 port: 4723,
 path: "/",
...

Replies: 2 comments

Comment options

So some progress has been made.

using appium desktop inspector I can succesfully launch a session with an app using the following:

{
 "appium:deviceName": "iPhone 14",
 "appium:automationName": "xcuitest",
 "appium:bundleId": "appBundleIdHere",
 "appium:platformName": "iOS"
}

However, I cannot replicate this successfully in codeceptjs. Here is my latest config:

helpers: {
 Appium: {
 appiumv2: true,
 "appium:deviceName": "iPhone 14",
 "appium:automationName": "xcuitest",
 "appium:bundleId": "appBundleIdHere",
 "appium:platformName": "iOS",
 hostname: '127.0.0.1',
 port: 4723,
 path: "/"
 },
 },

error:

Could not load helper Appium from module './helper/Appium':
 Appium requires either platform and app or a browser to be set.
 Check your codeceptjs config file to ensure these are set properly
 {
 "helpers": {
 "Appium": {
 "app": "/path/to/app/package"
 "platform": "MOBILE_OS",
 }
 }
 }
Error:
 Appium requires either platform and app or a browser to be set.
 Check your codeceptjs config file to ensure these are set properly
 {
 "helpers": {
 "Appium": {
 "app": "/path/to/app/package"
 "platform": "MOBILE_OS",
 }
 }
 }
You must be logged in to vote
0 replies
Comment options

Resolved this by finally narrowing down my issue. Below is a working appium helper config:

Before

 Appium: {
 appiumv2: true,
 "appium:deviceName": "iPhone 14",
 "appium:automationName": "xcuitest",
 "appium:bundleId": "appBundleIdHere",
 "appium:platformName": "iOS",
 hostname: '127.0.0.1',
 port: 4723,
 path: "/"
 },
 },

Working helper config:

Appium: {
 "platform": "iOS",
 "desiredCapabilities": {
 "appium:udid": "EFD167BF-800F-4CE7-B88F-808AE1B56D98",
 "appium:bundleId": "com.thisisaura.auraPlatform",
 "appium:automationName": "xcuitest",
 },
 host: "127.0.0.1",
 port: 4723,
 path: "/",
 }
You must be logged in to vote
0 replies
Answer selected by alaz-aura
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /