Test Automation with Robot Framework

2011-09-06  张林 

Test Automation with Robot Framework
http://www.virtuousprogrammer.com/?p=264
MavenIntegration
http://code.google.com/p/robotframework/wiki/MavenIntegration
Robot Framework Acceptance Tests: Develop With Eclipse, Run With Maven
http://blog.codecentric.de/en/2010/03/robot-framework-fachtests-in-eclipse-entwickeln-und-mit-maven-ausfuhren/
Acceptance Test Driven Development with Robot Framework
http://code.google.com/p/atdd-with-robot-framework/
http://code.google.com/p/robotframework/wiki/ATDDWithRobotFrameworkArticle
http://stackoverflow.com/questions/2854831/using-robot-framework-for-atdd
Robot Framework Tutorial – A complete example
http://blog.codecentric.de/en/2012/04/robot-framework-tutorial-a-complete-example/
http://code.google.com/p/testrecorder-for-watin/
http://www.heydaysoft.com/html/gFast.html
Why Robotframework? kindly watch these videos :
Part 1:
http://www.youtube.com/watch?v=qf2i-xQ3LoY&NR=1
Part 2:
http://www.youtube.com/watch?v=dBqNHx6gKLs
Robot Framework - Pekka Klärck and Janne Härkönen - Pycon Finland 2011
http://www.youtube.com/watch?v=Q3jeyOFgUfk
http://www.youtube.com/watch?v=fnsVPz8QTsI
Robot Framework: Semicolon-free testing
http://www.youtube.com/watch?v=fnsVPz8QTsI

MISTA: Model-based test code generation for Robot Framework
http://www.youtube.com/watch?v=a2bfMApWQYo
https://github.com/mkorpela/RoboMachine
http://pypi.python.org/simple/
robotframework
robotframework-androidlibrary
robotframework-archivelibrary
robotframework-databaselibrary
robotframework-debuglibrary
robotframework-difflibrary
robotframework-httplibrary
robotframework-imaplibrary
robotframework-ioslibrary
robotframeworklexer
robotframework-rammbock
robotframework-requests
robotframework-ride
robotframework-selenium2library
robotframework-seleniumlibrary
robotframework-sshlibrary
robotframework-sudslibrary
robotframework-workbench
robotsuite

Self-Generating Test Artifacts for Selenium/WebDriver
http://www.youtube.com/watch?v=mSCFsUOgPpw
https://github.com/mmerrell/tastymonster
Install steps:
===========
sudo apt-get install python  (or setuptools-0.6c11.win32-py2.7.exe easy_install on windows)
sudo apt-get install python-pip
sudo pip install robotframework

/usr/local/lib/python2.7/dist-packages
sudo pip install decorator #?
sudo pip install robotframework-selenium2library
#install ride
sudo pip install robotframework-ride
colin@ubuntu:~/Downloads/robotframework-ride-1.0.1$ sudo python setup.py install
/usr/local/bin/ride.py
sudo pip install robotframework-sshlibrary
#for desktop app
Check out AutoItLibrary for Windows desktop apps: http://code.google.com/p/robotframework-autoitlibrary/
And SwingLibrary for Java desktop apps: http://code.google.com/p/robotframework-swinglibrary/
http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html
==
check after install
colin@ubuntu:~$ python --version
Python 2.7.3
colin@ubuntu:~$ pybot --version
Robot Framework 2.7.6 (Python 2.7.3 on linux2)


Simple Test
*** Settings ***
Library           Selenium2Library
Library           SSHLibrary

*** Test Cases ***
Simple Test Firefox
    Open Browser    http://www.google.com.hk/
    Input Text    lst-ib    robotframework
    Click Button    btnK
    Close Browser


Install on ubount
sudo apt-get install python-setuptools
sudo apt-get install python-pip
sudo pip install robotframework
sudo pip install robotframework-selenium2library

sudo pip install selenium decorator docutils
sudo apt-get install python-wxgtk2.8
sudo pip install robotframework-ride
ride.py


sudo pip install pycrypto
sudo pip install paramiko
sudo pip install robotframework-sshlibrary


sudo apt-get install putty-tools
sudo apt-get install mercurial  #hg
sudo hg clone https://code.google.com/p/robotframework/
手动离线安装
https://pypi.python.org/simple/decorator/decorator-3.4.0.tar.gz
https://pypi.python.org/simple/docutils/docutils-0.9.1.tar.gz
https://pypi.python.org/simple/selenium/selenium-2.29.0.tar.gz
https://pypi.python.org/simple/Pygments/Pygments-1.6.tar.gz
IEDriverServer
http://code.google.com/p/selenium/downloads/list
chromedriver - WebDriver for Google Chrome
http://code.google.com/p/chromedriver/downloads/list


Keywords参考
http://robotframework.googlecode.com/hg/doc/libraries/

update robotframework-ride
suod pip install -U robotframework-ride


1050°/10498 人阅读/1 条评论 发表评论

熊志男  2011-09-06

好 学习 学习


登录 后发表评论