File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -9,15 +9,15 @@ Stop Remote Server
99
1010SIGINT
1111 Skip On Windows
12- Send Signal To Process SIGINT
12+ Send Signal To Remote Server SIGINT
1313
1414SIGHUP
1515 Skip On Windows
16- Send Signal To Process SIGHUP
16+ Send Signal To Remote Server SIGHUP
1717
1818SIGTERM
1919 Skip On Windows
20- Send Signal To Process SIGTERM
20+ Send Signal To Remote Server SIGTERM
2121
2222*** Keywords ***
2323Start Server
@@ -36,3 +36,8 @@ Server Should Be Stopped
3636
3737Skip On Windows
3838 Run Keyword If "${: } " == ";" Fail Skipped on Windows skip
39+
40+ Send Signal To Remote Server
41+ [Arguments] ${signal }
42+ ${process pid } = Run Keyword ${TEST NAME } .get_pid
43+ Evaluate os.kill(${process pid } , signal.${signal } ) os,signal
Original file line number Diff line number Diff line change 1+ import os
2+
3+
14class BasicCommunication (object ):
25 """Testing basic communication and keyword documentation."""
36
@@ -8,6 +11,12 @@ def passing(self):
811 """
912 pass
1013
14+ def get_pid (self ):
15+ """
16+ Returns process id for the remote server that is serving this library.
17+ """
18+ return os .getpid ()
19+
1120 def failing (self , message ):
1221 """This keyword fails with provided `message`"""
1322 raise AssertionError (message )
You can’t perform that action at this time.
0 commit comments