Commit 54fe653d authored by xiao-hesheng's avatar xiao-hesheng
Browse files

脚本优化

parent d50ddf30
...@@ -55,14 +55,18 @@ def test1(): ...@@ -55,14 +55,18 @@ def test1():
code=commonFuc().analysis_json('code',result) code=commonFuc().analysis_json('code',result)
data=commonFuc().analysis_json('data',result) data=commonFuc().analysis_json('data',result)
data1=commonFuc().analysis_json('data',data) data1=commonFuc().analysis_json('data',data)
prefix=commonFuc().analysis_json('prefix',data1[1]) total=commonFuc().analysis_json('total',data)
print('bbbbbbbbbbbbbbbbbbbbbbbbbb',code,len(data),prefix) prefix=commonFuc().analysis_json('prefix',data1[0])
if code==0 and len(data)>=1 and prefix=="YS2": # print('bbbbbbbbbbbbbbbbbbbbbbbbbb',code,len(data),prefix)
id1=commonFuc().analysis_json('id',data1[1]) if code==0 and len(data)>=1 and total>=1:
code1=commonFuc().analysis_json('code',data1[1]) for i in range(total):
commonFuc().check_text_exist(0, result) prefix = commonFuc().analysis_json('prefix', data1[i])
print(id1,code1) if prefix=="YS2":
return id1,code1 id1=commonFuc().analysis_json('id',data1[i])
code1=commonFuc().analysis_json('code',data1[i])
commonFuc().check_text_exist(0, result)
print(id1,code1)
return id1,code1
else: else:
commonFuc().check_text_exist('error', result) commonFuc().check_text_exist('error', result)
test1() test1()
...@@ -56,7 +56,7 @@ ...@@ -56,7 +56,7 @@
<tr width="600"> <tr width="600">
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>1</td> <td class='details-col-elapsed'>1</td>
<td class='details-col-elapsed'>0分5</td> <td class='details-col-elapsed'>0分1</td>
<td class="details-col-elapsed">100.0%</td> <td class="details-col-elapsed">100.0%</td>
</tr> </tr>
</table> </table>
...@@ -72,9 +72,9 @@ ...@@ -72,9 +72,9 @@
</tr> </tr>
<tr width="600"> <tr width="600">
<td class="details-col-elapsed"><a href='../log/r_b7科室管理_科室人员查询_按科室查询人员_分页查询/log.html' target='_blank'>r_b7科室管理_科室人员查询_按科室查询人员_分页查询</a></td> <td class="details-col-elapsed"><a href='../log/l8运维管理_编码规则管理_规则编码_查询id/log.html' target='_blank'>l8运维管理_编码规则管理_规则编码_查询id</a></td>
<td class="success">成功</td> <td class="success">成功</td>
<td class="details-col-elapsed">5.421</td> <td class="details-col-elapsed">1.673</td>
<td class="details-col-elapsed">xiaohesheng</td> <td class="details-col-elapsed">xiaohesheng</td>
</tr> </tr>
......
Supports Markdown
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