Answer the question
In order to leave comments, you need to log in
How to run parallel execution of Pytest tests inside a Docker container?
Good day!
I'm using Python3 + Pytest + Selenium + Chrome + Docker to test the interface of a web application. There is also pytest-xdist to parallelize the execution of test suites. When I run in 4-5 threads on the local machine (windows / linux), the tests are run in parallel (in headless mode). But when the same tests are run in Docker, all tests fail.
selenium.common.exceptions.WebDriverException: Message: chrome not reachable (Session info: headless chrome=73.0.3683.86) (Driver info: chromedriver=73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017),platform=Linux 4.15.0-46-generic x86_64)
Answer the question
In order to leave comments, you need to log in
https://hub.docker.com/u/selenoid/
https://aerokube.com/selenoid/latest/
but in general it just can't find the driver
Because the location must be specified correctly. There should be a full path, for good.
Type
header('Location: http://example.com/ekzo/index.php');
Due to the lack of additional information, the most likely is that the condition is not met. Usually, the Exit button is made a link, not a submit. Try $_GET['logout'], instead of $_POST['logout'].
1. Both relative and absolute paths will work in location.
2. Try after header(), put exit().
I see here there is a selection for the battle of psychics)
Make it a rule to check the actions step by step if something doesn’t work, first leave only the line with the redirect, without the if, then it’s logical to check what falls into the check condition, and so on.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question