ezodude / appium-smoke-tester

A base project for Cross Mobile app smoke tests using Appium.
8 stars 8 forks source link

Error: Could not find a device to launch #1

Open ghost opened 8 years ago

ghost commented 8 years ago

I get this when I run gulp verifySetup:

  1) Can Search Simple "before all" hook:
     Error: [init({"browserName":"","appium-version":"1.1","platformName":"iOS","platformVersion":"7.1","deviceName":"iPhone","app":"../../sample-code/apps/ios/sim/WebViewApp.app"})] The environment you requested was unavailable.

In appium I see:

[iOS] Error: Could not find a device to launch. You requested 'iPhone (7.1)', but the available devices were: ["iPad 2 (9.2)

I'm on node version 5.7.0 and xcode 7.2.1.

How do I specify another device?

SamsonNelson commented 8 years ago

@colmsjo Did you ever find a solution to this as I am running into the same issue.

SamsonNelson commented 8 years ago

@ezodude I'd love to help in any way possible on this project. This is exactly what I have been trying to find.

ezodude commented 8 years ago

@SamsonNelson I haven't looked at this codebase for a while. In the meantime, Appium has moved on.

My guess is you don't have the iPhone 7.1 simulator defined in the capabilities installed.

So either,

OR

In @colmsjo's case

...
"platformVersion":"9.2",
"deviceName":"iPad"
...

might just work. Good luck!

SamsonNelson commented 8 years ago

Thank you sooo much @ezodude for the response! Im working through getting things Ironed out and cannot appreciate the work you did on this enough. Even if it was two years ago haha.

Im sure you are super busy but if you ever get a free second Im going to paste in a screenshot of an error im getting. Im confused on why it is having trouble finding the .apk when it appears at the least to have the correct path. Again thank for any help in advance

screen shot 2016-07-20 at 2 52 49 pm

SamsonNelson commented 8 years ago

screen shot 2016-07-20 at 3 05 38 pm

ezodude commented 8 years ago

@SamsonNelson it looks like automationName has changed from selendroid to Selendroid with a capital S. See here.

Try updating in capabilities.

Also, you're using Appium 1.5.3. This might have redefined some of my capabilities/settings. My tests were executed against Appium 1.1.0.

Check the latest docs to work around them.