File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ Start And Import Remote Library
12
12
Set Pythonpath
13
13
${port } = Start Remote Library ${library }
14
14
Import Library Remote http://127.0.0.1:${port }
15
+ Set Suite Variable ${ACTIVE PORT } ${port }
15
16
Set Log Level DEBUG
16
17
17
18
Start Remote Library
@@ -36,7 +37,10 @@ Set Pythonpath
36
37
Set Environment Variable IRONPYTHONPATH ${src }
37
38
38
39
Stop Remote Library
39
- [Arguments] ${library } =${NONE }
40
40
Stop Remote Server
41
- ${result } = Wait For Process ${library } 10s terminate
42
- Log ${result.stdout }
41
+ Server Should Be Stopped And Correct Messages Logged
42
+
43
+ Server Should Be Stopped And Correct Messages Logged
44
+ ${result } = Wait For Process timeout=10s on_timeout=terminate
45
+ Should Be Equal ${result.stdout }
46
+ ... Robot Framework remote server starting at 127.0.0.1:${ACTIVE PORT } .
Original file line number Diff line number Diff line change @@ -85,10 +85,10 @@ def serve_forever(self):
85
85
def stop_remote_server (self ):
86
86
prefix = 'Robot Framework remote server at %s:%s ' % self .server_address
87
87
if self ._allow_stop :
88
- self ._log (prefix + 'stopping' )
88
+ self ._log (prefix + 'stopping. ' )
89
89
self ._shutdown = True
90
90
else :
91
- self ._log (prefix + 'does not allow stopping' , 'WARN' )
91
+ self ._log (prefix + 'does not allow stopping. ' , 'WARN' )
92
92
return True
93
93
94
94
def get_keyword_names (self ):
You can’t perform that action at this time.
0 commit comments