Commit b6d73a810ef30df46e24c30ba4d38511197e3eaf

Authored by 175930106
Committed by liujiqiang
1 parent 1138426e

更新了下邮件的配置

src/commons/SendEmail.py
@@ -15,24 +15,24 @@ def send_email_text(): @@ -15,24 +15,24 @@ def send_email_text():
15 msg = MIMEText('this is a test email', 'plain', 'utf-8') 15 msg = MIMEText('this is a test email', 'plain', 'utf-8')
16 16
17 # 2. 组装Email头(发件人,收件人,主题) 17 # 2. 组装Email头(发件人,收件人,主题)
18 - msg['From'] = '328351418@qq.com' # 发件人  
19 - msg['To'] = '328351418@qq.com' # 收件人 18 + msg['From'] = '175536767@qq.com' # 发件人
  19 + msg['To'] = '175536767@qq.com' # 收件人
20 msg['Subject'] = 'Api Test Report' # 邮件主题 20 msg['Subject'] = 'Api Test Report' # 邮件主题
21 21
22 # 3. 连接smtp服务器并发送邮件 22 # 3. 连接smtp服务器并发送邮件
23 smtp = smtplib.SMTP_SSL('smtp.qq.com') 23 smtp = smtplib.SMTP_SSL('smtp.qq.com')
24 - smtp.login('328351418@qq.com', 'apebatdwkggkbiee')  
25 - smtp.sendmail("328351418@qq.com", "328351418@qq.com", msg.as_string()) 24 + smtp.login('175536767@qq.com', 'abdxliumhowgcabe')
  25 + smtp.sendmail("175536767@qq.com", "175536767@qq.com", msg.as_string())
26 smtp.quit() 26 smtp.quit()
27 27
28 28
29 -def send_email(send_file,send_to=["lixi@diligrp.com","328351418@qq.com"]): 29 +def send_email(send_file,send_to=["lixi@diligrp.com"]):
30 30
31 log_path=os.path.dirname(os.path.dirname(__file__)) 31 log_path=os.path.dirname(os.path.dirname(__file__))
32 log_path=log_path+"/report/test.log" 32 log_path=log_path+"/report/test.log"
33 msg = MIMEMultipart() # 混合MIME格式 33 msg = MIMEMultipart() # 混合MIME格式
34 - msg['From'] = '328351418@qq.com' # 发件人  
35 - msg['To'] = '175930106@qq.com' # 收件人 34 + msg['From'] = '175536767@qq.com' # 发件人
  35 + msg['To'] = 'lixi@diligrp.com' # 收件人
36 msg['Subject'] = Header('接口测试报告', 'utf-8') # 中文邮件主题,指定utf-8编码 36 msg['Subject'] = Header('接口测试报告', 'utf-8') # 中文邮件主题,指定utf-8编码
37 37
38 text = MIMEText('this is a test email', 'plain', 'utf-8') 38 text = MIMEText('this is a test email', 'plain', 'utf-8')
@@ -52,8 +52,8 @@ def send_email(send_file,send_to=["lixi@diligrp.com","328351418@qq.com"]): @@ -52,8 +52,8 @@ def send_email(send_file,send_to=["lixi@diligrp.com","328351418@qq.com"]):
52 log.info("发送邮件") 52 log.info("发送邮件")
53 try: 53 try:
54 smtp = smtplib.SMTP_SSL('smtp.qq.com') # smtp服务器地址 使用SSL模式 54 smtp = smtplib.SMTP_SSL('smtp.qq.com') # smtp服务器地址 使用SSL模式
55 - re=smtp.login('328351418@qq.com', 'wveicahctcizbghh') # 用户名和密码  
56 - smtp.sendmail("328351418@qq.com", send_to, msg.as_string()) 55 + re=smtp.login('175536767@qq.com', 'abdxliumhowgcabe') # 用户名和密码
  56 + smtp.sendmail("175536767@qq.com", send_to, msg.as_string())
57 print(re) 57 print(re)
58 except Exception as e: 58 except Exception as e:
59 log.error(str(e)) 59 log.error(str(e))
src/commons/__pycache__/SendEmail.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/login.cpython-36.pyc
No preview for this file type
src/commons/api/__pycache__/upStream.cpython-36.pyc
No preview for this file type
src/commons/api/upStream.py
@@ -32,9 +32,9 @@ class upStream(): @@ -32,9 +32,9 @@ class upStream():
32 32
33 33
34 34
35 -# uu=upStream()  
36 -# re=my.post(url=uu.url,headers=uu.header,json=uu.body)  
37 -# print(re.json()) 35 +uu=upStream()
  36 +re=my.post(url=uu.url,headers=uu.header,json=uu.body)
  37 +print(re.json())
