diff options
author | Cole Robinson <crobinso@redhat.com> | 2018-01-19 16:17:05 -0500 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2018-01-21 10:02:08 -0500 |
commit | a6c3fca7a7f1f8cb7ee16c6782093dfb8d3a1bf7 (patch) | |
tree | 020dcc46a21adba126748e0bd31a4e6c7f6931c2 | |
parent | a9ba930936b35a67581188ad6f9e33cc9c7f536a (diff) | |
download | virt-manager-a6c3fca7a7f1f8cb7ee16c6782093dfb8d3a1bf7.tar.gz |
uitests: Basic migration tests
-rw-r--r-- | tests/uitests/migrate.py | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/uitests/migrate.py b/tests/uitests/migrate.py new file mode 100644 index 00000000..d4c62115 --- /dev/null +++ b/tests/uitests/migrate.py @@ -0,0 +1,35 @@ +from tests.uitests import utils as uiutils + + +class VMMMigrate(uiutils.UITestCase): + """ + UI tests for the migrate dialog + """ + + ############## + # Test cases # + ############## + + def testMigrate(self): + # Add an additional connection + self.app.root.find("File", "menu").click() + self.app.root.find("Add Connection...", "menu item").click() + win = self.app.root.find_fuzzy("Add Connection", "dialog") + win.find_fuzzy("Hypervisor", "combo box").click() + win.find_fuzzy("Custom URI", "menu item").click() + win.find("uri-entry", "text").text = "test:///default" + win.find("Connect", "push button").click() + + uiutils.check_in_loop(lambda: win.showing is False) + c = self.app.root.find("test-many-devices", "table cell") + c.click(button=3) + self.app.root.find("Migrate...", "menu item").click() + + mig = self.app.root.find("Migrate the virtual machine", "frame") + mig.find("Advanced", "toggle button").click_expander() + mig.find("Migrate", "push button").click() + alert = self.app.root.find("vmm dialog", "alert") + alert.find_fuzzy("the connection driver: virDomainMigrate") + alert.find("Close", "push button").click() + mig.find("Cancel", "push button").click() + uiutils.check_in_loop(lambda: not mig.showing) |