Commit 9e5c9f84 by 宋鹏博

1

parent bb5a5363
# import time
#
# import pytest
# from selenium.webdriver.common.by import By
#
# from kuangjia.Base.BasePage import BasePage
# from kuangjia.common.cutils import get_text
#
#
# class TestLogin:
# @pytest.mark.parametrize("user,password,result",
# [("黑泽爽子", "Rmb11111", "密码错误"), ("黑泽爽子1", "Rmb88888", "账号不存在")])
# def test_add(self, user, password, result):
# base = BasePage()
# base.driver.get('https://rays7.5rs.me/login')
# base.find_ele((By.ID, 'userName')).send_keys(user)
# time.sleep(3)
# base.find_ele((By.ID, 'pwd')).send_keys(password)
# base.find_ele((By.XPATH, "//button[@class='ant-btn ant-btn-primary ant-btn-lg ant-btn-block']//span")).click()
# time.sleep(1)
# a = get_text((By.XPATH, '/html/body/div[2]/div/div/div/div/div/span[2]'))
# assert result == a
# print(a)
import os
import pytest
pytest.main([r"D:\software\QiSelenium\kuangjia\script\test_create.py",
"-sv", "--alluredir", "./report/temp_jsonreport"])
os.system("allure generate ./report/temp_jsonreport -o ./report/html --clean")
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