Commit 59a4c502 by linguangwei

review

parent bd45c632
......@@ -109,7 +109,7 @@ def create_a_live(start_time, start_time2=None, user="lgw-b"):
storeUserId = basic_imforation['storeUserId']
enterpriseId = basic_imforation['enterpriseId']
while xmtoken == "登录过频繁":
# 休息5s是因为可能会登录频繁
# 休息15s是因为可能会登录频繁
time.sleep(15)
xmtoken = get_token()
print(xmtoken)
......
......@@ -201,7 +201,7 @@ class Page(object):
# login_page.sleep(2)
login_page.input_text(account_input, readConfig.test_header(user)['username'])
login_page.input_text(password_input, readConfig.test_header(user)['username'])
login_page.input_text(password_input, readConfig.test_header(user)['password'])
login_page.click(login_button)
login_page.sleep(2)
login_page.click_text("取 消")
......
......@@ -10,9 +10,10 @@ from config import readConfig
class TestLoginPage(object):
@pytest.fixture(scope="function")
def before_test_case(self):
self.user = "lgw-b"
self.logger = Logger('login page').getlog()
self.account = readConfig.test_account()
self.password = readConfig.test_password()
self.account = readConfig.test_header(self.user)['username']
self.password = readConfig.test_header(self.user)['password']
cloud_class_location = readConfig.test_location()
self.env = readConfig.get_env()
# 指定客户端的本地路径,在/config/config.ini配置
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment