KEMBAR78
Rfselenium2 redhat | PDF
ROBOT FRAMEWORK + 
SELENIUM2LIBRARY 
Joonas Jauhiainen Senior Software Engineer 
RedHat Software Developer Meetup 10.09.2014
BACKGROUND 
● Robot Framework 
– Generic test automation framework for acceptance testing and 
acceptance test-driven development (ATDD) 
● Selenium2Library 
– Primarily for automating web applications for testing purposes 
– Browser testing
REQUIREMENTS 
● Python interpreter 
– pip package manager 
– Optional for plain python 
● Jython 
● Iron python 
● Robot Framework 
– pip install robotframework 
● Selenium2Library 
– pip install robotframework-selenium2library 
● Browser 
– e.g. 
Firefox/Chrome/IE/PhantomJS
WHY ROBOT FRAMEWORK? 
● Open source (Apache License 2.0) 
● Syntax is human readable 
● Custom keywords can be easily made 
● Extensible with custom or premade libraries 
– Tens of existing libraries
EXAMPLE ROBOT FOLDER STRUCTURE 
└── robot Folder for Robot Framework files 
├── testfile.robot Robot Framework test suite 
├── resources Resources folder 
│ ├── common-keywords.robot Useful keywords 
│ ├── [resource].robot Other keywords. e.g. for another 
standard library
RESOURCES YOU CAN USE 
● Robot Framework standard libraries 
● Keywords in Selenium2Library 
● Custom python libraries 
– Java and other languages also possible 
● Use keywords in resource files 
● Other testing libraries made for Robot Framework
EXAMPLE: SMOKE TEST 
https://github.com/Atihinen/RobotFramework-Selenium2Library
QUESTIONS?
REFERENCES 
● http://robotframework.org/ 
● https://code.google.com/p/robotframework/wiki/HowToWriteGoodTestCases 
● http://robotframework.org/robotframework/#user-guide 
● https://github.com/rtomac/robotframework-selenium2library 
● https://github.com/Atihinen/RobotFramework-Selenium2Library

Rfselenium2 redhat

  • 1.
    ROBOT FRAMEWORK + SELENIUM2LIBRARY Joonas Jauhiainen Senior Software Engineer RedHat Software Developer Meetup 10.09.2014
  • 2.
    BACKGROUND ● RobotFramework – Generic test automation framework for acceptance testing and acceptance test-driven development (ATDD) ● Selenium2Library – Primarily for automating web applications for testing purposes – Browser testing
  • 3.
    REQUIREMENTS ● Pythoninterpreter – pip package manager – Optional for plain python ● Jython ● Iron python ● Robot Framework – pip install robotframework ● Selenium2Library – pip install robotframework-selenium2library ● Browser – e.g. Firefox/Chrome/IE/PhantomJS
  • 4.
    WHY ROBOT FRAMEWORK? ● Open source (Apache License 2.0) ● Syntax is human readable ● Custom keywords can be easily made ● Extensible with custom or premade libraries – Tens of existing libraries
  • 5.
    EXAMPLE ROBOT FOLDERSTRUCTURE └── robot Folder for Robot Framework files ├── testfile.robot Robot Framework test suite ├── resources Resources folder │ ├── common-keywords.robot Useful keywords │ ├── [resource].robot Other keywords. e.g. for another standard library
  • 6.
    RESOURCES YOU CANUSE ● Robot Framework standard libraries ● Keywords in Selenium2Library ● Custom python libraries – Java and other languages also possible ● Use keywords in resource files ● Other testing libraries made for Robot Framework
  • 7.
    EXAMPLE: SMOKE TEST https://github.com/Atihinen/RobotFramework-Selenium2Library
  • 8.
  • 10.
    REFERENCES ● http://robotframework.org/ ● https://code.google.com/p/robotframework/wiki/HowToWriteGoodTestCases ● http://robotframework.org/robotframework/#user-guide ● https://github.com/rtomac/robotframework-selenium2library ● https://github.com/Atihinen/RobotFramework-Selenium2Library