Learn how to test web application from writing simple test case

Opening browser

  • Create file with name 'google.robot' and add following code
*** Settings ***
Library     Selenium2Library

*** Test cases ***
Search by keywords
    Open browser    http://www.google.com    chrome

Execute test

  • Execute robot framework script
    >robot google.robot
    

The first test result

==============================================================================
Google
==============================================================================
Search by keywords                                                    | PASS |
------------------------------------------------------------------------------
Google                                                                | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================
Output:  /Users/JackSW/workspace/workshop/2c2p-robot/book/output.xml
Log:     /Users/JackSW/workspace/workshop/2c2p-robot/book/log.html
Report:  /Users/JackSW/workspace/workshop/2c2p-robot/book/report.html

results matching ""

    No results matching ""