Skip to content

Commit 46469f4

Browse files
committed
readme and screenshots
1 parent 77f452d commit 46469f4

File tree

3 files changed

+55
-0
lines changed

3 files changed

+55
-0
lines changed

README.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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+

screenshots/jenkins_report.png

702 KB
Loading

screenshots/jenkins_setup.png

163 KB
Loading

0 commit comments

Comments
 (0)