1. Robot Framework 2.5 Robot Framework is a generic test automation framework for acceptance testing and acceptance test-driven development (ATDD). by Usov Borys
2. Features: Enables easy-to-use tabular syntax for creating test cases in a uniform way. Allows using keyword-driven, data-driven and behavior-driven (BDD) approaches. Provides easy-to-read reports and logs in HTML format. Is platform and application independent. Provides a simple library API for creating customized test libraries. Implemented with Python. Provides support for Selenium for web testing.
3. Test application: login.py Command > pythonsut/login.pyloginnobody P4ssw0rd Access Denied > pythonsut/login.pycreate fredinvalid Creatinguserfailed: Passwordmustbe a combinationoflowercase anduppercase letters and numbers > pythonsut/login.pycreate fred P4ssw0rd SUCCESS > pythonsut/login.pyloginfred P4ssw0rd Logged In Status
9. User-defined Libraries classLoginLibrary: def__init__(self): #Initialising class with path to our application self._status = '' defcreate_user(self, username, password): self._run_command('create', username, password) defattempt_to_login_with_credentials(self, username, password): self._run_command('login', username, password) defchange_password(self, username, old_pwd, new_pwd): self._run_command('change-password', username, old_pwd, new_pwd) defstatus_should_be(self, expected_status): if expected_status != self._status: raise AssertionError("Error") def_run_command(self, command, *args): #Function runs command and sets result status to #self._status variable
10. Plain text presentation of user-defined keywordsand variables ***Keywords*** #High-level test cases. Given a user has a valid account Create valid user ${USERNAME} ${PASSWORD} When he changes hispassword Change password ${USERNAME} ${PASSWORD} ${NEW PASSWORD} Then he can log in with the new password Login ${USERNAME} ${NEW PASSWORD} And he cannot use the old password anymore Attempt to login with credentials ${USERNAME} ${PASSWORD} Status should be Access Denied ***Variables*** ${USERNAME} busov ${PASSWORD} P4s5wo0rd ${NEW PASSWORD} e0D3n4J ${PWD INVALID LENGTH} Password must be 7-12 characters long
11. Plain text test cases presentation ***Test Cases*** User can create an account and log in Create Valid User fred P4ssw0rd Attempt to Login with Credentials fred P4ssw0rd Status Should Be Logged In User cannot log in with bad password Create Valid User betty P4ssw0rd Attempt to Login with Credentials betty wrong Status Should Be Access Denied
15. For more information Project Pages The main information hub http://code.google.com/p/robotframework User Guide Detailed information about all features of the framework http://code.google.com/p/robotframework/wiki/UserGuide