Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 14 additions & 1 deletion atests/res_setup.robot
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,27 @@ ${HTTP_LOCAL_SERVER} http://localhost:5000


*** Keywords ***

Setup Test Session
${test_session}= Set Variable test_session
Set Test Variable ${test_session}
Create Session ${test_session} ${HTTP_LOCAL_SERVER}

Teardown Test Session
Delete All Sessions

Setup Flask Http Server
${platform}= Evaluate sys.platform sys
${flask_cmd} = Set Variable If
... '${platform}'=='win32' ${CURDIR}/http_server/run.cmd
... ${CURDIR}/http_server/run.sh
Start Process ${flask_cmd} cwd=${CURDIR}/http_server/ alias=flask
Sleep 1 # I know... needed to let the http server start before starting the connection
Create Session ${GLOBAL_LOCAL_SESSION} ${HTTP_LOCAL_SERVER}
Wait Until Http Server Is Up And Running

Wait Until Http Server Is Up And Running
Create Session wait-until-up ${HTTP_LOCAL_SERVER} max_retries=10
Get Request wait-until-up /

Teardown Flask Http Server And Sessions
Delete All Sessions
Expand Down