Beispiel #1
0
class AssignmentTestCase(unittest.TestCase):
    def setUp(self):
        self.one_page = MailHandler("https://mail.google.com/", "Кирилл Митрохин", "*****@*****.**")

    @allure.feature('Feature1')
    @allure.story('Story1')
    # Check first
    def test_is_login_in(self):
        self.one_page.login_in()

    def test_is_send_mail(self):
        self.one_page.send_mail()

    def tearDown(self):
        pass
Beispiel #2
0
class MailWorkTestCase(unittest.TestCase):
    def setUp(self):
        self.MailHandler = MailHandler("https://mail.google.com/")
        self.MailHandler.login_in('emai', 'pass')

    def test_recive(self):
        self.MailHandler.login_in('emai', 'pass')
        self.assertEqual(self.MailHandler.logged, True)

    def test_fail_login(self):
        self.MailHandler.login_in('emai', 'pass')
        self.assertEqual()

    def tearDown(self):
        self.MailHandler.shutdown()
Beispiel #3
0
from class_mail import MailHandler
from config import Config

# some business logic for fun
# one_page = class_mail.MailPage("https://mail.google.com/", "Кирилл Митрохин", "*****@*****.**")
# one_page.login_in(Config.MAIl_ADDRESS, Config.MAIL_PASSWORD)
# one_page.send_mail()


one_page = MailHandler("https://mail.google.com/")

trigger_login = one_page.login_in(Config.MAIl_ADDRESS, Config.MAIL_PASSWORD)
print('main', trigger_login)
if not trigger_login:
    one_page.shutdown()
# print("main", one_page.check_new_mails())
Beispiel #4
0
 def setUp(self):
     self.MailHandler = MailHandler("https://mail.google.com/")
Beispiel #5
0
 def setUp(self):
     self.one_page = MailHandler("https://mail.google.com/", "Кирилл Митрохин", "*****@*****.**")
Beispiel #6
0
 def setUp(self):
     self.MailHandler = MailHandler("https://mail.google.com/")
     self.MailHandler.login_in('emai', 'pass')