|
@@ -0,0 +1,27 @@
|
|
|
+# -*- coding: utf-8 -*-
|
|
|
+from hytest import *
|
|
|
+from lib.linkapi import apilink
|
|
|
+import csv
|
|
|
+class c1:
|
|
|
+ #测试步骤
|
|
|
+ tags=['各个地区站能否正常打开']
|
|
|
+ file_path = './doc/area_sites.csv'
|
|
|
+ ddt_cases = []
|
|
|
+ with open(file_path,'r',encoding='utf-8') as f:
|
|
|
+ reads=csv.reader(f)
|
|
|
+ for d in reads:
|
|
|
+ ddt_cases.append(
|
|
|
+ {
|
|
|
+ 'name': d[0],
|
|
|
+ 'para': d[1]
|
|
|
+ }
|
|
|
+ )
|
|
|
+ def teststeps(self):
|
|
|
+ name=self.name
|
|
|
+ para=self.para
|
|
|
+ url=f'https://{para}.jianyu360.cn/'
|
|
|
+ title = apilink.obtain_url_title(url)
|
|
|
+ result = title.split("_")[0]
|
|
|
+
|
|
|
+ # 设置检查点
|
|
|
+ CHECK_POINT(f'{name}正常打开', result==name)
|