blob: 10e685213bff1efb5f4c711a6b645be5a1495f2c [file] [log] [blame]
maximesson181070f2020-08-07 14:18:32 +02001*** Settings ***
2Library OperatingSystem
3Library RequestsLibrary
4
5*** Variables ***
6${MESSAGE} Hello, world!
7
8*** Test Cases ***
9String Equality Test
10 Should Be Equal ${MESSAGE} Hello, world!
11
12Dir Test
13 [Documentation] Check if /tmp exists
14 Log ${MESSAGE}
15 CheckDir /tmp
16
17Url Test
18 [Documentation] Check if google.com can be reached
19 CheckUrl http://www.google.com
20
21*** Keywords ***
22CheckDir
23 [Arguments] ${path}
24 Directory Should Exist ${path}
25
26CheckUrl
27 [Arguments] ${url}
28 Create Session session ${url}
29 ${resp}= Get Request session /
30 Should Be Equal As Integers ${resp.status_code} 200