BjornMagnussonXA | c4c62f2 | 2019-03-06 14:11:57 +0000 | [diff] [blame] | 1 | *** Settings *** |
| 2 | Library OperatingSystem |
| 3 | Library RequestsLibrary |
BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 4 | Library Process |
BjornMagnussonXA | c4c62f2 | 2019-03-06 14:11:57 +0000 | [diff] [blame] | 5 | |
| 6 | *** Variables *** |
| 7 | |
| 8 | |
| 9 | *** Test Cases *** |
| 10 | |
BjornMagnussonXA | d3104ef | 2019-03-26 12:48:46 +0000 | [diff] [blame] | 11 | |
BjornMagnussonXA | c4c62f2 | 2019-03-06 14:11:57 +0000 | [diff] [blame] | 12 | Heartbeat test |
| 13 | [Documentation] Check DFC heartbeat |
| 14 | Heartbeat I'm living |
| 15 | |
| 16 | Stop test |
| 17 | [Documentation] Check DFC stop |
| 18 | Stop Datafile Service has already been stopped! |
| 19 | |
| 20 | Start test |
| 21 | [Documentation] Check DFC start |
| 22 | Start Datafile Service has been started! |
| 23 | |
| 24 | Heartbeat test - secure |
| 25 | [Documentation] Check DFC heartbeat, secure |
| 26 | Heartbeat-secure I'm living |
| 27 | |
| 28 | Stop test - secure |
| 29 | [Documentation] Check DFC stop, secure |
| 30 | Stop-secure Datafile Service has already been stopped! |
| 31 | |
| 32 | |
| 33 | Start test - secure |
| 34 | [Documentation] Check DFC start, secure |
| 35 | Start-secure Datafile Service has been started! |
| 36 | |
| 37 | |
| 38 | #PRobably move definitions of common Keywords to a common file |
| 39 | |
| 40 | *** Keywords *** |
| 41 | #Probably simplyfy the test cases by using variables for port numbers/urls etc |
| 42 | Heartbeat |
| 43 | [Arguments] ${respbody} |
| 44 | Create Session session http://localhost:8100/heartbeat |
| 45 | ${resp}= Get Request session / |
| 46 | Should Be Equal ${resp.text} ${respbody} |
| 47 | |
| 48 | Heartbeat-secure |
| 49 | [Arguments] ${respbody} |
| 50 | Create Session session https://localhost:8433/heartbeat |
| 51 | ${resp}= Get Request session / |
| 52 | Should Be Equal ${resp.text} ${respbody} |
| 53 | |
| 54 | Stop |
| 55 | [Arguments] ${respbody} |
| 56 | Create Session session http://localhost:8100/stopDatafile |
| 57 | ${resp}= Get Request session / |
| 58 | Should Be Equal ${resp.text} ${respbody} |
| 59 | |
| 60 | Stop-secure |
| 61 | [Arguments] ${respbody} |
| 62 | Create Session session https://localhost:8433/stopDatafile |
| 63 | ${resp}= Get Request session / |
| 64 | Should Be Equal ${resp.text} ${respbody} |
| 65 | |
| 66 | Start |
| 67 | [Arguments] ${respbody} |
| 68 | Create Session session http://localhost:8100/start |
| 69 | ${resp}= Get Request session / |
| 70 | Should Be Equal ${resp.text} ${respbody} |
| 71 | |
| 72 | Start-secure |
| 73 | [Arguments] ${respbody} |
| 74 | Create Session session https://localhost:8433/start |
| 75 | ${resp}= Get Request session / |
| 76 | Should Be Equal ${resp.text} ${respbody} |