Automation Testing using RobotFramework - TJCrisostomo/WebUIAutomation GitHub Wiki

Automation Testing Tools for Web UI and API Testing

  • Vagrant will help setup portable and reproducible virtual development environment, which will be hosted by Virtual Box.
  • Using the tool would help other team members to setup their Automation testing development environment that is consistent to those who have already started development
  • The tool will eliminate the tedious processes of installing each of the tools to be used for automation test development on the user’s machine.
  • Virtual Box will be used to host the Virtual Machine with the Automation test development Environment
  • The Virtual Machine would be running with Linux CentOS

Tools

  • Selenium will be used to automate browser-based applications.
  • Robot Framework Selenium2Library will used as the Automation Framework in conjunction with selenium.
  • Python will be used for scripting in order to extend implemented test libraries of the framework and to create new higher-level keywords from existing ones using the same syntax that is used for creating test cases or to pattern from existing manual executed test cases.
  • Eclipse will be the IDE for creation of libraries.
  • PyDev will be the plugin support for Eclipse to support Python scripting.

Automation Testing Environment Installation

  1. You should have Vagrant and VirtualBox already installed. a. Get the Vagrant windows or mac installers on this link. https://www.vagrantup.com/downloads.html b. Install the package using standard procedures for your operating system. c. The installer will automatically add vagrant to your system path so that it is available in terminals. d. If it is not found, please try logging out and logging back in to your system (this is particularly necessary sometimes for Windows). e. Get the VirtualBox windows or mac installers on this link. https://www.virtualbox.org/wiki/Downloads f. Install the package using standard procedures for your operating system.
  2. Download the Vagrantfile and provisioner.sh on bitbuck.
  3. Copy Vagrantfile and provisioner.sh to a directory. (ex d:\vagrant or in /Users/Shared/Vagrant)
  4. Open up a command prompt
  5. cd to the directory where you've copied the files
  6. Type in: vagrant plugin install vagrant-vbguest
  7. Wait for the message “Installed the plugin 'vagrant-vbguest ….”
  8. Type in: vagrant up
  9. Wait for provisioning to finish. "Provisioning done. Please reboot VM." will be reported in the command prompt.
  10. Reboot the VM
  11. Type in: vagrant vbguest --do install
  12. Wait for the installation to complete
  13. Shutdown the VM
  14. Type in: vagrant up
  15. SSH Username and password is vagrant/vagrant