Commit 6e6c18b0 authored by 王超's avatar 王超

调试

parent 8362da5f
......@@ -3,12 +3,14 @@ import time
import pytest
import os
if __name__ == '__main__':
pytest.main(['-sv', '--temp', 'reports'])
pytest.main()
time.sleep(1)
os.system("allure generate ./temp --clean")
# os.system("allure generate ./temp -o ./reports --clean")
"""
解释:
allure-result : 生成的json数据文件目录
"""
os.system("allure generate reports -c")
# 解释:
# allure-result : 生成的json数据文件目录
# """
# os.system("allure generate ./reports -c")
project_id: 27
project_id: 39
{"uuid": "e9e0ef0c-ac64-490b-9185-75d613d5e172", "children": ["cc8e126a-f6e2-42ec-ad08-88e7b48b1836"], "befores": [{"name": "clear_extract", "status": "passed", "start": 1724120701949, "stop": 1724120701950}], "start": 1724120701949, "stop": 1724120704933}
\ No newline at end of file
{"uuid": "6e884183-0651-4836-aa9b-86a02b0e9151", "children": ["cc8e126a-f6e2-42ec-ad08-88e7b48b1836"], "befores": [{"name": "delete_output_dir", "status": "passed", "start": 1724120701949, "stop": 1724120701949}], "start": 1724120701949, "stop": 1724120704933}
\ No newline at end of file
{"uuid": "ddeaeded-2482-44b0-ba1d-33c42ff036a4", "children": ["8f52cf01-bcef-4389-9e85-1cbaeb9fca5e"], "befores": [{"name": "delete_output_dir", "status": "passed", "start": 1724136518167, "stop": 1724136518167}], "start": 1724136518167, "stop": 1724136522555}
\ No newline at end of file
{"uuid": "d59e4eda-943d-46c7-905d-0496e56e0b06", "children": ["cc8e126a-f6e2-42ec-ad08-88e7b48b1836"], "befores": [{"name": "pytestconfig", "status": "passed", "start": 1724120701949, "stop": 1724120701949}], "start": 1724120701949, "stop": 1724120704934}
\ No newline at end of file
{"uuid": "17290373-3a50-46c4-a200-4f8914f0f0fd", "children": ["cc8e126a-f6e2-42ec-ad08-88e7b48b1836"], "befores": [{"name": "base_url", "status": "passed", "start": 1724120701949, "stop": 1724120701949}], "start": 1724120701949, "stop": 1724120704935}
\ No newline at end of file
{"uuid": "ff831685-85e6-4a91-b749-ac632e257439", "children": ["8f52cf01-bcef-4389-9e85-1cbaeb9fca5e"], "befores": [{"name": "pytestconfig", "status": "passed", "start": 1724136518167, "stop": 1724136518167}], "start": 1724136518167, "stop": 1724136522555}
\ No newline at end of file
{"uuid": "fa8b6756-88fe-46ea-8250-7250a5df875f", "befores": [{"name": "caseinfo", "status": "passed", "start": 1724120701950, "stop": 1724120701950}], "start": 1724120701950, "stop": 1724120704932}
\ No newline at end of file
{"name": "创建工程", "status": "passed", "description": "创建工程", "parameters": [{"name": "caseinfo", "value": "{'name': '创建工程', 'base_url': '${get_base_url(cms_url)}', 'request': {'url': '/api/v1/project/node', 'method': 'post', 'data': {'name': '工程${get_random_number(1000,9999)}', 'path': 'C:\\\\自动化工程', 'type': 1}}, 'extract': {'project_id': 'content'}, 'validate': [{'equals': {'status_code': 200}}]}"}], "start": 1724120701950, "stop": 1724120704647, "uuid": "cc8e126a-f6e2-42ec-ad08-88e7b48b1836", "testCaseId": "c5b8c829ea5b084164ba66158618f603", "fullName": "testcase.1_EngineeringManagement.test_engineering_run.TestCreat#test_rename_project"}
\ No newline at end of file
{"name": "创建工程", "status": "passed", "description": "创建工程", "parameters": [{"name": "caseinfo", "value": "{'name': '创建工程', 'base_url': '${get_base_url(cms_url)}', 'request': {'url': '/api/v1/project/node', 'method': 'post', 'data': {'name': '工程${get_random_number(1000,9999)}', 'path': 'C:\\\\自动化工程', 'type': 1}}, 'extract': {'project_id': 'content'}, 'validate': [{'equals': {'status_code': 200}}]}"}], "start": 1724136518168, "stop": 1724136522335, "uuid": "8f52cf01-bcef-4389-9e85-1cbaeb9fca5e", "testCaseId": "5e5d54ab86a72505a5928780dd4036da", "fullName": "testcase.1_EngineeringManagement.mode_engineering_run.TestCreat#test_rename_project"}
\ No newline at end of file
{"uuid": "2b292579-0e5b-495b-9508-3e120b6488ad", "children": ["8f52cf01-bcef-4389-9e85-1cbaeb9fca5e"], "befores": [{"name": "_verify_url", "status": "passed", "start": 1724136518167, "stop": 1724136518167}], "start": 1724136518167, "stop": 1724136522556}
\ No newline at end of file
{"uuid": "e3dc2654-fbed-4fe3-bbd7-44d49ac7fd5b", "befores": [{"name": "caseinfo", "status": "passed", "start": 1724136518168, "stop": 1724136518168}], "start": 1724136518168, "stop": 1724136522554}
\ No newline at end of file
{"uuid": "820b6319-09c1-4791-a2f6-0bb6e0ab3f3e", "children": ["cc8e126a-f6e2-42ec-ad08-88e7b48b1836"], "befores": [{"name": "_verify_url", "status": "passed", "start": 1724120701949, "stop": 1724120701949}], "start": 1724120701949, "stop": 1724120704934}
\ No newline at end of file
{"uuid": "6f70bb13-5666-4137-a70a-56843f3a7df7", "children": ["8f52cf01-bcef-4389-9e85-1cbaeb9fca5e"], "befores": [{"name": "clear_extract", "status": "passed", "start": 1724136518167, "stop": 1724136518167}], "start": 1724136518167, "stop": 1724136522554}
\ No newline at end of file
{"uuid": "d6913355-05e8-4b8f-b5b5-a2ebc2f3c3c0", "children": ["8f52cf01-bcef-4389-9e85-1cbaeb9fca5e"], "befores": [{"name": "base_url", "status": "passed", "start": 1724136518167, "stop": 1724136518167}], "start": 1724136518167, "stop": 1724136522556}
\ 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