Пример #1
0
    def startTest(self):

        # creation
        testView = QAUITestAppLib.UITestView(self.logger)
        # make user collection, since only user
        # collections can be displayed as a calendar
        col = QAUITestAppLib.UITestItem("Collection", self.logger)
        # name and then select collection
        col.SetDisplayName(uw("testCalView"))
        sb = QAUITestAppLib.App_ns.sidebar
        User.emulate_sidebarClick(sb, uw("testCalView"))

        # action
        # switch to calendar view
        testView.SwitchToCalView()
        # double click in the calendar view => event creation or selection
        ev = testView.DoubleClickInCalView()
        QAUITestAppLib.scripting.User.emulate_typing(uw("Writing tests"))
        QAUITestAppLib.scripting.User.emulate_return()

        # verification
        # check the detail view of the created event
        ev.Check_DetailView({"displayName": uw("Writing tests")})
 def startTest(self):
 
     # creation
     testView = QAUITestAppLib.UITestView(self.logger)
     # make user collection, since only user
     # collections can be displayed as a calendar
     col = QAUITestAppLib.UITestItem("Collection", self.logger)
     #name and then select collection
     col.SetDisplayName(uw("testCalView"))
     sb = QAUITestAppLib.App_ns.sidebar
     User.emulate_sidebarClick(sb, uw('testCalView'))
     
     # action
     # switch to calendar view
     testView.SwitchToCalView()       
     # double click in the calendar view => event creation or selection
     ev = testView.DoubleClickInCalView()         
     QAUITestAppLib.scripting.User.emulate_typing(uw("Writing tests"))
     QAUITestAppLib.scripting.User.emulate_return()
     
     # verification
     # check the detail view of the created event
     ev.Check_DetailView({"displayName":uw("Writing tests")})