[gnome-boxes/wip/automated-tests: 6/19] Add SPICE tests



commit 0b0bc455cd0fce385b9b63cfea44bb582da849cc
Author: Vladimir Benes <vbenes redhat com>
Date:   Tue Jan 6 09:45:46 2015 -0500

    Add SPICE tests
    
    Spice is tested via localhost connection and network up/down with ping
    from inside the machine to check if typing works.
    
    Coverage:
     * new spice localhost connection
     * restart persistence
    
    https://bugzilla.gnome.org/review?bug=736288

 Makefile.am         |    1 +
 tests/README        |    3 +++
 tests/spice.feature |   28 ++++++++++++++++++++++++++++
 3 files changed, 32 insertions(+), 0 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 31f11cb..7212b97 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -80,6 +80,7 @@ INSTALLED_TESTS=                              \
        livecd.feature                          \
        multi-windows.feature                   \
        snapshots.feature                       \
+       spice.feature                           \
        $(NULL)
 INSTALLED_TESTS_TYPE=session-exclusive
 -include $(top_srcdir)/git.mk
diff --git a/tests/README b/tests/README
index ef4cf4c..8838548 100644
--- a/tests/README
+++ b/tests/README
@@ -30,6 +30,9 @@ Structure
   * snapshots.feature
     * create and revert snapshots
     * delete snapshot
+  * spice.feature
+    * connect to spice box
+    * restart persistence
 * Environment file
   * everything for setting/cleaning up the environment
 * Steps
diff --git a/tests/spice.feature b/tests/spice.feature
new file mode 100644
index 0000000..1cca61c
--- /dev/null
+++ b/tests/spice.feature
@@ -0,0 +1,28 @@
+Feature: Spice
+
+  Background:
+    * Make sure that gnome-boxes is running
+    * Wait until overview is loaded
+
+  @new_spice_localhost_box
+  Scenario: New spice box
+    * Create new box "Core-5"
+    * Create new box from url "spice://127.0.0.1?port=5900;"
+    * Wait for "sleep 2" end
+    * Press "Create"
+    Then Box "127.0.0.1" "does" exist
+    * Go into "127.0.0.1" box
+    * Wait for "sleep 1" end
+    * Type "sudo ifconfig eth0 down"
+    * Wait for "sleep 5" end
+    Then Cannot ping "Core-5"
+
+  @spice_restart_persistence
+  Scenario: Spice system persistence
+    * Initiate new box "Core-5" installation
+    * Create new box from url "spice://127.0.0.1?port=5900;"
+    * Wait for "sleep 1" end
+    * Press "Create"
+    * Quit Boxes
+    * Start Boxes
+    Then Box "127.0.0.1" "does" exist


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]