prashant-ramcharan / courgette-jvm

Multiprocess | Parallel Cucumber-JVM | Parallelize your Java Cucumber tests on a feature level or on a scenario level.
MIT License
132 stars 38 forks source link

Integrate paralell execution with appium #345

Closed jairomendezonetec closed 2 years ago

jairomendezonetec commented 2 years ago

hi,

I am trying to integrate CourgettePlugin.MOBILE_DEVICE_ALLOCATOR, but i don't understand how i can do it.

I am using the latest version.

Where do I have to create a pool of devices based on mobileDevice (UDID, name...)?

And by the other hand, when I include mobileDevice in my runner, this word is in red and it is not recognized. image

Can you help me?

Thanks!

prashant-ramcharan commented 2 years ago

Hi @jairomendezonetec

It appears that you are using an older Courgette version, please confirm what version you are using?

Looking at your runner, showTestOutput = true is deprecated in the latest version which suggests you using an older version.

prashant-ramcharan commented 2 years ago

Please refer to the example projects as a reference:

https://github.com/prashant-ramcharan/courgette-jvm-appium-ios

https://github.com/prashant-ramcharan/courgette-jvm-appium-android

jairomendezonetec commented 2 years ago

Exactly, I put de latest version, and the errors disappear.

Another question, Where are the devices configured (UDID, device name, port..) ? I can see the devices in the runner, but no the information about them

Thanks a lot

prashant-ramcharan commented 2 years ago

You will have to configure the devices yourself as you would for your Appium tests.

Example: If you create an Android AVD named Pixel_4 then in your Courgette runner you will add Pixel_4 in the mobileDevice section.

The device names are basically the devices you have available for on your machine that you'd want to use in your Appium tests.

jairomendezonetec commented 2 years ago

Thanks a lot, I can configure correctly!