Revision: 3100
Author: jprantan
Date: Wed Apr 28 02:45:48 2010
Log: Initial tests to be used from other machine.
http://code.google.com/p/robotframework/source/detail?r=3100

Added:
 /trunk/atest/robot/running/stopping_with_signal.txt
 /trunk/atest/testdata/running/stopping_with_signal
 /trunk/atest/testdata/running/stopping_with_signal/Library.py
 /trunk/atest/testdata/running/stopping_with_signal/keyword-timeout.txt
 /trunk/atest/testdata/running/stopping_with_signal/run_keyword.txt
 /trunk/atest/testdata/running/stopping_with_signal/test-timeout.txt
 /trunk/atest/testdata/running/stopping_with_signal/without_any_timeout.txt

=======================================
--- /dev/null
+++ /trunk/atest/robot/running/stopping_with_signal.txt Wed Apr 28 02:45:48 2010
@@ -0,0 +1,27 @@
+*** Settings ***
+Force Tags      not-ready
+Default Tags    pybot  jybot
+Resource        atest_resource.txt
+
+*** Test Cases ***
+SIGINT Signal Should Stop Test Execution Gracefully
+    Start Test Execution
+
+SIGTERM Signal Should Stop Test Execution Gracefully
+
+One Signal Should Stop Test Execution Gracefully  When Run Keyword Is Used
+
+One Signal Should Stop Test Execution Gracefully When Test Timeout Is Used
+
+One Signal Should Stop Test Execution Gracefully When Keyword Timeout Is Used
+
+Two SIGINT Signals Should Stop Test Execution Forcefully
+
+Two SIGTERM Signals Should Stop Test Execution Forcefully
+
+Two Signals Should Stop Test Execution Forcefully When Run Keyword Is Used
+
+Two Signals Should Stop Test Execution Forcefully When Test Timeout Is Used
+
+Two Signals Should Stop Test Execution Forcefully When Keyword Timeout Is Used
+
=======================================
--- /dev/null
+++ /trunk/atest/testdata/running/stopping_with_signal/Library.py Wed Apr 28 02:45:48 2010
@@ -0,0 +1,7 @@
+import time
+
+class Library:
+    def my_sleep(self, seconds):
+        start_time = time.time()
+        while (time.time() - int(seconds) < start_time):
+            time.sleep(1)
=======================================
--- /dev/null
+++ /trunk/atest/testdata/running/stopping_with_signal/keyword-timeout.txt Wed Apr 28 02:45:48 2010
@@ -0,0 +1,15 @@
+*** Settings ***
+Library  Library.py
+
+*** Test Case ***
+Test
+  Timeout In UK
+
+Test 2
+  No operation
+
+*** Keywords ***
+Timeout In UK
+  [Timeout]  3 seconds
+  My Sleep  2
+
=======================================
--- /dev/null
+++ /trunk/atest/testdata/running/stopping_with_signal/run_keyword.txt Wed Apr 28 02:45:48 2010
@@ -0,0 +1,11 @@
+*** Settings ***
+Library  Library.py
+
+*** Test Case ***
+Test
+  Run Keyword  My Sleep  5
+  No Operation
+
+Test 2
+  No Operation
+
=======================================
--- /dev/null
+++ /trunk/atest/testdata/running/stopping_with_signal/test-timeout.txt Wed Apr 28 02:45:48 2010
@@ -0,0 +1,10 @@
+*** Settings ***
+Library  Library.py
+
+*** Test Case ***
+Test  [timeout]  3 Seconds
+  My Sleep  2
+  No Operation
+
+Test 2
+  No Operation
=======================================
--- /dev/null
+++ /trunk/atest/testdata/running/stopping_with_signal/without_any_timeout.txt Wed Apr 28 02:45:48 2010
@@ -0,0 +1,10 @@
+*** Settings ***
+Library  Library.py
+
+*** Test Case ***
+Test
+  My Sleep  2
+  No Operation
+
+Test 2
+  No Operation

Reply via email to