diff options
author | gauravp94 <gparida94@gmail.com> | 2014-07-03 13:17:07 (GMT) |
---|---|---|
committer | gauravp94 <gparida94@gmail.com> | 2014-07-03 13:17:07 (GMT) |
commit | 76f6989074be0182c3eaf624e08776141bb6622a (patch) | |
tree | 2f038c77d7be9de391c0ae820797befd55fbbe64 | |
parent | dfc075728afa89892c0b50d58e3012ae856602a4 (diff) |
Add UI Testtry4
-rw-r--r-- | tests/integration/test_operations.py | 21 |
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..eed8fec --- /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!") |