diff --git a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/ErrorSituationsDuringSlimServerStartup/C_TimeoutAsNoServerAtGivenSocket/content.txt b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/ErrorSituationsDuringSlimServerStartup/C_TimeoutAsNoServerAtGivenSocket/content.txt index e03ad1c3e1..cc726b1cfa 100644 --- a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/ErrorSituationsDuringSlimServerStartup/C_TimeoutAsNoServerAtGivenSocket/content.txt +++ b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/ErrorSituationsDuringSlimServerStartup/C_TimeoutAsNoServerAtGivenSocket/content.txt @@ -5,17 +5,19 @@ To test this we run in debug mode and request to start the slim server ourselfs. Use the property slim.timeout to define how long the test system should wait for the slim client. The default is 10 seconds. In this test we set it to 1 second. -!| script | -| create page | TestPage | with content | !- +# To run this test interactive don't forget to add at the end "&remote_debug" to the rest test command + +!| script | +|create page|TestPage|with content|!- !define TEST_SYSTEM {SLIM} !define slim.timeout {1} !define SLIM_PORT {8099} !define MANUALLY_START_TEST_RUNNER_ON_DEBUG (true) -! | -| check | request page | TestPage?test&remote_debug | 200 | -|ensure |content contains |Error connecting to SLiM server on localhost:| -| show collapsed| content | -| check | request page | TestPage?executionLog| 200 | -|ensure | content matches | Time elapsed:.* seconds | -| show collapsed| content | +|check |request page |TestPage?test&remote_debug |200 | +|ensure |content contains|Unable to start test system 'SLIM': fitnesse.slim.SlimError: Error connecting to SLiM server on localhost:| +|show collapsed|content | +|check |request page |TestPage?executionLog |200 | +|ensure |content matches |Time elapsed:.* seconds | +|show collapsed|content | diff --git a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/content.txt b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/content.txt deleted file mode 100644 index 4842af1b3a..0000000000 --- a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/content.txt +++ /dev/null @@ -1,16 +0,0 @@ -For this test to perform we reduce the timeout to 1 second. If the server is not responding in time, we should raise an error. - -#!define slim.timeout {2} -#!define SLIM_PORT {8099} -#!define TEST_RUNNER {fitnesse.slim.test.Sleep} -#|fitnesse.fixtures.Sleep|20000| - -!| script | -|given page|TestPage|with content|${SUT_PATH} !- -!define TEST_SYSTEM {slim} -!define SLIM_PORT {8099} -!define slim.timeout {1} -!define TEST_RUNNER {fitnesse.slim.test.Sleep} -|fitnesse.fixtures.Sleep|20000| --! | -|test results for page|TestPage|should contain|Unable to start test system 'slim': fitnesse.slim.SlimError: Error connecting to SLiM server on localhost:| diff --git a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/properties.xml b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/properties.xml deleted file mode 100644 index 55bd9cda11..0000000000 --- a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/SlimConnectionTimeout/properties.xml +++ /dev/null @@ -1,12 +0,0 @@ - - -true -true -true -true -true -true -true -true -true - diff --git a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/TimeoutInSlimTestSystem/content.txt b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/TimeoutInSlimTestSystem/content.txt index c7b8d0e429..eb3b27f10f 100644 --- a/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/TimeoutInSlimTestSystem/content.txt +++ b/FitNesseRoot/FitNesse/SuiteAcceptanceTests/SuiteSlimTests/TestSystemSlimSuite/TimeoutInSlimTestSystem/content.txt @@ -1,13 +1,15 @@ -For this test to perform we reduce the timeout to 2 seconds. If the server is not responding in time, we should raise an error. +For this test to perform we reduce the timeout to 1 seconds. If the server is not responding in time, we should raise an error. -#!define slim.flags {-s 12} -#|fitnesse.fixtures.Sleep|20000| -!| script | +!|script | |given page|TestPage|with content|${SUT_PATH} !- !define TEST_SYSTEM {slim} -!define slim.flags {-s 2} -|fitnesse.fixtures.Sleep|20000| --! | -|test results for page|TestPage|should contain|The instruction timed out after 2 seconds| -|test results for page in debug mode|TestPage|should contain|The instruction timed out after 2 seconds| +!define slim.flags {-s 1} +#Will pass +|fitnesse.fixtures.Sleep|20| + +#Will fail +|fitnesse.fixtures.Sleep|90000| +-!| +|test results for page in debug mode|TestPage|should contain|The instruction timed out after 1 seconds | +|test results for page in debug mode|TestPage|should contain|!-span class="pass">fitnesse.fixtures.Sleep