Robot Framework is released under the Apache License 2.0. Development of Robot Framework is sponsored by the Robot Framework Foundation. The basis for Robot Framework is Pekka Klärck’s Master’s thesis for Helsinki University of Technology in 2006.
If you live in Finland, this tool is especially useful as many finnish companies use it.
Keywords are like functions that you execute to accomplish various tests.
Keywords can be reused and composed, which means that you create keywords by calling other keywords
Library keywords are the lowest level building blocks of creating user keywords and using them in test cases.
Libraries are normally imported in the Settings section but can also be imported in the Test Cases section using the Import Library keyword from the BuiltIn Library
Install Python: Download Python
On Windows, navigate to cmd and type:
# To verify that Python is installed
python --version
# To install Robot Framework
pip install robotframework
# To verify that Robot Framework is installed
robot --version
# To install the Selenium library
pip install robotframework-selenium2library
# To check the library list
pip list
Download Web Testing Demo the repository from GitHub . As a result you’ll get directory WebDemo-master and demoapp , docs and login_tests subdirectories:
Requirements for this demo are having Python, Pip, Robot Framework and SeleniumLibrary installed. This demo includes requirements.txt -file so we just need to give command:
pip install -r requirements.txt
install browser and operating system specific browser drivers for all those browsers you want to use in tests: pip install seleniumbase
Next we start the demo application with command:
python demoapp/server.py
Open browserand navigate to http://localhost:7272 .
The demo application is a very simple login page. With user name demo and password mode you get into a welcome page and otherwise you end up on an error page.
Now try to login to manually test, end the server by pressing ctrl-c.
robot login_tests