Académique Documents
Professionnel Documents
Culture Documents
AGENDA
! ! ! !
Requirements Why Robot Framework? Typical challenges with Selenium2 Problems beyond Selenium2
!"#$"%&#%"'$"(&)#*+,-.&
! Kiva.org is a website which allows you to lend to an entrepreneur who needs a loan ! Through Kiva, you loan as little as $25 to an entrepreneur at 0% interest
REQUIREMENTS
! ! ! ! !
Cross-browser Navigate between different websites Salesforce, MySQL Free Active user community
! Choices
OR
! ! ! ! ! ! !
A generic test framework Open sourced by Nokia in 2008 https://code.google.com/p/robotframework/ Use keyword-driven approach Lots of built-in libraries Extensible via Python and Java Documentation (User Guide)
You want to check if in an HTML table, cell A plus cell B equals cell C. Robots Selenium2 documentation says:
10
EXAMPLE: Output
Run the test: pybot.bat sample_test.txt 3 files are produced: log.html report.html output.xml
11
12
SAMPLE RUN
13
14
SAMPLE REPORT.HTML
15
16
17
No locator Modal popups Waits and sleep Native OS popups Switching focus between windows
18
19
! Modal popups ! WebDriverException: Message: ugetUrl execution failed; An open modal dialog blocked the operation
20
Selenium2Library: Popups
Dismiss alerts and confirmation popups with: ! Alert Should Be Present ! Confirm Action
21
! ! ! ! !
Sleep Wait Until Page Contains Set Selenium Implicit Wait Set Selenium Timeout Set Browser Implicit Wait
22
23
! File upload
! Choose File keyword
24
Problem: File download native OS popup dialog! Solution: extend with python code Tip: read Python Tutorial for Robot Framework Test Library Developer
https://code.google.com/p/robotframework/wiki/PythonTutorial
25
26
Solution 1: AutoItLibrary ! This is a Robot Framework wrapper for AutoIt tool ! I didnt find the keyword I needed (like Click Link)
27
28
! How can I get to databases? Robotframework-database-library ! utilities... allow you to query your database after an action has been made to verify the results.
29
30
! STEPS: 1.!Install plugin to Jenkins 2.!Decide where output files should live 3.!Write a shell script to kick off robot tests 4.!Configure frequency of job 5.!Build!
31
RESOURCES
32