File tree Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Expand file tree Collapse file tree 7 files changed +29
-14
lines changed Original file line number Diff line number Diff line change @@ -38,11 +38,14 @@ jobs:
38
38
seleniumbase install geckodriver
39
39
displayName: 'Install chromedriver and geckodriver (Firefox Webdriver)'
40
40
41
- - script : pytest examples/my_first_test .py --browser=chrome --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
42
- displayName : ' pytest examples/my_first_test .py --browser=chrome --headless'
41
+ - script : pytest examples/boilerplates/boilerplate_test .py --browser=chrome --headless -v -s --junitxml=junit/test-results.xml
42
+ displayName : ' Run pytest boilerplate_test .py --browser=chrome --headless'
43
43
44
- - script : pytest examples/my_first_test.py --browser=firefox --headless -v -s --doctest-modules --junitxml=junit/test-results.xml
45
- displayName : ' pytest examples/my_first_test.py --browser=firefox --headless'
44
+ - script : pytest examples/my_first_test.py --browser=chrome --headless -v -s --junitxml=junit/test-results.xml
45
+ displayName : ' Run pytest my_first_test.py --browser=chrome --headless'
46
+
47
+ - script : pytest examples/my_first_test.py --browser=firefox --headless -v -s --junitxml=junit/test-results.xml
48
+ displayName : ' Run pytest my_first_test.py --browser=firefox --headless'
46
49
47
50
- task : PublishTestResults@2
48
51
inputs :
Original file line number Diff line number Diff line change @@ -36,10 +36,10 @@ sudo git clone https://github.com/seleniumbase/SeleniumBase.git
36
36
cd SeleniumBase/integrations/linux/
37
37
```
38
38
39
- #### 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)
39
+ #### 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)
40
40
41
41
``` bash
42
- ./jenkins_permissions .sh
42
+ ./tomcat_permissions .sh
43
43
```
44
44
45
45
#### Step 7. Become "tomcat" (the Jenkins user) and enter a "bash" shell
Original file line number Diff line number Diff line change 1
- # This file will add "tomcat" to the sudoers file.
2
- # "tomcat" is the Jenkins user name by default
1
+ # This file will add "jenkins" to the sudoers file.
3
2
4
- # To become tomcat from a different user, use the following:
5
- # sudo su tomcat
3
+ # To become jenkins from a different user, use the following:
4
+ # sudo su jenkins
6
5
# bash
7
6
8
- sudo sh -c " echo \" %tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
9
- sudo sh -c " echo \" %tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
10
- sudo sh -c " echo \" tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
7
+ sudo sh -c " echo \" %jenkins ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
8
+ sudo sh -c " echo \" %jenkins ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
9
+ sudo sh -c " echo \" jenkins ALL=NOPASSWD: ALL\" >> /etc/sudoers"
Original file line number Diff line number Diff line change
1
+ # This file will add "tomcat" to the sudoers file.
2
+ # "tomcat" is the Jenkins user name by default on Bitnami Jenkins machines
3
+
4
+ # To become tomcat from a different user, use the following:
5
+ # sudo su tomcat
6
+ # bash
7
+
8
+ sudo sh -c " echo \" %tomcat ALL=(ALL:ALL) ALL\" >> /etc/sudoers"
9
+ sudo sh -c " echo \" %tomcat ALL=(ALL) NOPASSWD: ALL\" >> /etc/sudoers"
10
+ sudo sh -c " echo \" tomcat ALL=NOPASSWD: ALL\" >> /etc/sudoers"
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ requests==2.21.0
10
10
urllib3 == 1.24.1
11
11
pytest >= 4.4.0
12
12
pytest-cov >= 2.6.1
13
+ pytest-forked >= 1.0.2
13
14
pytest-html >= 1.20.0
14
15
pytest-metadata >= 1.8.0
15
16
pytest-rerunfailures >= 7.0
Original file line number Diff line number Diff line change @@ -107,6 +107,7 @@ def _set_chrome_options(
107
107
}
108
108
chrome_options .add_experimental_option ("prefs" , prefs )
109
109
chrome_options .add_argument ("--test-type" )
110
+ chrome_options .add_argument ("--log-level=3" )
110
111
chrome_options .add_argument ("--no-first-run" )
111
112
chrome_options .add_argument ("--ignore-certificate-errors" )
112
113
chrome_options .add_argument ("--allow-file-access-from-files" )
Original file line number Diff line number Diff line change 17
17
18
18
setup (
19
19
name = 'seleniumbase' ,
20
- version = '1.22.6 ' ,
20
+ version = '1.22.7 ' ,
21
21
description = 'Reliable Browser Automation & Testing Framework' ,
22
22
long_description = long_description ,
23
23
long_description_content_type = 'text/markdown' ,
63
63
'urllib3==1.24.1' , # Keep this lib in sync with "requests"
64
64
'pytest>=4.4.0' ,
65
65
'pytest-cov>=2.6.1' ,
66
+ 'pytest-forked>=1.0.2' ,
66
67
'pytest-html>=1.20.0' ,
67
68
'pytest-metadata>=1.8.0' ,
68
69
'pytest-rerunfailures>=7.0' ,
You can’t perform that action at this time.
0 commit comments