Make a request

To making request we use keyword for each method and give path as parameter

  • Update 'google-request.robot'
*** Settings ***
Library    RequestsLibrary

*** Test Case ***
Simple request google page
    Create Session    google    https://www.google.co.th
    Get Request    google    /
  • Execute and see 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 ""