Open emirinanc opened 4 years ago
Yes; this is still error as of 4th Jan 2021; It appears the same was fixed previously : https://github.com/browsertron/pytest-parallel/issues/9 Python version :Python 3.8.7rc1 Pytest--Parallel 0.1.0 On windows OS Pytest--Parallel is not usable if this is not fixed;
Hi Kevlened,
I've been trying to run parallel selenium tests on Browserstack using pytest parallel but I've been failing to do so due to an dependency error because of the multiprocessing package. This issue is likely due to a misunderstanding on my part, but I am unable find the solution for it on Google or Stack Overflow. I would dearly appreciate your assistance.
I will briefly describe what I am attempting to do and share the error log with you.
I was inspired by this video to run 3 tests in parallel on Browserstack and I wrote a simple login test for three different platforms (namely Windows, iOS and Anroid) in PyCharm to run with pytest.
My project structure is as follows:
The test_loginTest.py file looks like this and I am using an interpreter with version Python 3.7.3 through Anaconda:
I use the following command on the Command Line tool to successfully run my tests:
python -m pytest test_loginTest.py
(note: somehow running the command pytest test_loginTest.py fails to run as it fails to import the selenium package)I then later use the following command on the Command Line tool to run tests in parallel on Browserstack:
python -m pytest --workers 3 test_loginTest.py
This command causes the following errors: