https://github.com/browserstack/ruby-selenium-browserstack
https://github.com/browserstack/ruby-selenium-browserstack
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/browserstack/ruby-selenium-browserstack
- Owner: browserstack
- Created: 2022-04-04T05:16:08.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2024-08-02T00:12:20.000Z (almost 2 years ago)
- Last Synced: 2025-04-22T21:06:26.077Z (about 1 year ago)
- Language: Ruby
- Homepage:
- Size: 40 KB
- Stars: 1
- Watchers: 13
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ruby-selenium-browserstack
## Prerequisite
a. Ruby setup on your machine
```
ruby -v
```
b. bundler gem
```
gem install bundler
```
## Steps for running test session
1. Clone the repo, navigate to the cloned folder then install the dependencies:
```
bundle install
```
2. Configure the capabilties for the test and use your credentials
(Context: For running test session).
i. Navigate to ./scripts/parallel.rb
ii. Change the capabilities and swap the credentials.
You can export Browserstack Username and Access key or hard code them in script.
```
export BROWSERSTACK_USERNAME="YOUR_USER_NAME";
export BROWSERSTACK_ACCESS_KEY="YOUR_ACCESS_KEY";
```
3. Run test session
For running tests
```
bundle exec ruby ./scripts/parallel.rb
```
For running local test (in ./scripts/local.rb)
```
bundle exec ruby ./scripts/local.rb
```