Running Appium server programmatically
Hi Has anyone experienced this issue before? I wasn't able to start the server programmatically SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. usage: C:\Users\Kenne\AppData\Roaming\npm\node_modules\appium\build\lib\main.js [-h] [--shell] [--allow-cors] [--reboot] [--ipa IPA] [-a ADDRESS] [-p PORT] [-pa BASEPATH] [-ka KEEPALIVETIMEOUT] [-ca CALLBACKADDRESS] [-cp CALLBACKPORT] [-bp BOOTSTRAPPORT] [-r BACKENDRETRIES] [--session-override] [-l] [-g LOGFILE] [--log-level {info,info:debug,info:info,info:warn,info:error,warn,warn:debug,warn:info,warn:warn,warn:error,error,error:debug,error:info,error:warn,error:error,debug,debug:debug,debug:info,debug:warn,debug:error}] [--log-timestamp] [--local-timezone] [--log-no-colors] [-G WEBHOOK] [--safari] [--default-device] [--force-iphone] [--force-ipad] [--tracetemplate AUTOMATIONTRACETEMPLATEPATH] [--instruments INSTRUMENTSPATH] [--nodeconfig NODECONFIG] [-ra ROBOTADDRESS] [-rp ROBOTPORT] [--chromedriver-executable CHROMEDRIVEREXECUTABLE] [--show-config] [--no-perms-check] [--strict-caps] [--isolate-sim-device] [--tmp TMPDIR] [--trace-dir TRACEDIR] [--debug-log-spacing] [--suppress-adb-kill-server] [--long-stacktrace] [--webkit-debug-proxy-port WEBKITDEBUGPROXYPORT] [--webdriveragent-port WDALOCALPORT] [-dc DEFAULTCAPABILITIES] [--relaxed-security] [--allow-insecure ALLOWINSECURE] [--deny-insecure DENYINSECURE] [--command-timeout DEFAULTCOMMANDTIMEOUT] [-k] [--platform-name PLATFORMNAME] [--platform-version PLATFORMVERSION] [--automation-name AUTOMATIONNAME] [--device-name DEVICENAME] [--browser-name BROWSERNAME] [--app APP] [-lt LAUNCHTIMEOUT] [--language LANGUAGE] [--locale LOCALE] [-U UDID] [--orientation ORIENTATION] [--no-reset] [--full-reset] [--app-pkg APPPACKAGE] [--app-activity APPACTIVITY] [--app-wait-package APPWAITPACKAGE] [--app-wait-activity APPWAITACTIVITY] [--device-ready-timeout DEVICEREADYTIMEOUT] [--android-coverage ANDROIDCOVERAGE] [--avd AVD] [--avd-args AVDARGS] [--use-keystore] [--keystore-path KEYSTOREPATH] [--keystore-password KEYSTOREPASSWORD] [--key-alias KEYALIAS] [--key-password KEYPASSWORD] [--intent-action INTENTACTION] [--intent-category INTENTCATEGORY] [--intent-flags INTENTFLAGS] [--intent-args OPTIONALINTENTARGUMENTS] [--dont-stop-app-on-reset] [--calendar-format CALENDARFORMAT] [--native-instruments-lib] [--keep-keychains] [--localizable-strings-dir LOCALIZABLESTRINGSDIR] [--show-ios-log] [--async-trace] [--chromedriver-port CHROMEDRIVERPORT] [--log-filters LOGFILTERS] [-v] C:\Users\Kenne\AppData\Roaming\npm\node_modules\appium\build\lib\main.js: error: argument -dc/--default-capabilities: invalid parseDefaultCaps value: '{app:C:\\\\users\\\\kenne\\\\mkmt.apk,deviceName:BV9900EQEEA003536,platformName:Android,platformVersion:10,udid:BV9900EQEEA003536}'
ReplySLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder". SLF4J: Defaulting to no-operation (NOP) logger implementation SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details. usage: C:\Users\Kenne\AppData\Roaming\npm\node_modules\appium\build\lib\main.js [-h] [--shell] [--allow-cors] [--reboot] [--ipa IPA] [-a ADDRESS] [-p PORT] [-pa BASEPATH] [-ka KEEPALIVETIMEOUT] [-ca CALLBACKADDRESS] [-cp CALLBACKPORT] [-bp BOOTSTRAPPORT] [-r BACKENDRETRIES] [--session-override] [-l] [-g LOGFILE] [--log-level {info,info:debug,info:info,info:warn,info:error,warn,warn:debug,warn:info,warn:warn,warn:error,error,error:debug,error:info,error:warn,error:error,debug,debug:debug,debug:info,debug:warn,debug:error}] [--log-timestamp] [--local-timezone] [--log-no-colors] [-G WEBHOOK] [--safari] [--default-device] [--force-iphone] [--force-ipad] [--tracetemplate AUTOMATIONTRACETEMPLATEPATH] [--instruments INSTRUMENTSPATH] [--nodeconfig NODECONFIG] [-ra ROBOTADDRESS] [-rp ROBOTPORT] [--chromedriver-executable CHROMEDRIVEREXECUTABLE] [--show-config] [--no-perms-check] [--strict-caps] [--isolate-sim-device] [--tmp TMPDIR] [--trace-dir TRACEDIR] [--debug-log-spacing] [--suppress-adb-kill-server] [--long-stacktrace] [--webkit-debug-proxy-port WEBKITDEBUGPROXYPORT] [--webdriveragent-port WDALOCALPORT] [-dc DEFAULTCAPABILITIES] [--relaxed-security] [--allow-insecure ALLOWINSECURE] [--deny-insecure DENYINSECURE] [--command-timeout DEFAULTCOMMANDTIMEOUT] [-k] [--platform-name PLATFORMNAME] [--platform-version PLATFORMVERSION] [--automation-name AUTOMATIONNAME] [--device-name DEVICENAME] [--browser-name BROWSERNAME] [--app APP] [-lt LAUNCHTIMEOUT] [--language LANGUAGE] [--locale LOCALE] [-U UDID] [--orientation ORIENTATION] [--no-reset] [--full-reset] [--app-pkg APPPACKAGE] [--app-activity APPACTIVITY] [--app-wait-package APPWAITPACKAGE] [--app-wait-activity APPWAITACTIVITY] [--device-ready-timeout DEVICEREADYTIMEOUT] [--android-coverage ANDROIDCOVERAGE] [--avd AVD] [--avd-args AVDARGS] [--use-keystore] [--keystore-path KEYSTOREPATH] [--keystore-password KEYSTOREPASSWORD] [--key-alias KEYALIAS] [--key-password KEYPASSWORD] [--intent-action INTENTACTION] [--intent-category INTENTCATEGORY] [--intent-flags INTENTFLAGS] [--intent-args OPTIONALINTENTARGUMENTS] [--dont-stop-app-on-reset] [--calendar-format CALENDARFORMAT] [--native-instruments-lib] [--keep-keychains] [--localizable-strings-dir LOCALIZABLESTRINGSDIR] [--show-ios-log] [--async-trace] [--chromedriver-port CHROMEDRIVERPORT] [--log-filters LOGFILTERS] [-v] C:\Users\Kenne\AppData\Roaming\npm\node_modules\appium\build\lib\main.js: error: argument -dc/--default-capabilities: invalid parseDefaultCaps value: '{app:C:\\\\users\\\\kenne\\\\mkmt.apk,deviceName:BV9900EQEEA003536,platformName:Android,platformVersion:10,udid:BV9900EQEEA003536}' Hi has anyone experienced this before? How did you resolve it?
ReplyI am not able to start server programmatically. I have followed the code step by step and i receive below error.
Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
at io.appium.java_client.service.local.AppiumDriverLocalService.
Hi
I am not able to start the server pragmatically.
Error:
org.openqa.selenium.WebDriverException: Connection refused: connect
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'LAPTOP-NSHOK0TM', ip: '192.168.56.1', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '11.0.2'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$2(AppiumCommandExecutor.java:243)
at java.base/java.util.Optional.orElseGet(Optional.java:369)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:242)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
at org.openqa.selenium.remote.RemoteWebDriver.