Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgauravp94 <gparida94@gmail.com>2014-07-03 13:17:07 (GMT)
committer gauravp94 <gparida94@gmail.com>2014-08-01 08:54:02 (GMT)
commit982d3096194aaa091a1ff6df5d0c9ab02fe84a6e (patch)
tree812fe48e7e67a7c9d610ede67cb32a789c18bcae
parentdfc075728afa89892c0b50d58e3012ae856602a4 (diff)
Add UI Testtry5
-rw-r--r--tests/integration/test_operations.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/integration/test_operations.py b/tests/integration/test_operations.py
new file mode 100644
index 0000000..db9fa37
--- /dev/null
+++ b/tests/integration/test_operations.py
@@ -0,0 +1,21 @@
+#!/usr/bin/python
+# -*- coding: UTF-8 -*-
+
+from sugar3.test import unittest
+from sugar3.test import uitree
+
+class OperationsTest(unittest.UITestCase):
+
+ def setUp(self):
+ unittest.UITestCase.setUp(self)
+ self.bundle_id = "org.sugarlabs.HelloWorld"
+
+ """
+ Test to check the label in the Hello World Activity is equal to 'Hello World!'
+ """
+ def test_add_button(self):
+ with self.run_activity():
+ root = uitree.get_root()
+ activity = root.find_child(name="HelloWorld Activity", role_name="frame")
+ label = activity.find_child(name="Hello World!", role_name="label")
+ self.assertEqual(label.text, "Hello World!")