コード例 #1
0
ファイル: intu_test.py プロジェクト: mcvw/intu_test
    def test_mt0(self):
        print("\n\t--> INTU MT0 Start")
        errorText = ""

        try:
            af.set_first_name(self)
            af.set_surname(self)
            af.set_email(self)
            af.set_date_of_birth(self)
            af.set_gender(self)

        except Exception as e:
            errorText = "MT0: " + str(e)
            self._verification_errors.append(errorText)
            raise e.with_traceback(sys.exc_info()[2])

        time.sleep(5)
        print("\t<-- INTU MT0 END")

        assert errorText == ""
コード例 #2
0
ファイル: intu_test.py プロジェクト: mcvw/intu_test
    def test_mt7(self):
        print("\n\t--> INTU MT7 Start")
        errorText = ""

        try:
            af.set_first_name(self, ac.FIRST_NAME)
            af.set_surname(self, ac.SURNAME)
            af.set_email(self, str(self._email_value) + ac.EMAIL)
            af.set_date_of_birth(self, ac.DD, ac.MM, ac.YYYY)
            af.set_gender(self)
            af.submit(self)
            af.check_message(self, ac.GENDER_ELEMENT, ac.GENDER_TEXT)

        except Exception as e:
            errorText = "MT7: " + str(e)
            self._verification_errors.append(errorText)
            raise e.with_traceback(sys.exc_info()[2])

        time.sleep(5)
        print("\t<-- INTU MT7 END")

        assert errorText == ""
コード例 #3
0
ファイル: intu_test.py プロジェクト: mcvw/intu_test
    def test_mt1(self):
        print("\n\t--> INTU MT1 Start")
        errorText = ""

        try:
            af.set_first_name(self, ac.FIRST_NAME)
            af.set_surname(self, ac.SURNAME)
            af.set_email(self, str(self._email_value) + ac.EMAIL)
            af.set_date_of_birth(self, ac.DD, ac.MM, ac.YYYY)
            af.set_gender(self, ac.GENDER)
            af.submit(self)
            af.check_message(self, ac.SUCCESS_ELEMENT, ac.SUCCESS_TEXT)

        except Exception as e:
            errorText = "MT1: " + str(e)
            self._verification_errors.append(errorText)
            raise e.with_traceback(sys.exc_info()[2])

        time.sleep(5)
        print("\t<-- INTU MT1 END")

        #self.assertEqual(u"You’ve been added to our mailing list. Look out for exciting intu offers and updates soon.", #driver.find_element_by_css_selector("#successMessage > p").text)
        assert errorText == ""