Beispiel #1
0
 def __init__(self, driver=None, testing_page=config.PROFIREADER_URL, login_link=config.MAIL_LOGIN,
              user_email=config.MAIL_GMAIL, user_password=config.MAIL_PWD, mail_inbox=config.MAIL_INBOX):
     super().__init__(driver=driver)
     self.driver = driver
     self.testing_page = testing_page
     self.login_link = login_link
     self.mail_inbox = mail_inbox
     self.user_email = user_email
     self.user_password = user_password
     cur.execute("SELECT data FROM test_data WHERE test_name='Logination'; ")
     elem = cur.fetchone()[0]
     self.profi_email = elem.get('user_mail')
     cur.execute("SELECT data FROM test_data WHERE test_name='LogedIn'; ")
     el = cur.fetchone()[0]
     self.email = el.get('user_mail')
Beispiel #2
0
 def __init__(self, driver=None, testing_page=config.PROFIREADER_URL, user_name=config.USER['name']):
     super().__init__(driver)
     self.driver = driver
     self.testing_page = testing_page
     self.user_name = user_name
     cur.execute("SELECT data FROM test_data WHERE test_name='Logination'; ")
     elem = cur.fetchone()[0]
     # print(elem.get('user_pass'))
     # print(elem.get('user_mail'))
     self.user_email = elem.get('user_mail')
     self.user_password = elem.get('user_pass')
Beispiel #3
0
 def __init__(self, driver=None, testing_page=config.PROFIREADER_URL, user_name=None,
              user_mail=None, user_pass=None):
     self.driver = driver
     self.testing_page = testing_page
     self.user_name = user_name
     cur.execute("SELECT data FROM test_data WHERE test_name='LogedIn'; ")
     elem = cur.fetchone()[0]
     print(elem.get('password'))
     print(elem.get('email'))
     self.user_email = elem.get('email')
     self.user_password = elem.get('password')
     super().__init__(device=self.device, driver=self.driver, testing_page=self.testing_page)