Skip to content

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Latest commit

 

History

22 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
  1. Configure the capabilties for the test and use your credentials
    (Context: For running single test session).
    i. Navigate to ./scripts/single.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";
# change capabilities
bstack_options = {
  "os" => "OS X",
  "osVersion" => "Sierra",
  "buildName" => "Final-Snippet-Test",
  "sessionName" => "Selenium-4 Ruby snippet test",
  "local" => "false",
  "seleniumVersion" => "4.0.0",
}
  1. Run test session For running single test
bundle exec ruby ./scripts/single.rb

For running local test (in ./scripts/local.rb)

bundle exec ruby ./scripts/local.rb

For running parallel tests

bundle exec ruby ./scripts/parallel.rb

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages