Report generated on 07-Jul-2020 at 11:54:02 by pytest-html v2.1.1
| Packages | {"pluggy": "0.13.1", "py": "1.8.1", "pytest": "5.4.3"} |
| Platform | Windows-10-10.0.18362-SP0 |
| Plugins | {"forked": "1.1.3", "html": "2.1.1", "metadata": "1.9.0", "rerunfailures": "9.0"} |
| Python | 3.6.8 |
3 tests ran in 83.68 seconds.
(Un)check the boxes to filter the results.
3 passed, 0 skipped, 0 failed, 0 errors, 0 expected failures, 0 unexpected passes, 0 rerun| Result | Test | Duration | Links |
|---|---|---|---|
| No results found. Try to check the filters | |||
| Passed | test_login.py::test_login | 16.43 | |
|
------------------------------Captured stdout call------------------------------ 周朝阳 qazwsxedc http://192.168.2.31/cm ------------------------------Captured stderr call------------------------------ [2020-07-07 11:52:38,724] - [ INFO] - [ test_login] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini [2020-07-07 11:52:41,972] - [ INFO] - [ test_login] - [ read_config.py] - [ 33] - the browserType : Chrome [2020-07-07 11:52:41,975] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 28] - browserName: Chrome [2020-07-07 11:52:43,071] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 33] - Open url: http://192.168.2.31/cm [2020-07-07 11:52:46,198] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 36] - Maximize the current window. [2020-07-07 11:52:46,204] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 38] - Set implicitly wait 10 seconds. [2020-07-07 11:52:47,206] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : 周朝阳 [2020-07-07 11:52:47,206] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc [2020-07-07 11:52:47,206] - [ INFO] - [ test_login] - [ test_login.py] - [ 26] - username: 周朝阳 [2020-07-07 11:52:47,206] - [ INFO] - [ test_login] - [ test_login.py] - [ 27] - password :qazwsxedc [2020-07-07 11:52:47,206] - [ INFO] - [ test_login] - [ test_login.py] - [ 28] - Open url: http://192.168.2.31/cm [2020-07-07 11:52:47,242] - [ INFO] - [ test_login] - [ test_login.py] - [ 32] - tags.text:请选择所属部门 [2020-07-07 11:52:48,501] - [ INFO] - [ test_login] - [ test_login.py] - [ 40] - tags2.text:瓯海区院 [2020-07-07 11:52:52,320] - [ INFO] - [ test_login] - [ __init__.py] - [ 23] - 执行时间:13.596333742141724s -------------------------------Captured log call-------------------------------- [32mINFO [0m test_login:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini [32mINFO [0m test_login:read_config.py:33 the browserType : Chrome [32mINFO [0m test_login:browser_engine.py:28 browserName: Chrome [32mINFO [0m test_login:browser_engine.py:33 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:browser_engine.py:36 Maximize the current window. [32mINFO [0m test_login:browser_engine.py:38 Set implicitly wait 10 seconds. [32mINFO [0m test_login:read_config.py:43 the userInfo : 周朝阳 [32mINFO [0m test_login:read_config.py:43 the userInfo : qazwsxedc [32mINFO [0m test_login:test_login.py:26 username: 周朝阳 [32mINFO [0m test_login:test_login.py:27 password :qazwsxedc [32mINFO [0m test_login:test_login.py:28 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:test_login.py:32 tags.text:请选择所属部门 [32mINFO [0m test_login:test_login.py:40 tags2.text:瓯海区院 [32mINFO [0m test_login:__init__.py:23 执行时间:13.596333742141724s | |||
| Passed | test_login.py::test_login_pwerr | 33.02 | |
|
------------------------------Captured stdout call------------------------------ C:\Users\80980\znfz_autotest\tests\images\test_login.png [WinError 3] 系统找不到指定的路径。: 'C:\\Users\\80980\\znfz_autotest\\tests\\images' ------------------------------Captured stderr call------------------------------ [2020-07-07 11:52:55,163] - [ INFO] - [ test_login] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini [2020-07-07 11:52:58,456] - [ INFO] - [ test_login] - [ read_config.py] - [ 33] - the browserType : Chrome [2020-07-07 11:52:58,456] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 28] - browserName: Chrome [2020-07-07 11:52:59,454] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 33] - Open url: http://192.168.2.31/cm [2020-07-07 11:53:02,590] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 36] - Maximize the current window. [2020-07-07 11:53:02,592] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 38] - Set implicitly wait 10 seconds. [2020-07-07 11:53:03,592] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : 周朝阳 [2020-07-07 11:53:03,592] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc [2020-07-07 11:53:03,592] - [ INFO] - [ test_login] - [ test_login.py] - [ 59] - username: 周朝阳 [2020-07-07 11:53:03,593] - [ INFO] - [ test_login] - [ test_login.py] - [ 60] - password :qazwsxedc [2020-07-07 11:53:03,593] - [ INFO] - [ test_login] - [ test_login.py] - [ 61] - Open url: http://192.168.2.31/cm [2020-07-07 11:53:03,628] - [ INFO] - [ test_login] - [ test_login.py] - [ 67] - tags.text:请选择所属部门 [2020-07-07 11:53:04,903] - [ INFO] - [ test_login] - [ test_login.py] - [ 75] - tags2.text:瓯海区院 -------------------------------Captured log call-------------------------------- [32mINFO [0m test_login:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini [32mINFO [0m test_login:read_config.py:33 the browserType : Chrome [32mINFO [0m test_login:browser_engine.py:28 browserName: Chrome [32mINFO [0m test_login:browser_engine.py:33 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:browser_engine.py:36 Maximize the current window. [32mINFO [0m test_login:browser_engine.py:38 Set implicitly wait 10 seconds. [32mINFO [0m test_login:read_config.py:43 the userInfo : 周朝阳 [32mINFO [0m test_login:read_config.py:43 the userInfo : qazwsxedc [32mINFO [0m test_login:test_login.py:59 username: 周朝阳 [32mINFO [0m test_login:test_login.py:60 password :qazwsxedc [32mINFO [0m test_login:test_login.py:61 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:test_login.py:67 tags.text:请选择所属部门 [32mINFO [0m test_login:test_login.py:75 tags2.text:瓯海区院 | |||
| Passed | test_login.py::test_login_usererr | 34.07 | |
|
------------------------------Captured stderr call------------------------------ [2020-07-07 11:53:28,188] - [ INFO] - [ test_login] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini [2020-07-07 11:53:31,363] - [ INFO] - [ test_login] - [ read_config.py] - [ 33] - the browserType : Chrome [2020-07-07 11:53:31,364] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 28] - browserName: Chrome [2020-07-07 11:53:32,351] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 33] - Open url: http://192.168.2.31/cm [2020-07-07 11:53:35,477] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 36] - Maximize the current window. [2020-07-07 11:53:35,479] - [ INFO] - [ test_login] - [ browser_engine.py] - [ 38] - Set implicitly wait 10 seconds. [2020-07-07 11:53:36,480] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : 周朝阳 [2020-07-07 11:53:36,480] - [ INFO] - [ test_login] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc [2020-07-07 11:53:36,480] - [ INFO] - [ test_login] - [ test_login.py] - [ 107] - username: 周朝阳 [2020-07-07 11:53:36,480] - [ INFO] - [ test_login] - [ test_login.py] - [ 108] - password :qazwsxedc [2020-07-07 11:53:36,480] - [ INFO] - [ test_login] - [ test_login.py] - [ 109] - Open url: http://192.168.2.31/cm [2020-07-07 11:53:36,509] - [ INFO] - [ test_login] - [ test_login.py] - [ 115] - tags.text:请选择所属部门 [2020-07-07 11:53:37,765] - [ INFO] - [ test_login] - [ test_login.py] - [ 123] - tags2.text:瓯海区院 [2020-07-07 11:53:59,721] - [ INFO] - [ test_login] - [ test_login.py] - [ 134] - test_login_password_err:不输入账户,返回正确的错误信息,text:请输入账户名! [2020-07-07 11:54:00,106] - [ INFO] - [ test_login] - [ test_login.py] - [ 141] - test_login_password_err:输入错误账户,返回正确的错误信息,text:账户或密码错误 [2020-07-07 11:54:00,106] - [ INFO] - [ test_login] - [ __init__.py] - [ 23] - 执行时间:31.919700384140015s -------------------------------Captured log call-------------------------------- [32mINFO [0m test_login:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini [32mINFO [0m test_login:read_config.py:33 the browserType : Chrome [32mINFO [0m test_login:browser_engine.py:28 browserName: Chrome [32mINFO [0m test_login:browser_engine.py:33 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:browser_engine.py:36 Maximize the current window. [32mINFO [0m test_login:browser_engine.py:38 Set implicitly wait 10 seconds. [32mINFO [0m test_login:read_config.py:43 the userInfo : 周朝阳 [32mINFO [0m test_login:read_config.py:43 the userInfo : qazwsxedc [32mINFO [0m test_login:test_login.py:107 username: 周朝阳 [32mINFO [0m test_login:test_login.py:108 password :qazwsxedc [32mINFO [0m test_login:test_login.py:109 Open url: http://192.168.2.31/cm [32mINFO [0m test_login:test_login.py:115 tags.text:请选择所属部门 [32mINFO [0m test_login:test_login.py:123 tags2.text:瓯海区院 [32mINFO [0m test_login:test_login.py:134 test_login_password_err:不输入账户,返回正确的错误信息,text:请输入账户名! [32mINFO [0m test_login:test_login.py:141 test_login_password_err:输入错误账户,返回正确的错误信息,text:账户或密码错误 [32mINFO [0m test_login:__init__.py:23 执行时间:31.919700384140015s | |||