11*** Settings ***
2- Test Teardown Terminate All Processes
2+ Suite Teardown Terminate All Jupyter Servers
33Library JupyterLibrary
44Library Process
55Library OperatingSystem
66
77*** Test Cases ***
88Start one server
9- ${nbserver } = Start New Jupyter Server
9+ ${nbserver } = Start New Jupyter Server stdout= ${ OUTPUT_DIR }${ / } one_server.log stderr=STDOUT
1010 ${ready } = Wait for Jupyter Server to be Ready
1111 Should be equal as integers ${ready } 1 msg=One server should be ready
1212 ${terminated } = Terminate All Jupyter Servers
@@ -15,25 +15,23 @@ Start one server
1515 Should Contain ${log } The Jupyter Notebook is running msg=Log should contain expected status message
1616
1717Start three servers
18- ${nb1 } = Start New Jupyter Server
19- ${nb2 } = Start New Jupyter Server
18+ ${nb1 } = Start New Jupyter Server stdout= ${ OUTPUT_DIR }${ / } one_of_three_server.log stderr=STDOUT
19+ ${nb2 } = Start New Jupyter Server stdout= ${ OUTPUT_DIR }${ / } two_of_three_server.log stderr=STDOUT
2020 ${ready } = Wait for Jupyter Server to be Ready ${nb2 } ${nb1 }
2121 Should be equal as integers ${ready } 2 msg=Three servers should be ready
22- ${nb3 } = Start New Jupyter Server
22+ ${nb3 } = Start New Jupyter Server stdout= ${ OUTPUT_DIR }${ / } three_of_three_server.log stderr=STDOUT
2323 ${terminated } = Terminate All Jupyter Servers
2424 Should be equal as integers ${terminated } 3 msg=Three servers should have been terminated
2525 ${log1 } = Get Process Result ${nb1 } stderr=${True }
2626 Should Contain ${log1 } The Jupyter Notebook is running msg=Log should contain expected status message
2727 ${log2 } = Get Process Result ${nb2 } stderr=${True }
2828 Should Contain ${log2 } The Jupyter Notebook is running msg=Log should contain expected status message
29- ${log3 } = Get Process Result ${nb3 } stderr=${True }
30- Should Not Contain ${log3 } The Jupyter Notebook is running msg=Unawaited server log should not contain expected status message
3129 ${terminated } = Terminate All Jupyter Servers
3230 Should be equal as integers ${terminated } 0 msg=No servers should have been terminated
3331
3432Notebook Files
3533 [Setup] Create File ${OUTPUT_DIR }${/ } foo.txt bar
36- ${nb1 } = Start New Jupyter Server
34+ ${nb1 } = Start New Jupyter Server stdout= ${ OUTPUT_DIR }${ / } files.log stderr=STDOUT
3735 Copy Files to Jupyter Directory ${OUTPUT_DIR }${/ } *.txt
3836 ${nbdir } = Get Jupyter Directory ${nb1 }
3937 ${out } = Get File ${nbdir }${/ } foo.txt
0 commit comments