Index: .gitignore =================================================================== diff -u --- .gitignore (revision 0) +++ .gitignore (revision 5e50c9793e8200292af43dec8657e659a16deca4) @@ -0,0 +1 @@ +*.pyc Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `shared/scripts/bdd_hooks.py'. Fisheye: No comparison available. Pass `N' to diff? Index: shared/scripts/names.py =================================================================== diff -u -r9002496389b9df6383fc0fcc47fa6754ca7e14a6 -r5e50c9793e8200292af43dec8657e659a16deca4 --- shared/scripts/names.py (.../names.py) (revision 9002496389b9df6383fc0fcc47fa6754ca7e14a6) +++ shared/scripts/names.py (.../names.py) (revision 5e50c9793e8200292af43dec8657e659a16deca4) @@ -1,15 +1,24 @@ # encoding: UTF-8 -from objectmaphelper import * - o_QQuickView = {"type": "QQuickView", "unnamed": 1, "visible": True} -o_homeScreen_ui = {"container": o_QQuickView, "id": "_homeScreen", "type": "Home.ui", "unnamed": 1, "visible": True} -o_homeScreen_Start_Treatment_Text = {"container": o_homeScreen_ui, "text": "Start Treatment", "type": "Text", "unnamed": 1, "visible": True} -o_startTreatmentScreen_ui = {"container": o_QQuickView, "id": "_startTreatmentScreen", "type": "StartTreatment.ui", "unnamed": 1, "visible": True} -o_startTreatmentScreen_label_MnemonicLabel = {"container": o_startTreatmentScreen_ui, "objectName": "label", "type": "MnemonicLabel", "visible": True} -o_homeScreen_backgroundRect_Rectangle = {"container": o_homeScreen_ui, "id": "backgroundRect", "type": "Rectangle", "unnamed": 1, "visible": True} -o_startTreatmentScreen_Back_Button = {"checkable": False, "container": o_startTreatmentScreen_ui, "id": "btnBack", "text": "Back", "type": "Button", "unnamed": 1, "visible": True} -o_homeScreen_Treatment_Manager_Text = {"container": o_homeScreen_ui, "text": "Treatment Manager", "type": "Text", "unnamed": 1, "visible": True} -o_treatmentMansagerScreen_ui = {"container": o_QQuickView, "id": "_treatmentMansagerScreen", "type": "TreatmentManager.ui", "unnamed": 1, "visible": True} -o_treatmentMansagerScreen_label_MnemonicLabel = {"container": o_treatmentMansagerScreen_ui, "objectName": "label", "type": "MnemonicLabel", "visible": True} -o_treatmentMansagerScreen_Back_Button = {"checkable": False, "container": o_treatmentMansagerScreen_ui, "id": "btnBack", "text": "Back", "type": "Button", "unnamed": 1, "visible": True} + +# Home Screen +o_treatmentHome = {"container": o_QQuickView , "id": "_treatmentHome" , "type": "TreatmentHome", "unnamed": 1, "visible": True} +o_treatmentHome_backgroung = {"container": o_treatmentHome, "id": "_backgroundRect" , "type": "Rectangle" , "unnamed": 1, "visible": True} +o_treatmentHome_startTreatment = {"container": o_treatmentHome, "id": "_startTreatmentRect" , "type": "TouchRect" , "unnamed": 1, "visible": True} +o_treatmentHome_createTreatment = {"container": o_treatmentHome, "id": "_createTreatmentRect", "type": "TouchRect" , "unnamed": 1, "visible": True} + +# Main Menu +o_mainMenu = {"container": o_QQuickView, "id": "_mainMenu" , "type": "MainMenu" , "unnamed": 1 , "visible": True} +o_mainMenu_treatment = {"container": o_mainMenu , "id": "_touchRect", "type": "TouchRect", "objectName": "_touchRect0", "visible": True} +o_mainMenu_manager = {"container": o_mainMenu , "id": "_touchRect", "type": "TouchRect", "objectName": "_touchRect1", "visible": True} +o_mainMenu_settings = {"container": o_mainMenu , "id": "_touchRect", "type": "TouchRect", "objectName": "_touchRect2", "visible": True} + +# manager menu item +o_managerHome = {"container": o_QQuickView , "id": "_managerHome" , "type": "ScreenItem", "unnamed": 1, "visible": True} +o_managerHome_background = {"container": o_managerHome, "id": "_backgroundRect", "type": "Rectangle" , "unnamed": 1, "visible": True} + +# settings menu item +o_settingsHome = {"container": o_QQuickView , "id": "_settingsHome" , "type": "ScreenItem", "unnamed": 1, "visible": True} +o_settingsHome_background = {"container": o_settingsHome, "id": "_backgroundRect", "type": "Rectangle" , "unnamed": 1, "visible": True} + Index: shared/scripts/names.pyc =================================================================== diff -u -r9002496389b9df6383fc0fcc47fa6754ca7e14a6 -r5e50c9793e8200292af43dec8657e659a16deca4 Binary files differ Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `shared/steps/steps.py'. Fisheye: No comparison available. Pass `N' to diff? Index: suite.conf =================================================================== diff -u -r9002496389b9df6383fc0fcc47fa6754ca7e14a6 -r5e50c9793e8200292af43dec8657e659a16deca4 --- suite.conf (.../suite.conf) (revision 9002496389b9df6383fc0fcc47fa6754ca7e14a6) +++ suite.conf (.../suite.conf) (revision 5e50c9793e8200292af43dec8657e659a16deca4) @@ -4,6 +4,6 @@ IMPLICITAUTSTART=0 LANGUAGE=Python OBJECTMAPSTYLE=script -TEST_CASES=tst_Treatment tst_Manager +TEST_CASES=tst_pythonversion tst_homescreen VERSION=3 WRAPPERS=Qt Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `tst_Manager/test.feature'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `tst_Manager/test.py'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `tst_Treatment/test.feature'. Fisheye: No comparison available. Pass `N' to diff? Fisheye: Tag 5e50c9793e8200292af43dec8657e659a16deca4 refers to a dead (removed) revision in file `tst_Treatment/test.py'. Fisheye: No comparison available. Pass `N' to diff? Index: tst_homescreen/test.py =================================================================== diff -u --- tst_homescreen/test.py (revision 0) +++ tst_homescreen/test.py (revision 5e50c9793e8200292af43dec8657e659a16deca4) @@ -0,0 +1,25 @@ +# -*- coding: utf-8 -*- + +import names + +def main(): + startApplication("denali") + + test.compare( waitForObjectExists(names.o_treatmentHome).visible, True) + test.compare(str(waitForObjectExists(names.o_treatmentHome_startTreatment ).text.text), "START TREATMENT" ) + test.compare(str(waitForObjectExists(names.o_treatmentHome_createTreatment).text.text), "CREATE TREATMENT") + + test.compare( waitForObjectExists(names.o_mainMenu).visible, True) + test.compare(str(waitForObjectExists(names.o_mainMenu_treatment).text.text), "Treatment") + test.compare(str(waitForObjectExists(names.o_mainMenu_manager ).text.text), "Manager" ) + test.compare(str(waitForObjectExists(names.o_mainMenu_settings ).text.text), "Settings" ) + + mouseClick (waitForObjectExists(names.o_mainMenu_manager )) + test.compare(waitForObjectExists(names.o_managerHome ).visible, True) + + mouseClick (waitForObjectExists(names.o_mainMenu_settings )) + test.compare(waitForObjectExists(names.o_settingsHome ).visible, True) + + mouseClick (waitForObjectExists(names.o_mainMenu_treatment)) + test.compare(waitForObjectExists(names.o_treatmentHome).visible, True) + Index: tst_pythonversion/test.py =================================================================== diff -u --- tst_pythonversion/test.py (revision 0) +++ tst_pythonversion/test.py (revision 5e50c9793e8200292af43dec8657e659a16deca4) @@ -0,0 +1,6 @@ +import sys + +def main(): + test.compare(sys.version_info.major,3) + test.compare(sys.version_info.minor,6) + test.compare(sys.version_info.micro,4) \ No newline at end of file