Skip to content

ipol2n/wu2016

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ATDD using Robot Framework and TDD with Python

Install Python 3.4

https://www.python.org/downloads/

Note:

  • For Windows, you have to remember Python installation path to use in the next step

Setup PATH environment variable for Windows

  1. Press "Windows + Pause"
  2. Click "Advance System Settings"
  3. Click "Environment Variables"
  4. Edit value of Path variable, append Python installation path at the end

Verify Installed Python

  1. Open terminal
  2. Run python --version
python --version
Python 3.5.1

You should see the version of installed Python on your machine

Install PIP

Mac OS/Linux

wget https://bootstrap.pypa.io/get-pip.py && sudo python get-pip.py

Windows

  1. Goto "https://bootstrap.pypa.io/get-pip.py"

  2. Save this as "get-pip.py" at "c:"

  3. Open terminal and run

python get-pip.py

Verify installed PIP

  1. Open terminal
  2. Run pip --version
pip --version
pip 8.1.2 from /env/lib/python3.5/site-packages (python 3.5)

You should see the version of installed PIP on your machine

Install Virtualenv

pip install virtualenv

Create Project and setup environment

  1. Create directoty at "/home/my-robot" or "c:\my-robot" for Windows

  2. Goto project directory and init Git repository

  3. Create our development environment

virtualenv env

Activate env (Mac/Linux)

. env/bin/activate

Activate env (Windows)

env\scripts\activate

Install dependencies

Create "requirements.txt" and add the following lines

robotframework
robotframework-selenium2library

Run pip install -r requirements.txt

Alternate installation steps

  1. Run pip install robotframework
  2. Run pip install robotframework-selenium2library

Robot Framework verification

Run robot --version

robot --version
Robot Framework 3.0 (Python 3.5.1 on darwin)

You should see the version of installed Robot Framework on your machine

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.8%
  • RobotFramework 0.2%