Commit 0e868046 authored by Betty周薇薇's avatar Betty周薇薇

python ui

parent da1c721a
......@@ -10,8 +10,8 @@ def get_app_driver():
desired_caps['platformName'] = 'Android'
# desired_caps['deviceName'] = 'huawei'
desired_caps['deviceName'] = 'mjdqt8nvbmob9hsg'
desired_caps['appPackage'] = 'com.ifeng.news2'
desired_caps['appActivity'] = '.activity.IfengTabMainActivity'
desired_caps['appPackage'] = 'com.galaxy.galaxyandroid'
desired_caps['appActivity'] = 'com.galaxy.galaxyandroid.MainActivity'
desired_caps['skipServerInstallation'] = True
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub',desired_capabilities=desired_caps)
......
......@@ -7,6 +7,9 @@ from common.driver import get_app_driver
class KeyWord:
def __init__(self, driver, *args):
self.driver = driver
......@@ -63,3 +66,10 @@ class KeyWord:
def tap(self, positions: list, duration:int,*args):
self.driver.tap(positions, duration)
def screen_shot(self, name:str,*args):
pic_name = './data/image/'+name+'.png'
pic_name2 = name+'.png'
print(pic_name)
self.driver.get_screenshot_as_file(pic_name)
self.driver.save_screenshot(pic_name2)
INFO 2024-02-21 19:29:20 [pytest_result_log:104] : --Start: testcases/test_app_login.xlsx::login::test_login---
ERROR 2024-02-21 19:29:22 [pytest_result_log:171] : test status is FAILED (testcases/test_app_login.xlsx::login::test_login): Please review verbose content
INFO 2024-02-21 19:29:22 [pytest_result_log:109] : ---End: testcases/test_app_login.xlsx::login::test_login----
INFO 2024-02-21 19:29:22 [pytest_result_log:104] : ---Start: testcases/test_app_login.xlsx::login::test_news---
ERROR 2024-02-21 19:29:22 [pytest_result_log:171] : test status is FAILED (testcases/test_app_login.xlsx::login::test_news): Please review verbose content
INFO 2024-02-21 19:29:22 [pytest_result_log:109] : ----End: testcases/test_app_login.xlsx::login::test_news----
INFO 2024-02-26 19:59:53 [pytest_result_log:104] : --Start: testcases/test_app_galaxy.xlsx::login::test_login--
WARNING 2024-02-26 20:00:08 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:08 [root:25] : 关键字:click,关键字实参内容:['//*[@text="我的"]', 'xpath', None]
WARNING 2024-02-26 20:00:09 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:09 [root:25] : 关键字:click,关键字实参内容:['//*[@text="登录/注册"]', 'xpath', None]
WARNING 2024-02-26 20:00:10 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:10 [root:25] : 关键字:click,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', None]
WARNING 2024-02-26 20:00:11 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:11 [root:25] : 关键字:input,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', 13760437542]
WARNING 2024-02-26 20:00:12 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:12 [root:25] : 关键字:click,关键字实参内容:['//*[@text="获取验证码"]', 'xpath', None]
WARNING 2024-02-26 20:00:13 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:13 [root:25] : 关键字:click,关键字实参内容:['//*[@text="我同意"]', 'xpath', None]
WARNING 2024-02-26 20:00:14 [root:11] : 进入python_xlsx_run_step
WARNING 2024-02-26 20:00:14 [root:25] : 关键字:screen_shot,关键字实参内容:['登录成功截图', None, None]
INFO 2024-02-26 20:00:15 [pytest_result_log:171] : test status is PASSED (testcases/test_app_galaxy.xlsx::login::test_login):
INFO 2024-02-26 20:00:15 [pytest_result_log:109] : ---End: testcases/test_app_galaxy.xlsx::login::test_login---
INFO pytest_result_log:plugin.py:104 --Start: testcases/test_app_galaxy.xlsx::login::test_login--
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="我的"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="登录/注册"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:input,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', 13760437542]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="获取验证码"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="我同意"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:screen_shot,关键字实参内容:['登录成功截图', None, None]
INFO pytest_result_log:plugin.py:109 ---End: testcases/test_app_galaxy.xlsx::login::test_login---
\ No newline at end of file
"Epic","Feature","Story","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"","","","0","2","0","0","0"
"","","","0","0","1","0","0"
{
"uid" : "b1a8273437954620fa374b796ffaacdd",
"name" : "behaviors",
"children" : [ {
"name" : "test_login",
"uid" : "b6ab9e10fbdef993",
"uid" : "352adbf52f68576c",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "broken",
"status" : "passed",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"flaky" : false,
"parameters" : [ ]
}, {
"name" : "test_news",
"uid" : "4a9b9ad4ef7ef157",
"parentUid" : "b1a8273437954620fa374b796ffaacdd",
"status" : "broken",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"flaky" : false,
"parameters" : [ ]
} ],
"name" : "behaviors"
} ]
}
\ No newline at end of file
"Category","FAILED","BROKEN","PASSED","SKIPPED","UNKNOWN"
"Test defects","0","2","0","0","0"
{
"uid" : "4b4757e66a1912dae1a509f688f20b0f",
"children" : [ {
"name" : "Test defects",
"children" : [ {
"name" : "selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\nStacktrace:\nUnknownError: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\n at getResponseForW3CError (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\errors.js:804:9)\n at asyncHandler (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\protocol.js:388:37)\n at process._tickCallback (internal/process/next_tick.js:68:7)",
"children" : [ {
"name" : "test_login",
"uid" : "b6ab9e10fbdef993",
"parentUid" : "f197da8e833f65b5c025c0663e0c54c8",
"status" : "broken",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
},
"flaky" : false,
"parameters" : [ ]
}, {
"name" : "test_news",
"uid" : "4a9b9ad4ef7ef157",
"parentUid" : "f197da8e833f65b5c025c0663e0c54c8",
"status" : "broken",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"flaky" : false,
"parameters" : [ ]
} ],
"uid" : "f197da8e833f65b5c025c0663e0c54c8"
} ],
"uid" : "bdbf199525818fae7a8651db9eafe741"
} ],
"name" : "categories"
"name" : "categories",
"children" : [ ]
}
\ No newline at end of file
{
"uid" : "83edc06c07f9ae9e47eb6dd1b683e4e2",
"name" : "packages",
"children" : [ {
"name" : "testcases.test_app_login",
"name" : "testcases.test_app_galaxy",
"children" : [ {
"name" : "test_login",
"uid" : "b6ab9e10fbdef993",
"parentUid" : "3223cde26458aa9070036ac7c36786a3",
"status" : "broken",
"uid" : "352adbf52f68576c",
"parentUid" : "e57d3ded8c71cbcde699702f02cf7a3a",
"status" : "passed",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"flaky" : false,
"parameters" : [ ]
}, {
"name" : "test_news",
"uid" : "4a9b9ad4ef7ef157",
"parentUid" : "3223cde26458aa9070036ac7c36786a3",
"status" : "broken",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"flaky" : false,
"parameters" : [ ]
} ],
"uid" : "testcases.test_app_login"
} ],
"name" : "packages"
"uid" : "testcases.test_app_galaxy"
} ]
}
\ No newline at end of file
"Status","Name","Duration in ms","Description"
"broken","testcases.test_app_login.login#test_login","2161",""
"broken","testcases.test_app_login.login#test_news","0",""
"passed","testcases.test_app_galaxy.login#test_login","22057",""
{
"uid" : "98d3104e051c652961429bf95fa0b5d6",
"name" : "suites",
"children" : [ {
"name" : "testcases",
"children" : [ {
"name" : "test_app_login",
"name" : "test_app_galaxy",
"children" : [ {
"name" : "login",
"children" : [ {
"name" : "test_login",
"uid" : "b6ab9e10fbdef993",
"parentUid" : "979fe0d47bd105831b3cfb5148424ea4",
"status" : "broken",
"uid" : "352adbf52f68576c",
"parentUid" : "4850eb8c0c6ae56b8232b8c8761bfdef",
"status" : "passed",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
},
"flaky" : false,
"parameters" : [ ]
}, {
"name" : "test_news",
"uid" : "4a9b9ad4ef7ef157",
"parentUid" : "979fe0d47bd105831b3cfb5148424ea4",
"status" : "broken",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"flaky" : false,
"parameters" : [ ]
} ],
"uid" : "979fe0d47bd105831b3cfb5148424ea4"
"uid" : "4850eb8c0c6ae56b8232b8c8761bfdef"
} ],
"uid" : "da75468b83c12e013667380d64c95ec7"
"uid" : "c442c61bd55e9f6197e608bc59bd4c2c"
} ],
"uid" : "b51346658ccdb9db01a6b5f6c12deab1"
} ],
"name" : "suites"
} ]
}
\ No newline at end of file
{
"uid" : "352adbf52f68576c",
"name" : "test_login",
"fullName" : "testcases.test_app_galaxy.login#test_login",
"historyId" : "a418dfbad2794809d87e8d8e21845021",
"time" : {
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"status" : "passed",
"flaky" : false,
"beforeStages" : [ {
"name" : "get_driver",
"time" : {
"start" : 1708948793267,
"stop" : 1708948808162,
"duration" : 14895
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"testStage" : {
"status" : "passed",
"steps" : [ ],
"attachments" : [ {
"uid" : "2cea5a86a216298f",
"name" : "log",
"source" : "2cea5a86a216298f.txt",
"type" : "text/plain",
"size" : 1389
} ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 1,
"stepsCount" : 0,
"hasContent" : true
},
"afterStages" : [ {
"name" : "get_driver::0",
"time" : {
"start" : 1708948815324,
"stop" : 1708948815324,
"duration" : 0
},
"status" : "passed",
"steps" : [ ],
"attachments" : [ ],
"parameters" : [ ],
"shouldDisplayMessage" : false,
"attachmentsCount" : 0,
"stepsCount" : 0,
"hasContent" : false
} ],
"labels" : [ {
"name" : "parentSuite",
"value" : "testcases"
}, {
"name" : "suite",
"value" : "test_app_galaxy"
}, {
"name" : "subSuite",
"value" : "login"
}, {
"name" : "host",
"value" : "DESKTOP-MKSHDA6"
}, {
"name" : "thread",
"value" : "24172-MainThread"
}, {
"name" : "framework",
"value" : "pytest"
}, {
"name" : "language",
"value" : "cpython3"
}, {
"name" : "package",
"value" : "testcases.test_app_galaxy"
}, {
"name" : "resultFormat",
"value" : "allure2"
} ],
"parameters" : [ ],
"links" : [ ],
"hidden" : false,
"retry" : false,
"extra" : {
"severity" : "normal",
"retries" : [ ],
"categories" : [ ],
"tags" : [ ]
},
"source" : "352adbf52f68576c.json",
"parameterValues" : [ ]
}
\ No newline at end of file
{
"uid" : "ab17fc5a4eb3bca4b216b548c7f9fcbc",
"name" : "timeline",
"children" : [ {
"name" : "DESKTOP-MKSHDA6",
"children" : [ {
"name" : "6444-MainThread",
"name" : "24172-MainThread",
"children" : [ {
"name" : "test_login",
"uid" : "b6ab9e10fbdef993",
"parentUid" : "35a70bf50fb4a2ebfc199384c5f21ef0",
"status" : "broken",
"uid" : "352adbf52f68576c",
"parentUid" : "23cf00869d8f77c401d20b7d1e83d2bd",
"status" : "passed",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
},
"flaky" : false,
"parameters" : [ ]
}, {
"name" : "test_news",
"uid" : "4a9b9ad4ef7ef157",
"parentUid" : "35a70bf50fb4a2ebfc199384c5f21ef0",
"status" : "broken",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"flaky" : false,
"parameters" : [ ]
} ],
"uid" : "35a70bf50fb4a2ebfc199384c5f21ef0"
"uid" : "23cf00869d8f77c401d20b7d1e83d2bd"
} ],
"uid" : "d375ea80cb48e53379a497e900e13f5a"
} ],
"name" : "timeline"
} ]
}
\ No newline at end of file
launch_status failed=0 1708514963000000000
launch_status broken=2 1708514963000000000
launch_status passed=0 1708514963000000000
launch_status skipped=0 1708514963000000000
launch_status unknown=0 1708514963000000000
launch_time duration=2164 1708514963000000000
launch_time min_duration=0 1708514963000000000
launch_time max_duration=2161 1708514963000000000
launch_time sum_duration=2161 1708514963000000000
launch_problems test_defects=2 1708514963000000000
launch_retries retries=0 1708514963000000000
launch_retries run=2 1708514963000000000
launch_status failed=0 1708948817000000000
launch_status broken=0 1708948817000000000
launch_status passed=1 1708948817000000000
launch_status skipped=0 1708948817000000000
launch_status unknown=0 1708948817000000000
launch_time duration=22057 1708948817000000000
launch_time min_duration=22057 1708948817000000000
launch_time max_duration=22057 1708948817000000000
launch_time sum_duration=22057 1708948817000000000
launch_retries retries=0 1708948817000000000
launch_retries run=1 1708948817000000000
launch_status_failed 0
launch_status_broken 2
launch_status_passed 0
launch_status_broken 0
launch_status_passed 1
launch_status_skipped 0
launch_status_unknown 0
launch_time_duration 2164
launch_time_min_duration 0
launch_time_max_duration 2161
launch_time_sum_duration 2161
launch_problems_test_defects 2
launch_time_duration 22057
launch_time_min_duration 22057
launch_time_max_duration 22057
launch_time_sum_duration 22057
launch_retries_retries 0
launch_retries_run 2
launch_retries_run 1
[ {
"data" : {
"Test defects" : 2
}
"data" : { }
} ]
\ No newline at end of file
[ {
"data" : {
"duration" : 2164
"duration" : 22057
}
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 2,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 2
"total" : 1
}
} ]
\ No newline at end of file
{
"376ab601bc6f081b2e4b7d6a898aa21d" : {
"a418dfbad2794809d87e8d8e21845021" : {
"statistic" : {
"failed" : 0,
"broken" : 1,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "4a9b9ad4ef7ef157",
"status" : "broken",
"statusDetails" : "selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\nStacktrace:\nUnknownError: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\n at getResponseForW3CError (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\errors.js:804:9)\n at asyncHandler (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\protocol.js:388:37)\n at process._tickCallback (internal/process/next_tick.js:68:7)",
"uid" : "352adbf52f68576c",
"status" : "passed",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
}
} ]
},
"006b1722c7f3feea0d7d6db073062845" : {
"statistic" : {
"failed" : 0,
"broken" : 1,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 1
},
"items" : [ {
"uid" : "b6ab9e10fbdef993",
"status" : "broken",
"statusDetails" : "selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\nStacktrace:\nUnknownError: An unknown server-side error occurred while processing the command. Original error: 'app' option is required for reinstall\n at getResponseForW3CError (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\errors.js:804:9)\n at asyncHandler (C:\\Users\\ooo\\AppData\\Local\\Programs\\Appium\\resources\\app\\node_modules\\appium\\node_modules\\appium-base-driver\\lib\\protocol\\protocol.js:388:37)\n at process._tickCallback (internal/process/next_tick.js:68:7)",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
}
} ]
}
......
[ {
"data" : {
"run" : 2,
"run" : 1,
"retry" : 0
}
} ]
\ No newline at end of file
{
"total" : 2,
"total" : 1,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"Test defects" : 2
}
"data" : { }
} ]
\ No newline at end of file
{
"total" : 1,
"items" : [ {
"uid" : "bdbf199525818fae7a8651db9eafe741",
"name" : "Test defects",
"statistic" : {
"failed" : 0,
"broken" : 2,
"skipped" : 0,
"passed" : 0,
"unknown" : 0,
"total" : 2
}
} ]
"total" : 0,
"items" : [ ]
}
\ No newline at end of file
[ {
"data" : {
"duration" : 2164
"duration" : 22057
}
} ]
\ No newline at end of file
[ {
"uid" : "b6ab9e10fbdef993",
"uid" : "352adbf52f68576c",
"name" : "test_login",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "4a9b9ad4ef7ef157",
"name" : "test_news",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"status" : "broken",
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"data" : {
"failed" : 0,
"broken" : 2,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 2
"total" : 1
}
} ]
\ No newline at end of file
[ {
"data" : {
"run" : 2,
"run" : 1,
"retry" : 0
}
} ]
\ No newline at end of file
[ {
"uid" : "b6ab9e10fbdef993",
"uid" : "352adbf52f68576c",
"name" : "test_login",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "4a9b9ad4ef7ef157",
"name" : "test_news",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"status" : "broken",
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
[ {
"uid" : "b6ab9e10fbdef993",
"uid" : "352adbf52f68576c",
"name" : "test_login",
"time" : {
"start" : 1708514960669,
"stop" : 1708514962830,
"duration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057
},
"status" : "broken",
"severity" : "normal"
}, {
"uid" : "4a9b9ad4ef7ef157",
"name" : "test_news",
"time" : {
"start" : 1708514962833,
"stop" : 1708514962833,
"duration" : 0
},
"status" : "broken",
"status" : "passed",
"severity" : "normal"
} ]
\ No newline at end of file
......@@ -5,11 +5,11 @@
"name" : "testcases",
"statistic" : {
"failed" : 0,
"broken" : 2,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 2
"total" : 1
}
} ]
}
\ No newline at end of file
......@@ -3,18 +3,18 @@
"testRuns" : [ ],
"statistic" : {
"failed" : 0,
"broken" : 2,
"broken" : 0,
"skipped" : 0,
"passed" : 0,
"passed" : 1,
"unknown" : 0,
"total" : 2
"total" : 1
},
"time" : {
"start" : 1708514960669,
"stop" : 1708514962833,
"duration" : 2164,
"minDuration" : 0,
"maxDuration" : 2161,
"sumDuration" : 2161
"start" : 1708948793267,
"stop" : 1708948815324,
"duration" : 22057,
"minDuration" : 22057,
"maxDuration" : 22057,
"sumDuration" : 22057
}
}
\ No newline at end of file
INFO pytest_result_log:plugin.py:104 --Start: testcases/test_app_galaxy.xlsx::login::test_login--
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="我的"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="登录/注册"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:input,关键字实参内容:['//*[@text="请输入手机号"]', 'xpath', 13760437542]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="获取验证码"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:click,关键字实参内容:['//*[@text="我同意"]', 'xpath', None]
WARNING root:conftest.py:11 进入python_xlsx_run_step
WARNING root:conftest.py:25 关键字:screen_shot,关键字实参内容:['登录成功截图', None, None]
INFO pytest_result_log:plugin.py:109 ---End: testcases/test_app_galaxy.xlsx::login::test_login---
\ No newline at end of file
{"uuid": "0c7d2ee4-f4f6-4d83-bbe7-2bc53370584c", "children": ["4030979c-8795-4cb9-b078-25758a5b5c6d"], "befores": [{"name": "get_driver", "status": "passed", "start": 1708948793267, "stop": 1708948808162}], "afters": [{"name": "get_driver::0", "status": "passed", "start": 1708948815324, "stop": 1708948815324}], "start": 1708948793267, "stop": 1708948815324}
\ No newline at end of file
{"name": "test_login", "status": "passed", "attachments": [{"name": "log", "source": "372a49aa-b1d6-4307-b8bb-8cbc58b38bde-attachment.txt", "type": "text/plain"}], "start": 1708948793267, "stop": 1708948815324, "uuid": "4030979c-8795-4cb9-b078-25758a5b5c6d", "historyId": "a418dfbad2794809d87e8d8e21845021", "testCaseId": "a418dfbad2794809d87e8d8e21845021", "fullName": "testcases.test_app_galaxy.login#test_login", "labels": [{"name": "parentSuite", "value": "testcases"}, {"name": "suite", "value": "test_app_galaxy"}, {"name": "subSuite", "value": "login"}, {"name": "host", "value": "DESKTOP-MKSHDA6"}, {"name": "thread", "value": "24172-MainThread"}, {"name": "framework", "value": "pytest"}, {"name": "language", "value": "cpython3"}, {"name": "package", "value": "testcases.test_app_galaxy"}]}
\ 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