Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,14 @@ jobs:
seleniumbase install geckodriver
displayName: 'Install chromedriver and geckodriver (Firefox Webdriver)'

- script: pytest examples/my_first_test.py --browser=chrome --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
displayName: 'pytest examples/my_first_test.py --browser=chrome --headless'
- script: pytest examples/boilerplates/boilerplate_test.py --browser=chrome --headless -v -s --junitxml=junit/test-results.xml
displayName: 'Run pytest boilerplate_test.py --browser=chrome --headless'

- script: pytest examples/my_first_test.py --browser=firefox --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
displayName: 'pytest examples/my_first_test.py --browser=firefox --headless'
- script: pytest examples/my_first_test.py --browser=chrome --headless -v -s --junitxml=junit/test-results.xml
displayName: 'Run pytest my_first_test.py --browser=chrome --headless'

- script: pytest examples/my_first_test.py --browser=firefox --headless -v -s --junitxml=junit/test-results.xml
displayName: 'Run pytest my_first_test.py --browser=firefox --headless'

- task: PublishTestResults@2
inputs:
Expand Down
4 changes: 2 additions & 2 deletions integrations/google_cloud/ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ sudo git clone https://github.com/seleniumbase/SeleniumBase.git
cd SeleniumBase/integrations/linux/
```

#### Step 6. Give Jenkins (aka "tomcat" user) sudo access (See [jenkins_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/jenkins_permissions.sh) for details)
#### Step 6. Give Jenkins (aka "tomcat" user) sudo access (See [tomcat_permissions.sh](https://github.com/seleniumbase/SeleniumBase/blob/master/integrations/linux/tomcat_permissions.sh) for details)

```bash
./jenkins_permissions.sh
./tomcat_permissions.sh
```

#### Step 7. Become "tomcat" (the Jenkins user) and enter a "bash" shell
Expand Down
13 changes: 6 additions & 7 deletions integrations/linux/jenkins_permissions.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
# This file will add "tomcat" to the sudoers file.
# "tomcat" is the Jenkins user name by default
# This file will add "jenkins" to the sudoers file.

# To become tomcat from a different user, use the following:
# sudo su tomcat
# To become jenkins from a different user, use the following:
# sudo su jenkins
# bash

sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%jenkins ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%jenkins ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"jenkins ALL=NOPASSWD: ALL\" >> /etc/sudoers"
10 changes: 10 additions & 0 deletions integrations/linux/tomcat_permissions.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# This file will add "tomcat" to the sudoers file.
# "tomcat" is the Jenkins user name by default on Bitnami Jenkins machines

# To become tomcat from a different user, use the following:
# sudo su tomcat
# bash

sudo sh -c "echo \"%tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
sudo sh -c "echo \"%tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
sudo sh -c "echo \"tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ requests==2.21.0
urllib3==1.24.1
pytest>=4.4.0
pytest-cov>=2.6.1
pytest-forked>=1.0.2
pytest-html>=1.20.0
pytest-metadata>=1.8.0
pytest-rerunfailures>=7.0
Expand Down
1 change: 1 addition & 0 deletions seleniumbase/core/browser_launcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ def _set_chrome_options(
}
chrome_options.add_experimental_option("prefs", prefs)
chrome_options.add_argument("--test-type")
chrome_options.add_argument("--log-level=3")
chrome_options.add_argument("--no-first-run")
chrome_options.add_argument("--ignore-certificate-errors")
chrome_options.add_argument("--allow-file-access-from-files")
Expand Down
3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

setup(
name='seleniumbase',
version='1.22.6',
version='1.22.7',
description='Reliable Browser Automation & Testing Framework',
long_description=long_description,
long_description_content_type='text/markdown',
Expand Down Expand Up @@ -63,6 +63,7 @@
'urllib3==1.24.1', # Keep this lib in sync with "requests"
'pytest>=4.4.0',
'pytest-cov>=2.6.1',
'pytest-forked>=1.0.2',
'pytest-html>=1.20.0',
'pytest-metadata>=1.8.0',
'pytest-rerunfailures>=7.0',
Expand Down