plu / pxctest

Execute tests in parallel on multiple iOS Simulators
MIT License
800 stars 57 forks source link

`/tmp/test-simulators` is not a `path` #27

Closed Akulavenkatesh closed 7 years ago

Akulavenkatesh commented 7 years ago

When I try to run this command in my terminal: pxctest boot-simulators --deviceset /tmp/test-simulators --destination 'name=iPhone 6’ --destination 'name=iPhone 7’

Its says /tmp/test-simulators is not a path.

My folder structure: Desktop > Github > pxctest > tmp > test-simulators

screen shot 2017-03-11 at 9 32 21 pm
plu commented 7 years ago

Try mkdir /tmp/test-simulators first.

plu commented 7 years ago

Also you're passing /test-simulators - which your user most likely cannot write.

ollieatkinson commented 7 years ago

If your folder structure is My folder structure: Desktop > Github > pxctest > tmp > test-simulators and you are running the tool in the tmp directory as your screenshot suggests then you can also omit the first / or replace it with ./ to suggest its a path from the current directory.

pxctest boot-simulators --deviceset ./test-simulators --destination 'name=iPhone 6’ --destination 'name=iPhone 7’
Akulavenkatesh commented 7 years ago

Thanks @plu @ollieatkinson and sorry for the late reply - I was traveling. I will try the above and reply back asap

Akulavenkatesh commented 7 years ago

I ran the command as mentioned by @ollieatkinson and the error went off. pxctest boot-simulators --deviceset ./test-simulators --destination 'name=iPhone 6,os=iOS 10.2'

In the 'test-simulators' folder I see a folder 'D94D4D45-986C-48F9-AC36-B859F3119213' getting created but the simulators never booted up (attached ss for your reference)

screen shot 2017-03-14 at 6 36 04 pm
plu commented 7 years ago

They boot in the background, you will not see any window - that's the whole idea of boot-simulators :). However you can list them, try this command: xcrun simctl --set $PWD/test-simulators list

Akulavenkatesh commented 7 years ago

I run my appium test cases with simulators. In this case can you please let me know how to integrate pxctest with appium

plu commented 7 years ago

I never used Appium, so I can't help here, sorry!

Akulavenkatesh commented 7 years ago

Thanks @plu @ollieatkinson :) . I'll try to figure that out, closing this.