O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Rfselenium2 redhat

828 visualizações

Publicada em

Short introduction to Robot Framework

Publicada em: Software
  • Seja o primeiro a comentar

  • Seja a primeira pessoa a gostar disto

Rfselenium2 redhat

  1. 1. ROBOT FRAMEWORK + SELENIUM2LIBRARY Joonas Jauhiainen Senior Software Engineer RedHat Software Developer Meetup 10.09.2014
  2. 2. 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
  3. 3. 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
  4. 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. 5. 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
  6. 6. 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
  7. 7. EXAMPLE: SMOKE TEST https://github.com/Atihinen/RobotFramework-Selenium2Library
  8. 8. QUESTIONS?
  9. 9. 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

×