Commit adcc0801 authored by gaotao's avatar gaotao

取消捕获异常

parent 148b5bd3
......@@ -8,7 +8,7 @@ def get_engine(file, url=None, login=True):
def inner(f):
def wapper(*args, **kwargs):
try:
# try:
start_time = time.time()
log_name = os.path.split(file)[-1].split(".")[0]
# image_path = os.path.join(os.path.dirname(os.path.dirname(file)), "images")
......@@ -18,13 +18,13 @@ def get_engine(file, url=None, login=True):
engine = BrowserEngine(url, login, log_name)
ret = f(engine, *args, **kwargs)
time.sleep(0.1)
end_time = time.time()
engine.logger.info(f'执行时间:{end_time-start_time}s')
if engine: del engine
return ret
except Exception as e:
print(e)
# except Exception as e:
# print(e)
return wapper
......
......@@ -243,7 +243,7 @@ function filter_table(elem) {
}
</script>
<h1>report.html</h1>
<p>Report generated on 23-Sep-2020 at 14:26:47 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v2.1.1</p>
<p>Report generated on 27-Sep-2020 at 13:36:53 by <a href="https://pypi.python.org/pypi/pytest-html">pytest-html</a> v2.1.1</p>
<h2>Environment</h2>
<table id="environment">
<tr>
......@@ -259,8 +259,8 @@ function filter_table(elem) {
<td>Python</td>
<td>3.6.8</td></tr></table>
<h2>Summary</h2>
<p>4 tests ran in 133.28 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">4 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">0 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="rerun">0 rerun</span>
<p>13 tests ran in 413.24 seconds. </p>
<p class="filter" hidden="true">(Un)check the boxes to filter the results.</p><input checked="true" class="filter" data-test-result="passed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="passed">6 passed</span>, <input checked="true" class="filter" data-test-result="skipped" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="skipped">0 skipped</span>, <input checked="true" class="filter" data-test-result="failed" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="failed">7 failed</span>, <input checked="true" class="filter" data-test-result="error" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="error">0 errors</span>, <input checked="true" class="filter" data-test-result="xfailed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xfailed">0 expected failures</span>, <input checked="true" class="filter" data-test-result="xpassed" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="xpassed">0 unexpected passes</span>, <input checked="true" class="filter" data-test-result="rerun" disabled="true" hidden="true" name="filter_checkbox" onChange="filter_table(this)" type="checkbox"/><span class="rerun">0 rerun</span>
<h2>Results</h2>
<table id="results-table">
<thead id="results-table-head">
......@@ -271,135 +271,457 @@ function filter_table(elem) {
<th>Links</th></tr>
<tr hidden="true" id="not-found-message">
<th colspan="4">No results found. Try to check the filters</th></tr></thead>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_nullbirth</td>
<td class="col-duration">35.95</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184600.8178835, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9CB2BE48&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9CB2BE48&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__,url=URL1.format(**params1))<br/> def test_nullbirth(engine):<br/> # engine.get_page(engine.DQZ)<br/> <br/> time.sleep(0.5)<br/> # js = &#x27;&#x27;&#x27;document.querySelector(&quot;//div[@title=&#x27;出生日期&#x27;]/following-sibling::div[1]//input&quot;).value = &quot;&quot;;&#x27;&#x27;&#x27;<br/> # engine.driver.execute_script(js)<br/> <br/> engine.driver.xpath(&quot;//div[@title=&#x27;出生日期&#x27;]/following-sibling::div[1]//input&quot;)[0].clear()<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[text()=&#x27;有必填项未填&#x27;]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:122: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:30:00,817] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:30:00,819] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:30:04,080] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:30:04,080] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:30:17,853] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:30:20,483] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:30:20,485] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:30:20,486] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:30:20,486] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:30:20,486] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:30:20,516] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:30:21,261] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:30:23,202] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_notnullSpecifPerson</td>
<td class="col-duration">34.56</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184796.521727, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D4ECC18&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D4ECC18&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_notnullSpecifPerson(engine):<br/> # engine.get_page(engine.DQZ)<br/> <br/> engine.driver.xpath(&quot;//div[@id=&#x27;起诉意见书_犯罪嫌疑人_0_特定人员&#x27;]&quot;)[0].click()<br/> engine.driver.xpath(&quot;//li[@data=&#x27;聋哑人&#x27;]&quot;)[0].click()<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[contains(text(),&#x27;保存成功&#x27;)]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:268: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:33:16,522] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:33:16,523] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:33:19,660] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:33:19,660] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:33:32,406] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:33:35,032] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:33:35,033] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:33:35,033] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:33:35,034] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:33:35,034] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:33:35,065] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:33:35,796] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:33:37,754] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_notnullSpecialID</td>
<td class="col-duration">34.55</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184831.1136231, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D4EC6A0&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D4EC6A0&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_notnullSpecialID(engine):<br/> # engine.get_page(engine.DQZ)<br/> <br/> engine.driver.xpath(&quot;//div[@id=&#x27;起诉意见书_犯罪嫌疑人_0_特殊身份&#x27;]&quot;)[0].click()<br/> engine.driver.xpath(&quot;//li[@data=&#x27;国家工作人员&#x27;]&quot;)[0].click()<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[contains(text(),&#x27;保存成功&#x27;)]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:294: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:33:51,113] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:33:51,115] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:33:54,451] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:33:54,451] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:34:06,577] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:34:09,212] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:34:09,213] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:34:09,213] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:34:09,213] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:34:09,214] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:34:09,242] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:34:10,049] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:34:11,996] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_nullFilingTime</td>
<td class="col-duration">35.99</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184867.846867, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D483C50&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D483C50&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_nullFilingTime(engine):<br/> # engine.get_page(engine.DQZ)<br/> <br/> # js = &#x27;&#x27;&#x27;document.querySelector(&quot;//div[@title=&#x27;立案时间&#x27;]/following-sibling::div[1]//input&quot;).value = &quot;&quot;;&#x27;&#x27;&#x27;<br/> # engine.driver.execute_script(js)<br/> <br/> engine.driver.xpath(&quot;//div[@title=&#x27;立案时间&#x27;]/following-sibling::div[1]//input&quot;)[0].clear()<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[contains(text(),&#x27;保存成功&#x27;)]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:312: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:34:27,847] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:34:27,848] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:34:31,186] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:34:31,186] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:34:44,358] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:34:46,999] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:34:47,001] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:34:47,001] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:34:47,001] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:34:47,001] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:34:47,042] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:34:47,831] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:34:49,861] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_IncorrectFormatFilingTime</td>
<td class="col-duration">35.45</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184903.8530414, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D483C88&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D483C88&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_IncorrectFormatFilingTime(engine): # 立案时间格式于标准不一致 todo 不提示格式不正确!!<br/> # engine.get_page(engine.DQZ)<br/> <br/> input =engine.driver.xpath(&quot;//div[@title=&#x27;立案时间&#x27;]/following-sibling::div[1]//input&quot;)[0]<br/> input.clear()<br/> input.send_keys(&#x27;5月5日&#x27;)<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[text()=&#x27;日期格式不正确!&#x27;]&quot;)<br/>&gt; assert len(message) == 1 and &#x27;不提示格式不正确!!&#x27;<br/><span class="error">E assert (0 == 1)</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:329: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:35:03,854] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:35:03,855] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:35:07,421] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:35:07,421] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:35:19,620] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:35:22,275] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:35:22,279] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:35:22,280] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:35:22,281] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:35:22,281] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:35:22,322] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:35:23,088] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:35:25,027] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_correctFormatFilingTime</td>
<td class="col-duration">33.65</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184941.4751148, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D57BF28&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D57BF28&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_correctFormatFilingTime(engine): # 立案时间格式于标准一致<br/> # engine.get_page(engine.DQZ)<br/> <br/> input = engine.driver.xpath(&quot;//div[@title=&#x27;立案时间&#x27;]/following-sibling::div[1]//input&quot;)[0]<br/> input.clear()<br/> input.send_keys(&#x27;2020年05月05日&#x27;)<br/> time.sleep(0.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[contains(text(),&#x27;保存成功&#x27;)]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:346: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:35:41,476] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:35:41,477] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:35:44,727] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:35:44,727] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:35:56,518] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:35:59,167] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:35:59,170] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:35:59,171] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:35:59,171] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:35:59,171] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:35:59,202] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:35:59,973] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:36:02,084] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="failed results-table-row">
<tr>
<td class="col-result">Failed</td>
<td class="col-name">test_jbaq.py::test_nullmeasure</td>
<td class="col-duration">36.56</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log">args = (), kwargs = {}, start_time = 1601184975.1367779, log_name = &#x27;test_jbaq&#x27;<br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D57B7B8&gt;<br/><br/> def wapper(*args, **kwargs):<br/> # try:<br/> start_time = time.time()<br/> log_name = os.path.split(file)[-1].split(&quot;.&quot;)[0]<br/> # image_path = os.path.join(os.path.dirname(os.path.dirname(file)), &quot;images&quot;)<br/> # image_path = os.path.join(image_path, log_name)<br/> # image_path += &#x27;.png&#x27;<br/> <br/> engine = BrowserEngine(url, login, log_name)<br/> <br/>&gt; ret = f(engine, *args, **kwargs)<br/><br/>..\..\engine\__init__.py:20: <br/>_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ <br/><br/>engine = &lt;engine.browser_engine.BrowserEngine object at 0x0000019D9D57B7B8&gt;<br/><br/> @pytest.mark.basicmatter<br/> @get_engine(__file__, url=URL1.format(**params1))<br/> def test_nullmeasure(engine): # 强制措施为空<br/> # engine.get_page(engine.DQZ)<br/> <br/> # js = &#x27;&#x27;&#x27;document.querySelector(&quot;#起诉意见书_犯罪嫌疑人_0_当前强制措施情况_案情摘要&quot;).value=&quot;&quot;;&#x27;&#x27;&#x27;<br/> # engine.driver.execute_script(js)<br/> <br/> input = engine.driver.xpath(&quot;//textarea[@id=&#x27;起诉意见书_犯罪嫌疑人_0_当前强制措施情况_案情摘要&#x27;]&quot;)[0]<br/> input.click()<br/> input.clear()<br/> time.sleep(3.5)<br/> save_button = engine.driver.xpath(&quot;//span[text()=&#x27;保存&#x27;]/..&quot;)[0]<br/> save_button.click()<br/> time.sleep(0.5)<br/> message = engine.driver.xpath(&quot;//div[@class=&#x27;ant-message&#x27;]//span[contains(text(),&#x27;保存成功&#x27;)]&quot;)<br/>&gt; assert len(message) == 1<br/><span class="error">E assert 0 == 1</span><br/><span class="error">E + where 0 = len([])</span><br/><br/>test_jbaq.py:367: AssertionError<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:36:15,136] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:36:15,137] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:36:18,409] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:36:18,409] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:36:30,375] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:36:33,013] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:36:33,016] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:36:33,017] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:36:33,017] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:36:33,017] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:36:33,057] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:36:33,794] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:36:35,677] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_jbaq.py::test_nullID</td>
<td class="col-duration">26.03</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:30:36,807] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:30:36,808] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:30:39,989] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:30:39,989] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:30:51,758] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:30:54,397] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:30:54,400] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:30:54,400] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:30:54,401] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:30:54,401] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:30:54,431] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:30:55,169] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:30:57,060] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:31:00,649] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:23.841755867004395s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:23.841755867004395s<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_jbaq.py::test_notnulledu</td>
<td class="col-duration">25.93</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:31:02,839] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:31:02,840] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:31:05,977] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:31:05,977] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:31:17,767] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:31:20,390] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:31:20,391] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:31:20,391] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:31:20,392] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:31:20,392] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:31:20,422] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:31:21,162] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:31:23,129] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:31:26,558] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:23.718897342681885s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:23.718897342681885s<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_yjhc.py::test_xzss</td>
<td class="col-duration">30.14</td>
<td class="col-name">test_jbaq.py::test_nullDomicile</td>
<td class="col-duration">26.98</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>assert (8 - 8) == 1
+ where 8 = len([&lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;8a4b3f4f2684c84e69ce667128351369&quot;, element=&quot;44f80a33-b048-...belement.WebElement (session=&quot;8a4b3f4f2684c84e69ce667128351369&quot;, element=&quot;101c7c14-337f-49a4-b1ee-b1f8f24c5eff&quot;)&gt;, ...])
+ and 8 = len([&lt;selenium.webdriver.remote.webelement.WebElement (session=&quot;8a4b3f4f2684c84e69ce667128351369&quot;, element=&quot;44f80a33-b048-...belement.WebElement (session=&quot;8a4b3f4f2684c84e69ce667128351369&quot;, element=&quot;101c7c14-337f-49a4-b1ee-b1f8f24c5eff&quot;)&gt;, ...])
<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-23 14:24:34,459] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-23 14:24:34,459] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-23 14:24:37,709] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-23 14:24:37,709] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-23 14:24:50,503] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-23 14:24:53,176] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-23 14:24:53,176] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-23 14:24:53,176] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-23 14:24:53,176] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-23 14:24:53,176] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-23 14:24:53,223] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-23 14:24:53,972] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-23 14:24:55,879] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_yjhc:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_yjhc:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_yjhc:read_config.py:33 the browserType : Chrome
INFO  test_yjhc:browser_engine.py:30 browserName: Chrome
INFO  test_yjhc:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_yjhc:browser_engine.py:38 Maximize the current window.
INFO  test_yjhc:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_yjhc:read_config.py:43 the userInfo : 周朝阳
INFO  test_yjhc:read_config.py:43 the userInfo : qazwsxedc
INFO  test_yjhc:browser_engine.py:49 username: 周朝阳
INFO  test_yjhc:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_yjhc:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_yjhc:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪<br/></div></td></tr></tbody>
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:31:28,774] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:31:28,774] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:31:31,956] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:31:31,957] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:31:44,642] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:31:47,271] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:31:47,273] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:31:47,273] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:31:47,273] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:31:47,273] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:31:47,305] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:31:48,035] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:31:49,937] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:31:53,567] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:24.79393243789673s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:24.79393243789673s<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_yjhc.py::test_xzssgl</td>
<td class="col-duration">44.33</td>
<td class="col-name">test_jbaq.py::test_notnullDomicile</td>
<td class="col-duration">26.85</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>list index out of range
<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-23 14:25:04,594] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-23 14:25:04,594] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-23 14:25:07,789] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-23 14:25:07,789] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-23 14:25:19,118] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-23 14:25:21,805] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-23 14:25:21,805] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-23 14:25:21,805] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-23 14:25:21,805] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-23 14:25:21,805] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-23 14:25:21,832] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-23 14:25:22,589] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-23 14:25:24,489] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_yjhc:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_yjhc:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_yjhc:read_config.py:33 the browserType : Chrome
INFO  test_yjhc:browser_engine.py:30 browserName: Chrome
INFO  test_yjhc:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_yjhc:browser_engine.py:38 Maximize the current window.
INFO  test_yjhc:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_yjhc:read_config.py:43 the userInfo : 周朝阳
INFO  test_yjhc:read_config.py:43 the userInfo : qazwsxedc
INFO  test_yjhc:browser_engine.py:49 username: 周朝阳
INFO  test_yjhc:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_yjhc:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_yjhc:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪<br/></div></td></tr></tbody>
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:31:55,752] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:31:55,754] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:31:58,912] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:31:58,912] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:32:10,698] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:32:13,324] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:32:13,326] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:32:13,326] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:32:13,326] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:32:13,326] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:32:13,357] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:32:14,098] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:32:16,069] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:32:20,377] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:24.625619411468506s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:24.625619411468506s<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_yjhc.py::test_scxzss</td>
<td class="col-duration">34.98</td>
<td class="col-name">test_jbaq.py::test_nulladdr</td>
<td class="col-duration">26.76</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=85.0.4183.102)
<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-23 14:25:48,927] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-23 14:25:48,927] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-23 14:25:52,093] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-23 14:25:52,093] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-23 14:26:04,008] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-23 14:26:06,650] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-23 14:26:06,650] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-23 14:26:06,650] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-23 14:26:06,650] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-23 14:26:06,650] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-23 14:26:06,681] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-23 14:26:13,217] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-23 14:26:15,156] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_yjhc:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_yjhc:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_yjhc:read_config.py:33 the browserType : Chrome
INFO  test_yjhc:browser_engine.py:30 browserName: Chrome
INFO  test_yjhc:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_yjhc:browser_engine.py:38 Maximize the current window.
INFO  test_yjhc:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_yjhc:read_config.py:43 the userInfo : 周朝阳
INFO  test_yjhc:read_config.py:43 the userInfo : qazwsxedc
INFO  test_yjhc:browser_engine.py:49 username: 周朝阳
INFO  test_yjhc:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_yjhc:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_yjhc:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400659号/file?bmsah=瓯检起诉受[2020]33030400659号&amp;stage=GS&amp;tysah=33030420200013400&amp;ysay=盗窃罪<br/></div></td></tr></tbody>
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:32:22,599] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:32:22,600] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:32:25,758] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:32:25,758] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:32:37,620] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:32:40,260] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:32:40,263] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:32:40,264] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:32:40,264] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:32:40,264] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:32:40,299] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:32:41,000] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:32:42,996] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:32:47,166] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:24.566624402999878s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:24.566624402999878s<br/></div></td></tr></tbody>
<tbody class="passed results-table-row">
<tr>
<td class="col-result">Passed</td>
<td class="col-name">test_yjhc.py::test_ssglzlbsrnr</td>
<td class="col-duration">17.54</td>
<td class="col-name">test_jbaq.py::test_notnulladdr</td>
<td class="col-duration">27.15</td>
<td class="col-links"></td></tr>
<tr>
<td class="extra" colspan="4">
<div class="log"> ------------------------------Captured stdout call------------------------------ <br/>Message: no such window: target window already closed
from unknown error: web view not found
(Session info: chrome=85.0.4183.102)
<br/> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-23 14:26:23,911] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-23 14:26:23,911] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-23 14:26:27,096] - [ INFO] - [ test_yjhc] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-23 14:26:27,096] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-23 14:26:38,878] - [ INFO] - [ test_yjhc] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_yjhc:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_yjhc:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_yjhc:read_config.py:33 the browserType : Chrome
INFO  test_yjhc:browser_engine.py:30 browserName: Chrome
INFO  test_yjhc:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm<br/></div></td></tr></tbody></table></body></html>
\ No newline at end of file
<div class="log"> ------------------------------Captured stderr call------------------------------ <br/>[2020-09-27 13:32:49,365] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 29] - the configPath: C:\Users\80980\znfz_autotest\config\config.ini
[2020-09-27 13:32:49,366] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
[2020-09-27 13:32:52,638] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 33] - the browserType : Chrome
[2020-09-27 13:32:52,639] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 30] - browserName: Chrome
[2020-09-27 13:33:05,377] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 35] - Open url: http://2u8997d500.zicp.vip:46630/cm
[2020-09-27 13:33:08,008] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 38] - Maximize the current window.
[2020-09-27 13:33:08,010] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 40] - Set implicitly wait 10 seconds.
[2020-09-27 13:33:08,010] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : 周朝阳
[2020-09-27 13:33:08,010] - [ INFO] - [ test_jbaq] - [ read_config.py] - [ 43] - the userInfo : qazwsxedc
[2020-09-27 13:33:08,010] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 49] - username: 周朝阳
[2020-09-27 13:33:08,039] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 54] - tags.text:请选择所属部门
[2020-09-27 13:33:08,773] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 63] - tags2.text:瓯海区院
[2020-09-27 13:33:10,739] - [ INFO] - [ test_jbaq] - [ browser_engine.py] - [ 94] - the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
[2020-09-27 13:33:14,329] - [ INFO] - [ test_jbaq] - [ __init__.py] - [ 23] - 执行时间:24.965128898620605s
<br/> -------------------------------Captured log call-------------------------------- <br/>INFO  test_jbaq:read_config.py:29 the configPath: C:\Users\80980\znfz_autotest\config\config.ini
INFO  test_jbaq:read_config.py:33 the browserType : C:/Users/80980/znfz_autotest/driver/chromedriver.exe
INFO  test_jbaq:read_config.py:33 the browserType : Chrome
INFO  test_jbaq:browser_engine.py:30 browserName: Chrome
INFO  test_jbaq:browser_engine.py:35 Open url: http://2u8997d500.zicp.vip:46630/cm
INFO  test_jbaq:browser_engine.py:38 Maximize the current window.
INFO  test_jbaq:browser_engine.py:40 Set implicitly wait 10 seconds.
INFO  test_jbaq:read_config.py:43 the userInfo : 周朝阳
INFO  test_jbaq:read_config.py:43 the userInfo : qazwsxedc
INFO  test_jbaq:browser_engine.py:49 username: 周朝阳
INFO  test_jbaq:browser_engine.py:54 tags.text:请选择所属部门
INFO  test_jbaq:browser_engine.py:63 tags2.text:瓯海区院
INFO  test_jbaq:browser_engine.py:94 the testUrl : http://2u8997d500.zicp.vip:46630/cm/currencydeal/瓯检起诉受[2020]33030400557号/case?bmsah=瓯检起诉受[2020]33030400557号
INFO  test_jbaq:__init__.py:23 执行时间:24.965128898620605s<br/></div></td></tr></tbody></table></body></html>
\ No newline at end of file
......@@ -10,7 +10,7 @@ URL1 = '''http://{host}/cm/currencydeal/{bmsah}/{page}?bmsah={bmsah}'''
params1 = {
'host' : HOST,
'bmsah': '瓯检起诉受[2020]33030400659号',
'bmsah': '瓯检起诉受[2020]33030400557号',
'page' : 'case',
}
......@@ -87,7 +87,7 @@ def test_del_xyr(engine):
@pytest.mark.nullxyr
@get_engine(__file__,url=URL1.format(**params1))
def test_null_xyr(engine):
def test_null_xyr(engine): # 嫌疑人姓名为空
# engine.get_page(engine.DQZ)
# js = '''document.querySelector("#起诉意见书_犯罪嫌疑人_0_犯罪嫌疑人姓名").value = "";'''
......@@ -103,6 +103,7 @@ def test_null_xyr(engine):
@pytest.mark.basicmatter
@get_engine(__file__,url=URL1.format(**params1))
def test_nullbirth(engine):
......@@ -116,15 +117,16 @@ def test_nullbirth(engine):
time.sleep(0.5)
save_button = engine.driver.xpath("//span[text()='保存']/..")[0]
save_button.click()
time.sleep(3.5)
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_nullID(engine):
def test_nullID(engine): # 无身份证信息 todo input输入框清空无法保存
# engine.get_page(engine.DQZ)
time.sleep(0.5)
......@@ -134,17 +136,15 @@ def test_nullID(engine):
# # engine.driver.execute_script(js)
engine.driver.xpath("//input[@id='起诉意见书_犯罪嫌疑人_0_身份证号码']")[0].clear()
time.sleep(2.5)
time.sleep(0.5)
save_button = engine.driver.xpath("//span[text()='保存']/..")[0]
save_button.click()
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
message = engine.driver.xpath("//div[@class='ant-message']//span[contains(text(),'保存成功')]")
assert len(message) == 1
# @pytest.mark.basicmatter # todo
# @pytest.mark.basicmatter
# @get_engine(__file__, url=URL1.format(**params1))
# def test_nulledu(engine):
# engine.driver.xpath("//div[@id='起诉意见书_犯罪嫌疑人_0_文化程度']")[0].clear()
......@@ -155,8 +155,6 @@ def test_nullID(engine):
# message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
# assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__,url=URL1.format(**params1))
def test_notnulledu(engine):
......@@ -173,6 +171,7 @@ def test_notnulledu(engine):
@pytest.mark.basicmatter
@get_engine(__file__,url=URL1.format(**params1))
def test_nullDomicile(engine):
......@@ -185,12 +184,13 @@ def test_nullDomicile(engine):
save_button = engine.driver.xpath("//span[text()='保存']/..")[0]
save_button.click()
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
message = engine.driver.xpath("//div[@class='ant-message']//span[contains(text(),'保存成功')]")
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__,url=URL1.format(**params1))
def test_notnullDomicile(engine):
......@@ -207,6 +207,7 @@ def test_notnullDomicile(engine):
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__,url=URL1.format(**params1))
def test_nulladdr(engine):
......@@ -220,10 +221,11 @@ def test_nulladdr(engine):
save_button = engine.driver.xpath("//span[text()='保存']/..")[0]
save_button.click()
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
message = engine.driver.xpath("//div[@class='ant-message']//span[contains(text(),'保存成功')]")
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_notnulladdr(engine):
......@@ -240,7 +242,7 @@ def test_notnulladdr(engine):
assert len(message) == 1
# @pytest.mark.nullSpecifPerson # todo
# @pytest.mark.nullSpecifPerson
# @get_engine(__file__, url=URL1.format(**params1))
# def test_null_xyr(engine):
# # engine.driver.xpath("//input[@id='起诉意见书_犯罪嫌疑人_0_住址']")[0].clear().send_keys('123')
......@@ -251,8 +253,6 @@ def test_notnulladdr(engine):
# message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
# assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_notnullSpecifPerson(engine):
......@@ -268,9 +268,7 @@ def test_notnullSpecifPerson(engine):
assert len(message) == 1
# @pytest.mark.nullSpecialID # todo
# @pytest.mark.nullSpecialID
# @get_engine(__file__, url=URL1.format(**params1))
# def test_null_xyr(engine):
# # engine.driver.xpath("//input[@id='起诉意见书_犯罪嫌疑人_0_特殊身份']")[0].clear().send_keys('123')
......@@ -281,8 +279,6 @@ def test_notnullSpecifPerson(engine):
# message = engine.driver.xpath("//div[@class='ant-message']//span[text()='有必填项未填']")
# assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_notnullSpecialID(engine):
......@@ -298,6 +294,7 @@ def test_notnullSpecialID(engine):
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_nullFilingTime(engine):
......@@ -315,9 +312,10 @@ def test_nullFilingTime(engine):
assert len(message) == 1
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_IncorrectFormatFilingTime(engine): # 立案时间为空
def test_IncorrectFormatFilingTime(engine): # 立案时间格式于标准不一致 todo 不提示格式不正确!!
# engine.get_page(engine.DQZ)
input =engine.driver.xpath("//div[@title='立案时间']/following-sibling::div[1]//input")[0]
......@@ -328,12 +326,13 @@ def test_IncorrectFormatFilingTime(engine): # 立案时间为空
save_button.click()
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[text()='日期格式不正确!']")
assert len(message) == 1
assert len(message) == 1 and '不提示格式不正确!!'
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_correctFormatFilingTime(engine): # 立案时间格式于标准一致
def test_correctFormatFilingTime(engine): # 立案时间格式于标准一致
# engine.get_page(engine.DQZ)
input = engine.driver.xpath("//div[@title='立案时间']/following-sibling::div[1]//input")[0]
......@@ -348,6 +347,7 @@ def test_correctFormatFilingTime(engine): # 立案时间格式于标准不一致
@pytest.mark.basicmatter
@get_engine(__file__, url=URL1.format(**params1))
def test_nullmeasure(engine): # 强制措施为空
......@@ -367,6 +367,7 @@ def test_nullmeasure(engine): # 强制措施为空
assert len(message) == 1
# @pytest.mark.basicmatter
# @get_engine(__file__, url=URL1.format(**params1))
# def test_fzjlRetract(engine): # 犯罪经历收起
......
......@@ -393,17 +393,17 @@ def test_xgxyrqtxx(engine): # 修改嫌疑人qtxx
time.sleep(0.5)
engine.driver.xpath("//div[text()='嫌疑人基本信息']/../..//div[contains(@class,'item___2HoCU')]")[0].click()
time.sleep(0.5)
engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]/input")[-1].click()
engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]//input")[-1].click()
time.sleep(0.5)
# engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]/input")[-1].clear()
# engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]//input")[-1].clear()
js = '''
document.querySelector("#root > div > div.default___1xRiJ > div.content___2Qldd > div > div > div > div.all___1MXc1 > div > div.main___JcrjF > div > div.mainRight___2k3VE.rightBack___3QMs7.rightElement___3KEHQ > div > form > div > div:nth-child(1) > div > div.ant-collapse-content.ant-collapse-content-active > div > div > form > div > div > div.default___17U5U > div > div > div:nth-child(1) > div:nth-child(3) > div.content___3n339 > div > div > div > span > input").value = "";'''
engine.driver.execute_script(js)
engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]/input")[-1].send_keys(xyr_birth)
engine.driver.xpath("//div[@title='出生日期']/following-sibling::div[1]//input")[-1].send_keys(xyr_birth)
engine.driver.xpath("//span[text()='保 存']/..")[0].click()
time.sleep(0.5)
message = engine.driver.xpath("//div[@class='ant-message']//span[contains(text(),'保存成功')]")
test_birth = engine.driver.xpath("//input[@title='出生日期']/following-sibling::div[1]/input")[-1].text
test_birth = engine.driver.xpath("//input[@title='出生日期']/following-sibling::div[1]//input")[-1].text
assert len(message) == 1 and test_birth == xyr_birth
......
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