Skip to content

A vagrant VM that includes the Robot framework and Selenium for browser based testing

Notifications You must be signed in to change notification settings

gavinln/selenium_robot_vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

selenium_robot_vm

About

This project provides a Ubuntu (12.0) Vagrant Virtual Machine (VM) with Selenium and the Robot Framework for web browser based tests. The project contains Puppet scripts that automatically install the software when the VM is started. It also has scripts that start the Selenium hub and nodes

Running

  1. To start the virtual machine(VM) type

    vagrant up
    
  2. In the root directory connect to the VM

    vagrant ssh
  3. Start the Selenium hub

    /vagrant/vm/start_hub.sh
  4. Verfiy the grid is started by opening the browser. Go to http://localhost:4444/

  5. From outside the VM start the Selenium node ("INFO - Done: /status" is displayed)

    REM on windows
    vm\start_node.bat
    # on Linux
    vm/start_node.sh
  6. Within the VM run the Selenium tests in the /vagrant/vm directory

    cd /vagrant/vm
    pybot cnn_home.txt
  7. The Firefox browser outside the VM will start and run the tests

  8. The /vagrant/vm/report.html file has the test results

  9. To exit type "exit" or Ctrl+C

Requirements

The following software needs to be installed to get the software from github and run Vagrant. The Git environment also provides an SSH client for Windows.

About

A vagrant VM that includes the Robot framework and Selenium for browser based testing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published