38 #========================================================= 38 #=========================================================
39 # body=uu.body.copy() 39 # body=uu.body.copy()
40 # body["likeName"]="111" 40 # body["likeName"]="111"
src/config/global_data.conf
@@ -11,7 +11,7 @@ user02=87 @@ -11,7 +11,7 @@ user02=87
11 user03=256 11 user03=256
12 12
13 [email] 13 [email]
14 -list=[] 14 +list=["lixi@diligrp.com"]
15 list1=["lixi@diligrp.com","LI@diligrp.com"] 15 list1=["lixi@diligrp.com","LI@diligrp.com"]
16 16
17 [mark] 17 [mark]
src/report/2021-06-28 16_47_46_result.html renamed to src/report/2021-07-02 10_23_32_result.html
@@ -420,9 +420,9 @@ function hide_img(obj){ @@ -420,9 +420,9 @@ function hide_img(obj){
420 </script> 420 </script>
421 <div class='heading'> 421 <div class='heading'>
422 <h1>搜索功能测试报告</h1> 422 <h1>搜索功能测试报告</h1>
423 -<p class='attribute'><strong>开始时间:</strong> 2021-06-28 16:47:46</p>  
424 -<p class='attribute'><strong>耗时:</strong> 0:00:17.400041</p>  
425 -<p class='attribute'><strong>状态:</strong> <span class="tj passCase">Pass</span>:13 <span class="tj failCase">Failure</span>:1 <span class="tj errorCase">Error</span>:2 <span class="tj skipCase">Skip</span>:1 <span class="tj">通过率</span>:81.2%</p> 423 +<p class='attribute'><strong>开始时间:</strong> 2021-07-02 10:23:32</p>
  424 +<p class='attribute'><strong>耗时:</strong> 0:00:10.730329</p>
  425 +<p class='attribute'><strong>状态:</strong> <span class="tj passCase">Pass</span>:15 <span class="tj failCase">Failure</span>:1 <span class="tj skipCase">Skip</span>:1 <span class="tj">通过率</span>:93.8%</p>
426 426
427 <p class='description'>用例执行情况:</p> 427 <p class='description'>用例执行情况:</p>
428 </div> 428 </div>
@@ -435,10 +435,10 @@ function hide_img(obj){ @@ -435,10 +435,10 @@ function hide_img(obj){
435 </div> 435 </div>
436 436
437 <div id='show_detail_line' style=" float: left; width: 100%;"> 437 <div id='show_detail_line' style=" float: left; width: 100%;">
438 -<a class="abstract detail_button" href='javascript:showCase(0,1)'>概要[81.25%]</a>  
439 -<a class="passed detail_button" href='javascript:showCase(1,1)'>通过[13]</a> 438 +<a class="abstract detail_button" href='javascript:showCase(0,1)'>概要[93.75%]</a>
  439 +<a class="passed detail_button" href='javascript:showCase(1,1)'>通过[15]</a>
440 <a class="failed detail_button" href='javascript:showCase(2,1)'>失败[1]</a> 440 <a class="failed detail_button" href='javascript:showCase(2,1)'>失败[1]</a>
441 -<a class="errored detail_button" href='javascript:showCase(3,1)'>错误[2]</a> 441 +<a class="errored detail_button" href='javascript:showCase(3,1)'>错误[0]</a>
442 <a class="skiped detail_button" href='javascript:showCase(4,1)'>跳过[1]</a> 442 <a class="skiped detail_button" href='javascript:showCase(4,1)'>跳过[1]</a>
443 <a class="all detail_button" href='javascript:showCase(5,1)'>所有[16]</a> 443 <a class="all detail_button" href='javascript:showCase(5,1)'>所有[16]</a>
444 </div> 444 </div>
@@ -463,83 +463,33 @@ function hide_img(obj){ @@ -463,83 +463,33 @@ function hide_img(obj){
463 <th>错误截图</th> 463 <th>错误截图</th>
464 </tr> 464 </tr>
465 465
466 -<tr class='errorClass'> 466 +<tr class='passClass'>
467 <td>doAdd.test_doAdd.test_doAdd: 新增登记接口</td> 467 <td>doAdd.test_doAdd.test_doAdd: 新增登记接口</td>
468 <td>3</td> 468 <td>3</td>
469 - <td>1</td> 469 + <td>3</td>
  470 + <td>0</td>
470 <td>0</td> 471 <td>0</td>
471 - <td>2</td>  
472 <td><a href="javascript:showClassDetail('c1.1',3)">详情</a></td> 472 <td><a href="javascript:showClassDetail('c1.1',3)">详情</a></td>
473 <td>&nbsp;</td> 473 <td>&nbsp;</td>
474 </tr> 474 </tr>
475 475
476 -<tr id='et1.1.1' class='none'> 476 +<tr id='pt1.1.1' class='hiddenRow'>
477 <td ><div class='testcase'>test_doAdd_01: 成功新增一个商品为大白菜的报备单,重量为111</div></td> 477 <td ><div class='testcase'>test_doAdd_01: 成功新增一个商品为大白菜的报备单,重量为111</div></td>
478 <td colspan='5' align='center'> 478 <td colspan='5' align='center'>
479 479
480 <!--css div popup start--> 480 <!--css div popup start-->
481 - <span class='status errorCase'>  
482 - <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_et1.1.1')" >  
483 - 错误</a></span> 481 + <span class='status passCase'>
  482 + <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.1.1')" >
  483 + 通过</a></span>
484 484
485 - <div id='div_et1.1.1' class="popup_window"> 485 + <div id='div_pt1.1.1' class="popup_window">
486 <div style='text-align: right; color:red;cursor:pointer'> 486 <div style='text-align: right; color:red;cursor:pointer'>
487 - <a onfocus='this.blur();' onclick="document.getElementById('div_et1.1.1').style.display = 'none' " > 487 + <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.1.1').style.display = 'none' " >
488 [x]</a> 488 [x]</a>
489 </div> 489 </div>
490 <pre> 490 <pre>
491 491
492 -et1.1.1: Traceback (most recent call last):  
493 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request  
494 - six.raise_from(e, None)  
495 - File "&lt;string&gt;", line 3, in raise_from  
496 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request  
497 - httplib_response = conn.getresponse()  
498 - File "C:\Python367\lib\http\client.py", line 1331, in getresponse  
499 - response.begin()  
500 - File "C:\Python367\lib\http\client.py", line 297, in begin  
501 - version, status, reason = self._read_status()  
502 - File "C:\Python367\lib\http\client.py", line 258, in _read_status  
503 - line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")  
504 - File "C:\Python367\lib\socket.py", line 586, in readinto  
505 - return self._sock.recv_into(b)  
506 -socket.timeout: timed out  
507 -  
508 -During handling of the above exception, another exception occurred:  
509 -  
510 -Traceback (most recent call last):  
511 - File "C:\Python367\lib\site-packages\requests\adapters.py", line 449, in send  
512 - timeout=timeout  
513 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen  
514 - method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]  
515 - File "C:\Python367\lib\site-packages\urllib3\util\retry.py", line 400, in increment  
516 - raise six.reraise(type(error), error, _stacktrace)  
517 - File "C:\Python367\lib\site-packages\urllib3\packages\six.py", line 735, in reraise  
518 - raise value  
519 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen  
520 - chunked=chunked,  
521 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 423, in _make_request  
522 - self._raise_timeout(err=e, url=url, timeout_value=read_timeout)  
523 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 331, in _raise_timeout  
524 - self, url, "Read timed out. (read timeout=%s)" % timeout_value  
525 -urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8888): Read timed out. (read timeout=5)  
526 -  
527 -During handling of the above exception, another exception occurred:  
528 -  
529 -Traceback (most recent call last):  
530 - File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\testcase\doAdd\test_doAdd.py", line 25, in test_doAdd_01  
531 - re=my.post(url=do.url,headers=do.header,json=do.body)  
532 - File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\commons\MySession.py", line 98, in post  
533 - re=self.se.post(url, data=data, json=json,proxies=self.proxies, **kwargs,timeout=self.timeout)  
534 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 590, in post  
535 - return self.request('POST', url, data=data, json=json, **kwargs)  
536 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 542, in request  
537 - resp = self.send(prep, **send_kwargs)  
538 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 655, in send  
539 - r = adapter.send(request, **kwargs)  
540 - File "C:\Python367\lib\site-packages\requests\adapters.py", line 529, in send  
541 - raise ReadTimeout(e, request=request)  
542 -requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8888): Read timed out. (read timeout=5) 492 +pt1.1.1: {'code': '200', 'message': 'OK', 'result': 'OK', 'success': True}
543 493
544 494
545 </pre> 495 </pre>
@@ -550,73 +500,23 @@ requests.exceptions.ReadTimeout: HTTPConnectionPool(host=&#39;localhost&#39;, port=8888) @@ -550,73 +500,23 @@ requests.exceptions.ReadTimeout: HTTPConnectionPool(host=&#39;localhost&#39;, port=8888)
550 <td>无截图</td> 500 <td>无截图</td>
551 </tr> 501 </tr>
552 502
553 -<tr id='et1.1.2' class='none'> 503 +<tr id='pt1.1.2' class='hiddenRow'>
554 <td ><div class='testcase'>test_doAdd_02: 成功新增一个商品为鲜花生的报备单,重量为111</div></td> 504 <td ><div class='testcase'>test_doAdd_02: 成功新增一个商品为鲜花生的报备单,重量为111</div></td>
555 <td colspan='5' align='center'> 505 <td colspan='5' align='center'>
556 506
557 <!--css div popup start--> 507 <!--css div popup start-->
558 - <span class='status errorCase'>  
559 - <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_et1.1.2')" >  
560 - 错误</a></span> 508 + <span class='status passCase'>
  509 + <a class="popup_link" onfocus='this.blur();' href="javascript:showTestDetail('div_pt1.1.2')" >
  510 + 通过</a></span>
561 511
562 - <div id='div_et1.1.2' class="popup_window"> 512 + <div id='div_pt1.1.2' class="popup_window">
563 <div style='text-align: right; color:red;cursor:pointer'> 513 <div style='text-align: right; color:red;cursor:pointer'>
564 - <a onfocus='this.blur();' onclick="document.getElementById('div_et1.1.2').style.display = 'none' " > 514 + <a onfocus='this.blur();' onclick="document.getElementById('div_pt1.1.2').style.display = 'none' " >
565 [x]</a> 515 [x]</a>
566 </div> 516 </div>
567 <pre> 517 <pre>
568 518
569 -et1.1.2: Traceback (most recent call last):  
570 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 421, in _make_request  
571 - six.raise_from(e, None)  
572 - File "&lt;string&gt;", line 3, in raise_from  
573 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 416, in _make_request  
574 - httplib_response = conn.getresponse()  
575 - File "C:\Python367\lib\http\client.py", line 1331, in getresponse  
576 - response.begin()  
577 - File "C:\Python367\lib\http\client.py", line 297, in begin  
578 - version, status, reason = self._read_status()  
579 - File "C:\Python367\lib\http\client.py", line 258, in _read_status  
580 - line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")  
581 - File "C:\Python367\lib\socket.py", line 586, in readinto  
582 - return self._sock.recv_into(b)  
583 -socket.timeout: timed out  
584 -  
585 -During handling of the above exception, another exception occurred:  
586 -  
587 -Traceback (most recent call last):  
588 - File "C:\Python367\lib\site-packages\requests\adapters.py", line 449, in send  
589 - timeout=timeout  
590 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 720, in urlopen  
591 - method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]  
592 - File "C:\Python367\lib\site-packages\urllib3\util\retry.py", line 400, in increment  
593 - raise six.reraise(type(error), error, _stacktrace)  
594 - File "C:\Python367\lib\site-packages\urllib3\packages\six.py", line 735, in reraise  
595 - raise value  
596 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 672, in urlopen  
597 - chunked=chunked,  
598 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 423, in _make_request  
599 - self._raise_timeout(err=e, url=url, timeout_value=read_timeout)  
600 - File "C:\Python367\lib\site-packages\urllib3\connectionpool.py", line 331, in _raise_timeout  
601 - self, url, "Read timed out. (read timeout=%s)" % timeout_value  
602 -urllib3.exceptions.ReadTimeoutError: HTTPConnectionPool(host='localhost', port=8888): Read timed out. (read timeout=5)  
603 -  
604 -During handling of the above exception, another exception occurred:  
605 -  
606 -Traceback (most recent call last):  
607 - File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\testcase\doAdd\test_doAdd.py", line 40, in test_doAdd_02  
608 - re=my.post(url=do.url,headers=do.header,json=body)  
609 - File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\commons\MySession.py", line 98, in post  
610 - re=self.se.post(url, data=data, json=json,proxies=self.proxies, **kwargs,timeout=self.timeout)  
611 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 590, in post  
612 - return self.request('POST', url, data=data, json=json, **kwargs)  
613 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 542, in request  
614 - resp = self.send(prep, **send_kwargs)  
615 - File "C:\Python367\lib\site-packages\requests\sessions.py", line 655, in send  
616 - r = adapter.send(request, **kwargs)  
617 - File "C:\Python367\lib\site-packages\requests\adapters.py", line 529, in send  
618 - raise ReadTimeout(e, request=request)  
619 -requests.exceptions.ReadTimeout: HTTPConnectionPool(host='localhost', port=8888): Read timed out. (read timeout=5) 519 +pt1.1.2: {'code': '200', 'message': 'OK', 'result': 'OK', 'success': True}
620 520
621 521
622 </pre> 522 </pre>
@@ -800,6 +700,8 @@ pt1.2.4: {&#39;code&#39;: &#39;5000&#39;, &#39;message&#39;: &#39;操作失败,数据状态已改变&#39;, &#39;re @@ -800,6 +700,8 @@ pt1.2.4: {&#39;code&#39;: &#39;5000&#39;, &#39;message&#39;: &#39;操作失败,数据状态已改变&#39;, &#39;re
800 700
801 pt1.3.1: setUp 701 pt1.3.1: setUp
802 test_01_fieldConfig 702 test_01_fieldConfig
  703 +['__call__', '__class__', '__delattr__', '__dict__', '__dir__', '__doc__', '__eq__', '__format__', '__ge__', '__getattribute__', '__gt__', '__hash__', '__init__', '__init_subclass__', '__le__', '__lt__', '__module__', '__ne__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__setattr__', '__sizeof__', '__str__', '__subclasshook__', '__weakref__', '_addExpectedFailure', '_addSkip', '_addUnexpectedSuccess', '_baseAssertEqual', '_classSetupFailed', '_deprecate', '_diffThreshold', '_feedErrorsToResult', '_formatMessage', '_getAssertEqualityFunc', '_truncateMessage', 'addCleanup', 'addTypeEqualityFunc', 'assertAlmostEqual', 'assertAlmostEquals', 'assertCountEqual', 'assertDictContainsSubset', 'assertDictEqual', 'assertEqual', 'assertEquals', 'assertFalse', 'assertGreater', 'assertGreaterEqual', 'assertIn', 'assertIs', 'assertIsInstance', 'assertIsNone', 'assertIsNot', 'assertIsNotNone', 'assertLess', 'assertLessEqual', 'assertListEqual', 'assertLogs', 'assertMultiLineEqual', 'assertNotAlmostEqual', 'assertNotAlmostEquals', 'assertNotEqual', 'assertNotEquals', 'assertNotIn', 'assertNotIsInstance', 'assertNotRegex', 'assertNotRegexpMatches', 'assertRaises', 'assertRaisesRegex', 'assertRaisesRegexp', 'assertRegex', 'assertRegexpMatches', 'assertSequenceEqual', 'assertSetEqual', 'assertTrue', 'assertTupleEqual', 'assertWarns', 'assertWarnsRegex', 'assert_', 'countTestCases', 'debug', 'defaultTestResult', 'doCleanups', 'fail', 'failIf', 'failIfAlmostEqual', 'failIfEqual', 'failUnless', 'failUnlessAlmostEqual', 'failUnlessEqual', 'failUnlessRaises', 'failureException', 'id', 'longMessage', 'maxDiff', 'run', 'setUp', 'setUpClass', 'shortDescription', 'skipTest', 'subTest', 'tearDown', 'tearDownClass', 'test_fieldConfig_01', 'test_fieldConfig_02', 'test_fieldConfig_03', 'test_fieldConfig_04']
  704 +&lt;bound method TestCase.countTestCases of &lt;fieldConfig.test_fieldConfig.test_fieldConfig testMethod=test_fieldConfig_01&gt;&gt;
803 tearDown 705 tearDown
804 706
805 707
@@ -860,7 +762,7 @@ ft1.3.3: setUp @@ -860,7 +762,7 @@ ft1.3.3: setUp
860 test_03_fieldConfig 762 test_03_fieldConfig
861 tearDown 763 tearDown
862 Traceback (most recent call last): 764 Traceback (most recent call last):
863 - File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\testcase\fieldConfig\test_fieldConfig.py", line 32, in test_fieldConfig_03 765 + File "E:\EclipseWorkspace\WorksapceDemo\Request-demo-dili\src\testcase\fieldConfig\test_fieldConfig.py", line 34, in test_fieldConfig_03
864 self.assertEqual(100, 200, "测试使用") 766 self.assertEqual(100, 200, "测试使用")
865 AssertionError: 100 != 200 : 测试使用 767 AssertionError: 100 != 200 : 测试使用
866 768
@@ -925,7 +827,7 @@ st1.3.4: 执行时强制跳过该用例 @@ -925,7 +827,7 @@ st1.3.4: 执行时强制跳过该用例
925 </div> 827 </div>
926 <pre> 828 <pre>
927 829
928 -pt1.4.1: {'Access-Control-Expose-Headers': 'UAP_accessToken', 'Cache-Control': 'no-store', 'Set-Cookie': 'UAP_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2MjQ4NzAwODMsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE2MTExMTExMTExXCIsXCJjcmVhdGVkXCI6MTYwNDkwNzk2NzAwMCxcImRlcGFydG1lbnRJZFwiOjkwLFwiZGVzY3JpcHRpb25cIjpcIjY2NlwiLFwiZW1haWxcIjpcIjY2NkBkaWxpZ3JwLmNvbVwiLFwiZmlybUNvZGVcIjpcInNnXCIsXCJmaXJtSWRcIjo4LFwiZmlybU5hbWVcIjpcIuWvv-WFieWcsOWIqeWGnOWJr-S6p-WTgeaciemZkOWFrOWPuFwiLFwiZ2VuZGVyXCI6MCxcImlkXCI6MjEwLFwibGFzdExvZ2luVGltZVwiOjE2MjQ4NzAwODMzODcsXCJsb2NrZWRcIjoxNjIzODMyMzQwMDAwLFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyMzgzMjQ3NTAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcInJlYWxOYW1lXCI6XCLlr7_lhYnmuq_mupDlk59cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzZ193ZW56ZVwifSIsImlzcyI6IlVBUF9BVVRIMCIsImV4cCI6MTYyNDg3MTg4MywiaWF0IjoxNjI0ODcwMDgzLCJqdGkiOiJiYzlhMWY5Ny01NTQ4LTRmYjYtYmFhOC0wMTg3MjY4ZDZhNmQifQ.LOP34eN5aLEdBlyHhoU_8AqBi4wuFdncXdM620sD9_8p3lLnXBrsLwq3WTe5b9PNMpWyy7mOeWDTdF7WWAkmaMooIc7zthEk9__FEWRmOTeBMMTlHLK_vZ8dpPXN80K7NMxbbYON_MS2L1Snb90PQ1RMl0dxqiecXqOHhL3ll0A; Max-Age=86400; Expires=Tue, 29-Jun-2021 08:48:03 GMT; Domain=diligrp.com; Path=/; HttpOnly, UAP_refreshToken=7b4a27a2-c037-43db-a3ab-ad2d8b1f5313; Max-Age=86400; Expires=Tue, 29-Jun-2021 08:48:03 GMT; Domain=diligrp.com; Path=/; HttpOnly, UAP_loginPath=http%3A%2F%2Ftest.uap.diligrp.com%2Flogin%2Findex.html; Max-Age=86400; Expires=Tue, 29-Jun-2021 08:48:03 GMT; Domain=diligrp.com; Path=/; HttpOnly', 'Location': '/index/index.html', 'Content-Language': 'zh-CN', 'Content-Length': '0', 'Date': 'Mon, 28 Jun 2021 08:48:03 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'} 830 +pt1.4.1: {'Access-Control-Expose-Headers': 'UAP_accessToken', 'Cache-Control': 'no-store', 'Set-Cookie': 'UAP_accessToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJXRUIiLCJuYmYiOjE2MjUxOTI2MjIsImRhdGEiOiJ7XCJjZWxscGhvbmVcIjpcIjE2MTExMTExMTExXCIsXCJjcmVhdGVkXCI6MTYwNDkwNzk2NzAwMCxcImRlcGFydG1lbnRJZFwiOjkwLFwiZGVzY3JpcHRpb25cIjpcIjY2NlwiLFwiZW1haWxcIjpcIjY2NkBkaWxpZ3JwLmNvbVwiLFwiZmlybUNvZGVcIjpcInNnXCIsXCJmaXJtSWRcIjo4LFwiZmlybU5hbWVcIjpcIuWvv-WFieWcsOWIqeWGnOWJr-S6p-WTgeaciemZkOWFrOWPuFwiLFwiZ2VuZGVyXCI6MCxcImlkXCI6MjEwLFwibGFzdExvZ2luVGltZVwiOjE2MjUxOTI2MjE5ODksXCJsb2NrZWRcIjoxNjIzODMyMzQwMDAwLFwibWV0YWRhdGFcIjp7fSxcIm1vZGlmaWVkXCI6MTYyMzgzMjQ3NTAwMCxcInBhc3N3b3JkXCI6XCIxODk2NUVCNzJDOTJBNTQ5RERcIixcInJlYWxOYW1lXCI6XCLlr7_lhYnmuq_mupDlk59cIixcInNlcmlhbE51bWJlclwiOlwiMDAwXCIsXCJzdGF0ZVwiOjEsXCJzeXN0ZW1UeXBlXCI6MSxcInVzZXJOYW1lXCI6XCJzZ193ZW56ZVwifSIsImlzcyI6IlVBUF9BVVRIMCIsImV4cCI6MTYyNTE5NDQyMiwiaWF0IjoxNjI1MTkyNjIyLCJqdGkiOiI1MzY1OWEyNy1jNDI2LTQzOWItOTEwYS1hNzI5OTgzYWVlNzcifQ.LfzlVSjiqza9TMWXiCxcvX-PHUxQr5LRwTbU_9Rb84qRIl6PqBKDb8T4vhhov1QoVhbKN-KDxzklCRT9fBrPAfeU6GcsHO9TOaDvm72BDlYTEuoamhv8SjWHFLQs8D38RLuytP3BFUGhnmTiJtZnkCipmO6OCCrwfxHzpGlQ0Vg; Max-Age=86400; Expires=Sat, 03-Jul-2021 02:23:42 GMT; Domain=diligrp.com; Path=/; HttpOnly, UAP_refreshToken=4b1eff58-60e6-41d3-a4f8-d3d4dcecbf40; Max-Age=86400; Expires=Sat, 03-Jul-2021 02:23:42 GMT; Domain=diligrp.com; Path=/; HttpOnly, UAP_loginPath=http%3A%2F%2Ftest.uap.diligrp.com%2Flogin%2Findex.html; Max-Age=86400; Expires=Sat, 03-Jul-2021 02:23:42 GMT; Domain=diligrp.com; Path=/; HttpOnly', 'Location': '/index/index.html', 'Content-Language': 'zh-CN', 'Content-Length': '0', 'Date': 'Fri, 02 Jul 2021 02:23:42 GMT', 'Keep-Alive': 'timeout=60', 'Connection': 'keep-alive'}
929 831
930 832
931 </pre> 833 </pre>
@@ -1176,7 +1078,7 @@ pt1.5.1: {&#39;code&#39;: &#39;200&#39;, &#39;message&#39;: &#39;OK&#39;, &#39;result&#39;: &#39;OK&#39;, &#39;success&#39;: True} @@ -1176,7 +1078,7 @@ pt1.5.1: {&#39;code&#39;: &#39;200&#39;, &#39;message&#39;: &#39;OK&#39;, &#39;result&#39;: &#39;OK&#39;, &#39;success&#39;: True}
1176 </div> 1078 </div>
1177 <pre> 1079 <pre>
1178 1080
1179 -pt1.6.1: {'total': 220, 'rows': [{'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-28 14:55:44', 'businessLicenseUrl': '7e449880e6014e8698bf52fd58122023', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '1123456', 'legalPerson': '发', 'telphone': '18722222222', 'name': '天', 'modified': '2021-06-28 14:55:44', 'userNames': '雪额外大', 'id': 360, 'sourceUserId': 616, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-24 15:08:51', 'idCard': '513000119930208155', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475463', 'cardNoFrontUrl': '', 'name': '爱情', 'modified': '2021-06-24 15:08:51', 'userNames': '大梦想家', 'id': 359, 'sourceUserId': 131321, 'upstreamType': '个人'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-23 16:34:50', 'businessLicenseUrl': 'c5806086695045808e6cbdacfc9dceff', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '123456', 'legalPerson': '22', 'telphone': '15623333333', 'name': '22', 'modified': '2021-06-23 16:34:50', 'userNames': '杨茂茂', 'id': 358, 'sourceUserId': 130495, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-17 17:32:11', 'idCard': '513001199802081052', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475463', 'cardNoFrontUrl': '', 'name': '15643', 'modified': '2021-06-17 17:32:11', 'userNames': '雪碧', 'id': 357, 'sourceUserId': 131272, 'upstreamType': '个人'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-11 14:56:28', 'idCard': '513001199802081528', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475125', 'cardNoFrontUrl': '', 'name': '杨茂茂', 'modified': '2021-06-11 14:56:28', 'userNames': '雪碧', 'id': 356, 'sourceUserId': 131272, 'upstreamType': '个人'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:07:43', 'idCard': '110101198001011339', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '13111111111', 'cardNoFrontUrl': '', 'name': '001', 'modified': '2021-06-01 15:07:43', 'userNames': '六一测试', 'id': 353, 'sourceUserId': 131214, 'upstreamType': '个人'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:07:10', 'businessLicenseUrl': '', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '333', 'legalPerson': '111', 'telphone': '222', 'name': '001', 'modified': '2021-06-01 15:07:10', 'userNames': '六一测试', 'id': 352, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:06:40', 'businessLicenseUrl': '', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '', 'legalPerson': '', 'telphone': '', 'name': '下游', 'modified': '2021-06-01 15:06:40', 'userNames': '六一测试', 'id': 351, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-01 15:06:09', 'businessLicenseUrl': '04b99e521f0947039e5a6497184ac941', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '111', 'legalPerson': '111', 'telphone': '13111111111', 'name': '企业002', 'modified': '2021-06-01 15:06:09', 'userNames': '六一测试', 'id': 350, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-01 15:04:45', 'idCard': '', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '13111111111', 'cardNoFrontUrl': '', 'name': '个人上游2', 'modified': '2021-06-01 15:04:45', 'userNames': '六一测试', 'id': 349, 'sourceUserId': 131214, 'upstreamType': '个人'}]} 1081 +pt1.6.1: {'total': 221, 'rows': [{'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-28 17:11:15', 'idCard': '513001199302081011', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475423', 'cardNoFrontUrl': '178e3a7d988b480d9ab573716e5a63ce', 'name': '测', 'modified': '2021-06-28 17:11:15', 'userNames': '大梦想家', 'id': 361, 'sourceUserId': 131321, 'upstreamType': '个人'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-28 14:55:44', 'businessLicenseUrl': '7e449880e6014e8698bf52fd58122023', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '1123456', 'legalPerson': '发', 'telphone': '18722222222', 'name': '天', 'modified': '2021-06-28 14:55:44', 'userNames': '雪额外大', 'id': 360, 'sourceUserId': 616, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-24 15:08:51', 'idCard': '513000119930208155', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475463', 'cardNoFrontUrl': '', 'name': '爱情', 'modified': '2021-06-24 15:08:51', 'userNames': '大梦想家', 'id': 359, 'sourceUserId': 131321, 'upstreamType': '个人'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-23 16:34:50', 'businessLicenseUrl': 'c5806086695045808e6cbdacfc9dceff', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '123456', 'legalPerson': '22', 'telphone': '15623333333', 'name': '22', 'modified': '2021-06-23 16:34:50', 'userNames': '杨茂茂', 'id': 358, 'sourceUserId': 130495, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-17 17:32:11', 'idCard': '513001199802081052', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475463', 'cardNoFrontUrl': '', 'name': '15643', 'modified': '2021-06-17 17:32:11', 'userNames': '雪碧', 'id': 357, 'sourceUserId': 131272, 'upstreamType': '个人'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-11 14:56:28', 'idCard': '513001199802081528', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '18380475125', 'cardNoFrontUrl': '', 'name': '杨茂茂', 'modified': '2021-06-11 14:56:28', 'userNames': '雪碧', 'id': 356, 'sourceUserId': 131272, 'upstreamType': '个人'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:07:43', 'idCard': '110101198001011339', '$_upstreamType': 10, 'marketId': 8, 'cardNoBackUrl': '', 'telphone': '13111111111', 'cardNoFrontUrl': '', 'name': '001', 'modified': '2021-06-01 15:07:43', 'userNames': '六一测试', 'id': 353, 'sourceUserId': 131214, 'upstreamType': '个人'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:07:10', 'businessLicenseUrl': '', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '333', 'legalPerson': '111', 'telphone': '222', 'name': '001', 'modified': '2021-06-01 15:07:10', 'userNames': '六一测试', 'id': 352, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '下游', '$_upORdown': 20, 'created': '2021-06-01 15:06:40', 'businessLicenseUrl': '', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '', 'legalPerson': '', 'telphone': '', 'name': '下游', 'modified': '2021-06-01 15:06:40', 'userNames': '六一测试', 'id': 351, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}, {'upORdown': '上游', '$_upORdown': 10, 'created': '2021-06-01 15:06:09', 'businessLicenseUrl': '04b99e521f0947039e5a6497184ac941', '$_upstreamType': 20, 'marketId': 8, 'operationLicenseUrl': '', 'license': '111', 'legalPerson': '111', 'telphone': '13111111111', 'name': '企业002', 'modified': '2021-06-01 15:06:09', 'userNames': '六一测试', 'id': 350, 'sourceUserId': 131214, 'manufacturingLicenseUrl': '', 'upstreamType': '企业'}]}
1180 1082
1181 1083
1182 </pre> 1084 </pre>
@@ -1217,16 +1119,16 @@ pt1.6.2: {&#39;total&#39;: 5, &#39;rows&#39;: [{&#39;upORdown&#39;: &#39;上游&#39;, &#39;$_upORdown&#39;: 10, &#39;created @@ -1217,16 +1119,16 @@ pt1.6.2: {&#39;total&#39;: 5, &#39;rows&#39;: [{&#39;upORdown&#39;: &#39;上游&#39;, &#39;$_upORdown&#39;: 10, &#39;created
1217 <tr id='total_row'> 1119 <tr id='total_row'>
1218 <th>统计</th> 1120 <th>统计</th>
1219 <th>16</th> 1121 <th>16</th>
1220 - <th>13</th> 1122 + <th>15</th>
1221 <th>1</th> 1123 <th>1</th>
1222 - <th>2</th> 1124 + <th>0</th>
1223 <th>&nbsp;</th> 1125 <th>&nbsp;</th>
1224 <th>&nbsp;</th> 1126 <th>&nbsp;</th>
1225 </tr> 1127 </tr>
1226 </table> 1128 </table>
1227 <script> 1129 <script>
1228 showCase(0,1); 1130 showCase(0,1);
1229 - drawCircle('circle1',13, 1, 2); 1131 + drawCircle('circle1',15, 1, 0);
1230 </script> 1132 </script>
1231 1133
1232 <div id='ending'>&nbsp;</div> 1134 <div id='ending'>&nbsp;</div>
src/report/test.log
1 -[2021-06-30 11:04:51] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action 1 +[2021-07-05 16:30:09] [INFO] : http://test.trace.diligrp.com:8393/upStream/listPage.action
2 None 2 None
3 {'rows': 10, 'page': 1, 'sort': 'id', 'order': 'desc', 'metadata': {'created': '{"provider":"datetimeProvider","index":10,"field":"created"}', 'upORdown': '{"provider":"userFlagProvider","index":20,"field":"upORdown"}', 'upstreamType': '{"provider":"upStreamTypeProvider","index":30,"field":"upstreamType"}'}} 3 {'rows': 10, 'page': 1, 'sort': 'id', 'order': 'desc', 'metadata': {'created': '{"provider":"datetimeProvider","index":10,"field":"created"}', 'upORdown': '{"provider":"userFlagProvider","index":20,"field":"upORdown"}', 'upstreamType': '{"provider":"upStreamTypeProvider","index":30,"field":"upstreamType"}'}}
4 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/upStream/index.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}} 4 {'headers': {'Host': 'test.trace.diligrp.com', 'Connection': 'keep-alive', 'Content-Length': '325', 'Accept': 'application/json,text/javascript,*/*;q=0.01', 'X-Requested-With': 'XMLHttpRequest', 'User-Agent': 'Mozilla/5.0(WindowsNT10.0;Win64;x64)AppleWebKit/537.36(KHTML,likeGecko)Chrome/90.0.4430.212Safari/537.36', 'Content-Type': 'application/json', 'Origin': 'http://test.trace.diligrp.com:8393', 'Referer': 'http://test.trace.diligrp.com:8393/upStream/index.html', 'Accept-Encoding': 'gzip,deflate', 'Accept-Language': 'zh-CN,zh-TW;q=0.9,zh;q=0.8,en;q=0.7'}}
src/testcase/upStream/__pycache__/test_upStream.cpython-36.pyc
No preview for this file type