Hey Guys,
Could someone help me with achieving the below please.
Through appium desktop, I can start the iOS app through certain desirable capabilities, app launches as expected.
please find the attached below image.
I’ve attempted this on appium server through command line.
below is the command I’ve tried
n.nadarajah@RNSH-MACSRV01 ~/sites/Resilient-QA.wiki (master) $ appium -a 127.0.0.1 -p 4723 --log-level=debug --
platform-name iOS --automation-name XCUITest --device-name "iPhone 6" --app
/Users/n.nadarajah/Library/Developer/Xcode/DerivedData/testappname-
gvkoqjwkdgwsxvcthgwlvwjgrzhv/Build/Products/Debug-iphonesimulator/testappname.app
[Appium] Welcome to Appium v1.7.2
[Appium] Non-default server args:
[Appium] address: 127.0.0.1
[Appium] platformName: iOS
[Appium] automationName: XCUITest
[Appium] deviceName: iPhone 6
[Appium] app: /Users/n.nadarajah/Library/Developer/Xcode/DerivedData/testappname-
gvkoqjwkdgwsxvcthgwlvwjgrzhv/Build/Products/Debug-iphonesimulator/testappname.app
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium] --automation-name => --default-capabilities '{"automationName":"XCUITest"}'
[Appium] --device-name => --default-capabilities '{"deviceName":"iPhone 6"}'
[Appium] --app => --default-capabilities
'{"app":"/Users/n.nadarajah/Library/Developer/Xcode/DerivedData/testappname-
gvkoqjwkdgwsxvcthgwlvwjgrzhv/Build/Products/Debug-iphonesimulator/testappname.app"}'
[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:
[Appium] platformName: iOS
[Appium] automationName: XCUITest
[Appium] deviceName: iPhone 6
[Appium] app: /Users/n.nadarajah/Library/Developer/Xcode/DerivedData/testappname-
gvkoqjwkdgwsxvcthgwlvwjgrzhv/Build/Products/Debug-iphonesimulator/testappname.app
[Appium] Appium REST http interface listener started on 127.0.0.1:4723
In particular see below lines from the above logs, these args have been deprecated.
[Appium] Deprecated server args:
[Appium] --platform-name => --default-capabilities '{"platformName":"iOS"}'
[Appium] --automation-name => --default-capabilities '{"automationName":"XCUITest"}'
[Appium] --device-name => --default-capabilities '{"deviceName":"iPhone 6"}'
[Appium] --app => --default-capabilities
Could some advise me how to go about starting appium server with desired capabilities please.
Your help is much appreciated.
Thanks
Niro