Changeset 16451


Ignore:
Timestamp:
Aug 1, 2016, 3:45:35 PM (3 years ago)
Author:
dcorreia
Message:

Update gui testing folder.

Location:
internals/2016/linuxloginsmartcardwizard/trunk/guilearning/qtdesigner
Files:
3 added
6 deleted
1 edited

Legend:

Unmodified
Added
Removed
  • internals/2016/linuxloginsmartcardwizard/trunk/guilearning/qtdesigner/usefulsnippets.txt

    r16419 r16451  
    3131        print(inputText)
    3232        self.nextButton_1.setEnabled(testfunc.checkInput(inputText))
     33
     34
     35"""
     36    def test(self, id):
     37        if id == 1:
     38            print("Checking stuff... -> ", id)
     39            self.checkSystem()
     40        if id == 2:
     41            print("Checking stuff... -> ", id)
     42            self.button(QWizard.NextButton).setEnabled(False)
     43            self.fillUserListBox()
     44
     45        if id == 3:
     46            print("Checking stuff... -> ", id)
     47
     48    def boxtest(self):
     49        selected = self.userListBox.currentText()
     50        print("Current option -> ", selected)
     51        if selected != "List of usernames":
     52            self.goodUserLabel.show()
     53
     54    def hideGoodLabels(self):
     55        self.goodCardLabel.hide()
     56        self.goodUserLabel.hide()
     57        self.goodSystemLabel.hide()
     58       
     59    def checkSystem(self):
     60        print("Checking system packages...")
     61        self.goodSystemLabel.show()
     62
     63    def checkCard(self):
     64        print("Checking smartcard...")
     65        self.goodCardLabel.show()
     66
     67    def fillUserListBox(self):
     68        print("Filling combobox items list...")
     69        users = ["a","b","c"]
     70        self.userListBox.addItem("List of usernames")
     71        for user in users:
     72                    self.userListBox.addItem(user)
     73
     74"""
Note: See TracChangeset for help on using the changeset viewer.