Commit 29345dfd by jiaqiying

modify xlrd

parent 1f1af7a0
......@@ -5,12 +5,12 @@ name = "aliyun"
[packages]
requests = "==2.22.0"
xlrd = "==2.0.0"
pytest = "==6.0.1"
allure-pytest = "==2.8.18"
redis = "==3.5.3"
pymysql = "==0.9.3"
pycryptodome = "*"
xlrd = "==1.2.0"
[dev-packages]
......
{
"_meta": {
"hash": {
"sha256": "31c5acc534a4ae37174f8e26aec0db2e2ef5885ff8dbe54f349904ea7a523c7e"
"sha256": "b596032d7883761b5022d64a01df3e534a2ea1d5050ab4b52dce20d31a7bddcc"
},
"pipfile-spec": 6,
"requires": {
......@@ -185,11 +185,11 @@
},
"six": {
"hashes": [
"sha256:30639c035cdb23534cd4aa2dd52c3bf48f06e5f4a941509c8bafd8ce11080259",
"sha256:8b74bedcbbbaca38ff6d7491d76f2b06b3592611af620f8426e82dddb04a5ced"
"sha256:1e61c37477a1626458e36f7b1d82aa5c9b094fa4802892072e49de9c60c4c926",
"sha256:8abb2f1d86890a2dfb989f9a77cfcfd3e47c2a354b01111771326f8aa26e0254"
],
"markers": "python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'",
"version": "==1.15.0"
"version": "==1.16.0"
},
"toml": {
"hashes": [
......@@ -218,11 +218,11 @@
},
"xlrd": {
"hashes": [
"sha256:27aad20e1aa30c5062665dc37b6530c32eb2e24229b1568554f0cadab4b75457",
"sha256:e1ae0dbdb0a4888e381255f9aefe3efcd7ea64a35666e7a03c3f3c9e4b44641b"
"sha256:546eb36cee8db40c3eaa46c351e67ffee6eeb5fa2650b71bc4c758a29a1b29b2",
"sha256:e551fb498759fa3a5384a94ccd4c3c02eb7c00ea424426e212ac0c57be9dfbde"
],
"index": "aliyun",
"version": "==2.0.0"
"version": "==1.2.0"
},
"zipp": {
"hashes": [
......
......@@ -8,7 +8,7 @@ class BaseConfig():
name = "auto"
test_case_dir = "test_case/"
salt = 'hikcreate_xj' # SSO 登录的东西
secs=0.1
secs=0.2
class BMCConfig(BaseConfig):
......
{"name": "登录认证", "status": "passed", "description": "url:/auth/login 。。。。", "parameters": [{"name": "inData", "value": "{'url': '/auth/login', 'headers': {'Authorization': '', 'Content-Type': 'application/x-www-form-urlencoded'}, 'method': 'POST', 'reqData': {'username': '', 'password': 'A123456'}, 'expectData': {'success': False, 'code': '10002', 'message': '验证码错误'}}"}], "start": 1620383701300, "stop": 1620383701455, "uuid": "a57422e3-4ba9-48ae-934d-3c4fdbc5c495", "historyId": "af38117c4c0e6ef678fbbbd151a19419", "testCaseId": "71872482b1d2eb2e3e0a870a3b3f3bd4", "fullName": "test_case.bmy.test_login.TestLogin#test_login", "labels": [{"name": "story", "value": "登录"}, {"name": "feature", "value": "登录模块"}, {"name": "epic", "value": "营运车企业端"}, {"name": "parentSuite", "value": "test_case.bmy"}, {"name": "suite", "value": "test_login"}, {"name": "subSuite", "value": "TestLogin"}, {"name": "host", "value": "ubuntu"}, {"name": "thread", "value": "12477-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.bmy.test_login"}], "links": [{"type": "test_case", "url": "http://yapi.hikcreate.com/", "name": "http://yapi.hikcreate.com/"}]}
\ No newline at end of file
{"name": "登录认证", "status": "passed", "description": "url:/auth/login 。。。。", "parameters": [{"name": "inData", "value": "{'url': '/auth/login', 'headers': {'Authorization': '', 'Content-Type': 'application/x-www-form-urlencoded'}, 'method': 'POST', 'reqData': {'username': '15150000000', 'password': ''}, 'expectData': {'success': False, 'code': '500', 'message': '用户名或者密码输入错误'}}"}], "start": 1620383701658, "stop": 1620383701989, "uuid": "9b3b6a00-60fe-4caa-878e-654a8a04a065", "historyId": "8777fe7e2e8f6f4777453fed833c6d7e", "testCaseId": "71872482b1d2eb2e3e0a870a3b3f3bd4", "fullName": "test_case.bmy.test_login.TestLogin#test_login", "labels": [{"name": "story", "value": "登录"}, {"name": "feature", "value": "登录模块"}, {"name": "epic", "value": "营运车企业端"}, {"name": "parentSuite", "value": "test_case.bmy"}, {"name": "suite", "value": "test_login"}, {"name": "subSuite", "value": "TestLogin"}, {"name": "host", "value": "ubuntu"}, {"name": "thread", "value": "12477-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.bmy.test_login"}], "links": [{"type": "test_case", "url": "http://yapi.hikcreate.com/", "name": "http://yapi.hikcreate.com/"}]}
\ No newline at end of file
{"uuid": "893c10fc-8a7c-4115-8f4c-574d026ed447", "befores": [{"name": "inData", "status": "passed", "start": 1620383700070, "stop": 1620383700070}], "start": 1620383700070, "stop": 1620383700540}
\ No newline at end of file
{"uuid": "7d2d36cf-72b4-45a9-a155-e1e82a1d9f42", "children": ["76812487-e5a0-4a7f-a15c-e37b270d14b3"], "befores": [{"name": "sleep", "status": "passed", "start": 1620383701991, "stop": 1620383702191}], "start": 1620383701991, "stop": 1620383702345}
\ No newline at end of file
{"uuid": "5fbde003-e73c-4a56-ad23-569046c1ff9b", "befores": [{"name": "inData", "status": "passed", "start": 1620383701300, "stop": 1620383701300}], "start": 1620383701300, "stop": 1620383701455}
\ No newline at end of file
{"uuid": "68f41baf-7561-4e78-b239-5c88d6f4f92e", "children": ["9b3b6a00-60fe-4caa-878e-654a8a04a065"], "befores": [{"name": "sleep", "status": "passed", "start": 1620383701456, "stop": 1620383701658}], "start": 1620383701456, "stop": 1620383701990}
\ No newline at end of file
{"uuid": "5a237517-4f70-4f7b-98af-1d0892f3c3fa", "befores": [{"name": "inData", "status": "passed", "start": 1620383700742, "stop": 1620383700743}], "start": 1620383700742, "stop": 1620383701098}
\ No newline at end of file
{"name": "登录认证", "status": "passed", "description": "url:/auth/login 。。。。", "parameters": [{"name": "inData", "value": "{'url': '/auth/login', 'headers': {'Authorization': '', 'Content-Type': 'application/x-www-form-urlencoded'}, 'method': 'POST', 'reqData': {'username': '1515taoke', 'password': 'A123456'}, 'expectData': {'success': False, 'code': '10002', 'message': '验证码错误'}}"}], "start": 1620383702192, "stop": 1620383702344, "uuid": "76812487-e5a0-4a7f-a15c-e37b270d14b3", "historyId": "5dd9539dd42cecf33b13556e90f95397", "testCaseId": "71872482b1d2eb2e3e0a870a3b3f3bd4", "fullName": "test_case.bmy.test_login.TestLogin#test_login", "labels": [{"name": "story", "value": "登录"}, {"name": "feature", "value": "登录模块"}, {"name": "epic", "value": "营运车企业端"}, {"name": "parentSuite", "value": "test_case.bmy"}, {"name": "suite", "value": "test_login"}, {"name": "subSuite", "value": "TestLogin"}, {"name": "host", "value": "ubuntu"}, {"name": "thread", "value": "12477-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.bmy.test_login"}], "links": [{"type": "test_case", "url": "http://yapi.hikcreate.com/", "name": "http://yapi.hikcreate.com/"}]}
\ No newline at end of file
{"uuid": "834c4855-92c9-42b5-9321-415a08fad9c5", "children": ["29152b96-6ec9-4c5b-9c73-7879b9e9d699"], "befores": [{"name": "sleep", "status": "passed", "start": 1620383699869, "stop": 1620383700069}], "start": 1620383699869, "stop": 1620383700540}
\ No newline at end of file
{"uuid": "1b55777d-2be3-4b36-b3b0-958528b92c1d", "children": ["a57422e3-4ba9-48ae-934d-3c4fdbc5c495"], "befores": [{"name": "sleep", "status": "passed", "start": 1620383701099, "stop": 1620383701300}], "start": 1620383701099, "stop": 1620383701455}
\ No newline at end of file
{"name": "登录认证", "status": "passed", "description": "url:/auth/login 。。。。", "parameters": [{"name": "inData", "value": "{'url': '/auth/login', 'headers': {'Authorization': '', 'Content-Type': 'application/x-www-form-urlencoded'}, 'method': 'POST', 'reqData': {'username': '15150000000', 'password': '123456'}, 'expectData': {'success': False, 'code': '500', 'message': '用户名或者密码输入错误'}}"}], "start": 1620383700743, "stop": 1620383701097, "uuid": "71c89422-3455-40b6-a5c2-3828071fc96e", "historyId": "5ffeade0af986262f17cfc7ac33f2ecf", "testCaseId": "71872482b1d2eb2e3e0a870a3b3f3bd4", "fullName": "test_case.bmy.test_login.TestLogin#test_login", "labels": [{"name": "story", "value": "登录"}, {"name": "feature", "value": "登录模块"}, {"name": "epic", "value": "营运车企业端"}, {"name": "parentSuite", "value": "test_case.bmy"}, {"name": "suite", "value": "test_login"}, {"name": "subSuite", "value": "TestLogin"}, {"name": "host", "value": "ubuntu"}, {"name": "thread", "value": "12477-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.bmy.test_login"}], "links": [{"type": "test_case", "url": "http://yapi.hikcreate.com/", "name": "http://yapi.hikcreate.com/"}]}
\ No newline at end of file
{"name": "登录认证", "status": "passed", "description": "url:/auth/login 。。。。", "parameters": [{"name": "inData", "value": "{'url': '/auth/login', 'headers': {'Authorization': '', 'Content-Type': 'application/x-www-form-urlencoded'}, 'method': 'POST', 'reqData': {'username': '15150000000', 'password': 'A123456'}, 'expectData': {'success': True, 'code': '200', 'message': None}}"}], "start": 1620383700070, "stop": 1620383700539, "uuid": "29152b96-6ec9-4c5b-9c73-7879b9e9d699", "historyId": "53b32735611d2d17c30dd543b5595680", "testCaseId": "71872482b1d2eb2e3e0a870a3b3f3bd4", "fullName": "test_case.bmy.test_login.TestLogin#test_login", "labels": [{"name": "story", "value": "登录"}, {"name": "feature", "value": "登录模块"}, {"name": "epic", "value": "营运车企业端"}, {"name": "parentSuite", "value": "test_case.bmy"}, {"name": "suite", "value": "test_login"}, {"name": "subSuite", "value": "TestLogin"}, {"name": "host", "value": "ubuntu"}, {"name": "thread", "value": "12477-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "test_case.bmy.test_login"}], "links": [{"type": "test_case", "url": "http://yapi.hikcreate.com/", "name": "http://yapi.hikcreate.com/"}]}
\ No newline at end of file
{"uuid": "0f2016fd-089e-4f67-8c86-e291b5df2671", "befores": [{"name": "inData", "status": "passed", "start": 1620383702192, "stop": 1620383702192}], "start": 1620383702192, "stop": 1620383702344}
\ No newline at end of file
{"uuid": "ba7e4aac-f4f7-4913-80c9-46306f91920a", "children": ["71c89422-3455-40b6-a5c2-3828071fc96e"], "befores": [{"name": "sleep", "status": "passed", "start": 1620383700541, "stop": 1620383700742}], "start": 1620383700541, "stop": 1620383701098}
\ No newline at end of file
{"uuid": "15bcb3f8-69ef-48d9-92c3-c17ffdc8c6a9", "befores": [{"name": "inData", "status": "passed", "start": 1620383701658, "stop": 1620383701658}], "start": 1620383701658, "stop": 1620383701989}
\ No newline at end of file
......@@ -11,7 +11,7 @@ from common.tools import request_main
@allure.epic("营运车企业端")
@allure.feature("登录模块")
class TestLogin():
workBook = xlrd.open_workbook('../../test_case_data/bmy/bmy_case.xlsx')
workBook = xlrd.open_workbook('test_case_data/bmy/bmy_case.xlsx')
@allure.story("登录")
@allure.title("登录认证")
......
......@@ -5,5 +5,4 @@ import pytest
@pytest.fixture(scope="function",autouse=True)
def sleep():
print("wait wait")
time.sleep(config.BaseConfig.secs)
\ No newline at end of file
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