提交 7ff6d19d 编写于 作者: zhangping's avatar zhangping

config

上级 515b0551
from unittest import TestCase
from appium import webdriver
host = "http://localhost:4723/wd/hub"
CONFIG = {
'PHONE_VERSION': '6.0.1',
'HSOT': "http://localhost:4723/wd/hub"
}
def get_caps(version='8.0.0'):
caps = {}
......@@ -21,4 +24,4 @@ class BasicCase(TestCase):
self.driver = webdriver.Remote(get_caps(), host)
"""
def setUp(self):
self.driver = webdriver.Remote(get_caps('6.0.1'), host)
self.driver = webdriver.Remote(get_caps(CONFIG['PHONE_VERSION']), CONFIG['HSOT'])
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册