27 lines
857 B
Python
27 lines
857 B
Python
from Tools.TestcaseBasicLibrary import *
|
|
from Pom.Home.Signup import *
|
|
|
|
|
|
@allure.epic('阿凡の博客 · 注册模块')
|
|
@allure.feature('测试注册站点')
|
|
class TestSignin:
|
|
def setup_class(self):
|
|
self.page = PageSignup(WebDriver()).open()
|
|
|
|
def teardown_class(self):
|
|
self.page.exit()
|
|
|
|
@allure.story('异常注册')
|
|
@allure.title('测试异常注册')
|
|
@allure.description('......')
|
|
@pytest.mark.parametrize(('username', 'password'), [['super', 'super'], ['guest', 'guest'], ['users', 'users']])
|
|
def test_errors_signin(self, username, password):
|
|
pass
|
|
|
|
@allure.story('正常注册')
|
|
@allure.title('测试正常注册')
|
|
@allure.description('......')
|
|
@pytest.mark.parametrize(('username', 'password'), [['admin', 'admin']])
|
|
def test_normal_signin(self, username, password):
|
|
pass
|