Blazemeter / taurus

Automation-friendly framework for Continuous Testing by
http://gettaurus.org
Apache License 2.0
1.97k stars 461 forks source link

Selenium Executor: Message: session not created: Chrome failed to start: exited normally. #1832

Open ducpv-1644 opened 2 months ago

ducpv-1644 commented 2 months ago

Hi, I pulled the image "blazemeter/taurus:latest" and tried running it. The result is an error: Message: session not created: Chrome failed to start: exited normally.

My command: docker run -it --rm -v `pwd`/scenarios:/bzt-configs blazemeter/taurus tc.yml

My tc.yml (My tc.yml file is in the scenarios folder):

execution:
- executor: selenium
  runner: apiritif
  scenario: example

scenarios:
  example:
    browser: Chrome
    requests:
      - label: Login
        actions:
          - go('https://www.google.com/')

Logs:

14:13:28 INFO: Taurus CLI Tool v1.16.30
14:13:28 INFO: Starting with configs: ['/root/.bzt-rc', 'tc.yml']
14:13:28 INFO: Configuring...
14:13:28 INFO: Proxy settings not set
14:13:28 INFO: Artifacts dir: /tmp/artifacts
14:13:28 INFO: Preparing...
14:13:29 INFO: Using Cgroups1LocalMonitor for engine health monitoring
14:13:29 INFO: Latest stable version of chromedriver is 124.0.6367.78
14:13:29 INFO: Used version of chromedriver is 123.0.6312.122
14:13:29 INFO: Latest stable version of geckodriver is 0.34.0
14:13:29 INFO: Used version of geckodriver is 0.34.0
14:13:33 INFO: Starting...
14:13:33 INFO: Waiting for results...
14:13:33 INFO: Iterations set to 1
14:13:33 INFO: Waiting for finish...
14:13:34 WARNING: Failed to check for updates, server returned 5xx.
14:13:35 WARNING: Please wait for graceful shutdown...
14:13:35 INFO: Shutting down...
14:13:36 INFO: Post-processing...
14:13:36 INFO: Test duration: 0:00:03
14:13:36 INFO: Samples count: 1, 100.00% failures
14:13:36 INFO: Average times: total 0.594, latency 0.000, connect 0.000
14:13:36 INFO: Percentiles:
+---------------+---------------+
| Percentile, % | Resp. Time, s |
+---------------+---------------+
|           0.0 |         0.594 |
|          50.0 |         0.594 |
|          90.0 |         0.594 |
|          95.0 |         0.594 |
|          99.0 |         0.594 |
|          99.9 |         0.594 |
|         100.0 |         0.594 |
+---------------+---------------+
14:13:36 INFO: Request label stats:
+--------------+--------+-------+--------+------------------------------------------------------------------------+
| label        | status |  succ | avg_rt | error                                                                  |
+--------------+--------+-------+--------+------------------------------------------------------------------------+
| test_example |  FAIL  | 0.00% |  0.594 | Message: session not created: Chrome failed to start: exited normally. |
+--------------+--------+-------+--------+------------------------------------------------------------------------+
14:13:36 INFO: Artifacts dir: /tmp/artifacts
14:13:36 INFO: Done performing with code: 0

Pls help me fix that. Thank you.

ducpv-1644 commented 2 months ago

@mykhaliev1 @pavelmarik This is the problem that creates a bottleneck in my project. I'm happy to have it removed. Please help me when you can. Thank you very much.