示例#1
0
def site():
    WebSite.init(EpamJDISite)
    logger.info("Run Tests from '{}' file".format(__name__))
    EpamJDISite.home_page.open()
    EpamJDISite.login_page.submit(User.default())

    yield

    try:
        WebSettings.quit_browser()
    except RuntimeError as e:
        logger.exception(e)
示例#2
0
 def init(site, driver_name):
     WebSettings.use_driver(driver_name)
     WebCascadeInit().init_site_page(site)
示例#3
0
文件: carrer_tests.py 项目: zyme/JDI
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except:
         pass
 def check_url(url):
     return match(
         ".*/" + str(url) + "(\\?.*)?",
         WebSettings.get_driver_factory().get_driver().current_url) != None
 def open_uri(uri):
     WebSettings.get_driver_factory().get_driver().get(uri)
示例#6
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except RuntimeError:
         pass
示例#7
0
 def check_url(url):
     return match(".*/" + str(url) + "(\\?.*)?", WebSettings.get_driver_factory().get_driver().current_url) != None
示例#8
0
 def open_uri(uri):
     WebSettings.get_driver_factory().get_driver().get(uri)
示例#9
0
文件: page_tests.py 项目: zyme/JDI
 def tearDown(self):
     WebSettings.quit_browser()
示例#10
0
 def tearDownClass(cls):
     WebSettings.quit_browser()
示例#11
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except RuntimeError as e:
         logging.exception(e)
示例#12
0
 def tearDownClass(cls):
     try:
         WebSettings.quit_browser()
     except:
         pass
示例#13
0
 def tearDownClass(cls):
     WebSettings.quit_browser()
示例#14
0
 def init(site, driver_name):
     WebSettings.use_driver(driver_name)
     WebCascadeInit().init_site_page(site)