Skip to content

Commit

Permalink
added browser stack config, samples and instructions (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadabnepal authored May 5, 2024
1 parent edb6926 commit 86088e9
Show file tree
Hide file tree
Showing 11 changed files with 882 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
REPORT_PORTAL_SWITCH=ON # options: ON | OFF
REPORT_PORTAL_KEY=
REPORT_PORTAL_PROJECT=
REPORT_PORTAL_PROJECT=

BROWSERSTACK_USERNAME=
BROWSERSTACK_ACCESS_KEY=
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ node_modules
allure-report
allure-results
.env
.DS_Store
.DS_Store
logs/
local.log
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ npm run cleanup
### Github Action Workflow
![docker_run](./images/githubRun.png)

### BrowserStack Integration
- Follow [Browser Stack Integration Getting Started](https://automate.browserstack.com/dashboard/v2/quick-start/get-started) document
- Note down `BROWSERSTACK_USERNAME` and `BROWSERSTACK_ACCESS_KEY` from profile section
- Paste value in .env for above copied value. Refer `.env.example` file
- Run 'npm run test:bs` command to execute test in browser stack

![browser_stack](./images/browserStackDashboard.png)

### Report Portal Integration
- Setup: follow https://reportportal.io/installation
- Login: Open http://localhost:8080/ and login with time user `superadmin` and password `erebus`
Expand All @@ -84,6 +92,7 @@ npm run cleanup
- Docker for testing against/using containerization
- Github actions CI/CD integration
- Report portal integration
- BrowserStack Integration
- dotenv to store secrets locally
- eslint linting tools integrated
- husky git hooks for pre-commit checks (eslint)
Expand All @@ -94,7 +103,7 @@ npm run cleanup
├───.github
├───.husky
├───.vscode
├───.images
├───images
├───tests
| ├───config
| ├───docker
Expand Down
Binary file added images/browserStackBuildSummary.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/browserStackBuilds.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/browserStackDashboard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 86088e9

Please sign in to comment.