You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.
View groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
I am trying to configure my yaml file to enable my tests to be run. Currently it seems that it can read my test files, but it keeps on failing and giving this error WebDriverException: Message: 'chromedriver' executable needs to be in PATH. How do i set a PATH to my chromedriver in Bitbucket?
My YAML file:-
image: python:3.7.3
pipelines:
default:
- step:
caches: - pip
script:
- pip install --upgrade pip
- pip install robotframework robotframework-seleniumlibrary && pip install chromedriver
- robot -d results test_scripts/Tests/Songs.robot
Hi @Kunalkumar ,
please look at this article. To be honest, I'm not the Bitbucket Pipelines expert, but it seems to me it could help you.
Something like this would do the job
image: python:3.7.3
pipelines:
default:
- step:
caches: - pip
script:
- pip install --upgrade pip
- pip install robotframework robotframework-seleniumlibrary && pip install chromedriver
- PATH=/path/to/chromedriver/binary:$PATH robot -d results test_scripts/Tests/Songs.robot
The addition is PATH=/path/to/chromedriver/binary:$PATH before calling robot executable. It passes modified PATH environmental variable to this binary execution.
From the other hand, it is strange that pip installs it into the inaccessible location. You may want to check PYPATH passed to robot script too and make sure that the default libraries path is passed.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok I understand what you mean, but can I point it to the chromedriver in my PC, or do i need to upload the chromedriver to Bitbucket as well?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, The Cloud team recently announced 12 new DevOps features that help developers ship better code, faster ! While we’re all excited about the new improvements to Bitbucket ...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.