asadlambdatest / Ruby-UnitTest-Selenium

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ruby-UnitTest-Selenium

LambdaTest Logo

Environment Setup

  • For Windows You can download Ruby for Windows from http://rubyinstaller.org/ Run the installer and follow the setup wizard to install Ruby.

  • For Linux/Mac: Download RVM and install Ruby: curl -L https://get.rvm.io | bash -s stable --ruby

Lambdatest Credentials

  • Set LambdaTest username and access key in environment variables. It can be obtained from LambdaTest dashboard

example:

  • For linux/mac
    export LT_USERNAME="YOUR_USERNAME"
    export LT_ACCESS_KEY="YOUR ACCESS KEY"
    
  • For Windows
    set LT_USERNAME="YOUR_USERNAME"
    set LT_ACCESS_KEY="YOUR ACCESS KEY"
    

Setup

Running your tests

  • To run a single test, run ruby LambdaTest.rb
Routing traffic through your local machine
  • Set tunnel value to true in test capabilities

OS specific instructions to download and setup tunnel binary can be found at the following links.

Notes

  • You can view your test results on the [Lambdatest Automate dashboard]
  • To test on a different set of browsers, check out our platform configurator

About LambdaTest

LambdaTest is a cloud based selenium grid infrastructure that can help you run automated cross browser compatibility tests on 2000+ different browser and operating system environments. LambdaTest supports all programming languages and frameworks that are supported with Selenium, and have easy integrations with all popular CI/CD platforms. It's a perfect solution to bring your selenium automation testing to cloud based infrastructure that not only helps you increase your test coverage over multiple desktop and mobile browsers, but also allows you to cut down your test execution time by running tests on parallel.

Resources

About


Languages

Language:Ruby 100.0%