Create session

To begin with testing web service we have to start with creating session of the host

  • Create new file name 'google-request.robot'

  • Add code

*** Settings ***
Library    RequestsLibrary

*** Test Case ***
Simple request google page
    Create Session    google    https://www.google.co.th
  • Execute
robot google-request.robot
  • Result
==============================================================================
Google-Request
==============================================================================
Simple request google page                                            | PASS |
------------------------------------------------------------------------------
Google-Request                                                        | PASS |
1 critical test, 1 passed, 0 failed
1 test total, 1 passed, 0 failed
==============================================================================

results matching ""

    No results matching ""