File tree Expand file tree Collapse file tree 3 files changed +55
-0
lines changed
Expand file tree Collapse file tree 3 files changed +55
-0
lines changed Original file line number Diff line number Diff line change 1+ # protractor-browserstack-reporter
2+
3+ A Protractor plugin which enables BrowserStack reports on CI servers
4+
5+ ![ Browserstack reports on Jenkins] ( screenshots/jenkins_report.png )
6+
7+ ## Installation
8+
9+ Add ` protractor-browserstack-reporter ` as a dependency in your ` package.json ` .
10+
11+ ``` json
12+ {
13+ "dependencies" : {
14+ "protractor-browserstack-reporter" : " ~1.0.0"
15+ }
16+ }
17+ ```
18+
19+ ## Configuration
20+
21+ Add ` browserstack ` as a plugin in your conf file.
22+
23+ ``` js
24+ // conf.js
25+ ' plugins' : [{
26+ ' package' : " browserstack-protractor-reporter"
27+ }]
28+ ```
29+
30+ The following options are supported(optional):
31+
32+ ### outputDir
33+ Define a directory where your browserstack report files should get stored.
34+
35+ Type: ` String ` <br >
36+
37+ ## Jenkins Setup
38+
39+ You will have to configure your Jenkins CI server to embed all the BrowserStack Selenium reports and logs in Jenkins.
40+ 1 . Click on Add post-build action in Post-build Actions.
41+ 2 . Click on Publish JUnit test result report
42+ 3 . In the Test report XMLs, enter * /* browserstack-reports/REPORT-\* .xml
43+ 4 . In the Additional test report features section, add Embed BrowserStack Report.
44+
45+ This is how your configuration should look like
46+ ![ Jenkins Setup] ( screenshots/jenkins_setup.png )
47+
48+ ## Related links
49+
50+ [ Guide to running Selenium Webdriver tests with Protractor on BrowserStack] ( https://www.browserstack.com/automate/protractor )
51+
52+ [ Browserstack Jenkins page] ( https://www.browserstack.com/automate/jenkins )
53+
54+ [ Protractor] ( https://www.protractortest.org ) .
55+
You can’t perform that action at this time.
0 commit comments