manage-client 3.2.293 → 3.2.295
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AutoTest/BasePage.py +42 -0
- package/AutoTest/Config.json +2 -0
- package/AutoTest/PublicScript.py +447 -0
- package/AutoTest/README.md +12 -0
- package/AutoTest/__init__.py +0 -0
- package/AutoTest/all_case/__init__.py +0 -0
- package/AutoTest/all_case/search/__init__.py +0 -0
- package/AutoTest/all_case/search/as_ArchivesQueryScript2.py +155 -0
- package/AutoTest/all_case/search/as_AuditQueryScript2.py +113 -0
- package/AutoTest/all_case/search/as_Chargequery2.py +96 -0
- package/AutoTest/all_case/search/as_FinancialQueryScript2.py +142 -0
- package/AutoTest/all_case/search/as_Security_check3.py +99 -0
- package/AutoTest/all_case/search/as_ServiceQueryScript2.py +547 -0
- package/AutoTest/all_case/search/as_SummaryQueryScript2.py +77 -0
- package/AutoTest/all_case/search/as_Wechatmanage2.py +121 -0
- package/AutoTest/all_case/search/as_Writemetersearch2.py +114 -0
- package/AutoTest/report//346/237/245/350/257/242/351/203/250/345/210/206/346/265/213/350/257/225/346/212/245/345/221/212.html +7322 -0
- package/AutoTest/requirements.txt +9 -0
- package/AutoTest/search_test_run.py +24 -0
- package/package.json +1 -1
- package/src/filiale/ancheng/businessquery/FMYGasQuery.vue +785 -0
- package/src/filiale/ancheng/exportConfig.js +1111 -0
- package/src/filiale/ancheng/sale.js +4 -0
- package/src/filiale/shanxian/AreaGeneralQuery.vue +30 -0
- package/src/filiale/shanxian/EchartsBox.vue +131 -0
- package/src/filiale/shanxian/RecordInfoQuery.vue +1 -1
- package/src/filiale/shanxian/reportManage.js +1 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import os
|
|
2
|
+
import unittest
|
|
3
|
+
import time
|
|
4
|
+
from BeautifulReport import BeautifulReport
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
# 方法:执行用例的方法,并且把用例的执行结果写入到测试报告文件中(html文件中)
|
|
8
|
+
def zhixing_yongli():
|
|
9
|
+
# 1. 准备测试套件: 把用例放入到测试套件中。 discover套件
|
|
10
|
+
dangqian_lujing = os.path.dirname(__file__)
|
|
11
|
+
case_path = os.path.join(dangqian_lujing, "." , "all_case/search")
|
|
12
|
+
taojian = unittest.defaultTestLoader.discover(case_path, pattern='as_SummaryQueryScript2.py')
|
|
13
|
+
# 2. 准备测试报告。(准备测试报告的路径 + 测试报告的文件名 xxxxx.html 系统时间+项目名.html)r
|
|
14
|
+
baogao_lujing = os.path.join(dangqian_lujing, ".", "report")
|
|
15
|
+
sys_time = time.strftime("%Y%m%d%H%M%S")
|
|
16
|
+
baogao_wenjianming = sys_time + "ranqikefu.html"
|
|
17
|
+
|
|
18
|
+
# 3. 执行测试套件中的用例,并且把执行结果写入到测试报告文件。(采用开源的beautifulreport来执行用例生成报告)
|
|
19
|
+
jieguo = BeautifulReport(taojian)
|
|
20
|
+
jieguo.report(description="燃气客服的自动化测试", filename="查询部分测试报告", report_dir=baogao_lujing)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
if __name__ == '__main__':
|
|
24
|
+
zhixing_yongli()
|