Skip to content
This repository has been archived by the owner on Aug 30, 2024. It is now read-only.

Guitester

Alice Hubenko edited this page May 25, 2017 · 27 revisions

Guitester is a testing framework for eucaconsole implemented with python selenium bindings. To use the framework you will need an instance of Local or Remote Selenium Webdriver.

Configuring your environment

You will need selenium 2.50.1

On Centos 6

yum check ipython

yum -y install ipython git

sudo easy_install selenium

git clone https://github.com/eucalyptus/guitester

On Mac

You need to install python and selenium.

To install python you can use Homebrew with the following command: $ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" Help

easy_install selenium

It is a general best practice to use Virtualenv to create your environment:

sudo easy_install virtualenv

virtualenv guitester_env

cd guitester_env/bin; source activate

Getting started

git clone https://github.com/eucalyptus/eucaconsole

cd eucaconsole/tests/selenium/guiops

ipython

from guiops.guiops import GuiOps

for local webdriver:

tester = GuiOps(<console URL>)

for remore webdriver:

tester = GuiOps(<Remote Webdriver i.e. "http://10.111.80.115:4444/wd/hub">,<console URL>)

This will launch a copy of firefox browser and open eucaconsole.

By typing tester. and tabbing out you can see all command options.