pytest-dev / pytest-bdd

BDD library for the pytest runner
https://pytest-bdd.readthedocs.io/en/latest/
MIT License
1.31k stars 221 forks source link

parallel testing with pytest-bdd, x-dist, appium 2.0, allure-report is failed #601

Closed DianPermana closed 1 year ago

DianPermana commented 1 year ago

Hi All,

I just want to run parallel testing in existing my code (2 mobile android, with different OS). let's say :

A). devices = ANDROID10, emulator-5554, version = 10.0 B). devices = ANDROID12, emulator-5555, version = 12.0

which part my statement is wrong

  1. I need 2 instance sever appium ON with different port (example, 4723, 4724)
  2. I need to set @pytest.fixture(scope="function") def driver(request): programatically with different port
  3. all requirment i set in addoption

here all detail image configuration after I run my testing :

A). Scenario outline image

B). Pytest Fixture and addoptions

@@addoption image

fixture image

or via pytest.ini

image

C). run scenario

image

D). Error image

Can anyone help me, thanks a lot in advance

youtux commented 1 year ago

Hi, this is not related to pytest_bdd. It seems you need to find a way to solve the error with Appium. Closing this.