test: 增加刷新按钮与定时轮询机制云端部署端到端验收脚本
This commit is contained in:
1 parent
05dbebbff1
commit
b0a433c534
9 files changed
+268
No files matched your search
@@ -0,0 +1,14 @@
|
||||
import urllib.request, ssl, json
|
||||
ctx = ssl.create_default_context()
|
||||
ctx.check_hostname = False
|
||||
ctx.verify_mode = ssl.CERT_NONE
|
||||
opener = urllib.request.build_opener(urllib.request.HTTPSHandler(context=ctx))
|
||||
r = opener.open("https://47.108.78.12/manifest.json", timeout=5)
|
||||
manifest = json.loads(r.read().decode("utf-8"))
|
||||
for k, v in manifest.items():
|
||||
if "List" in k:
|
||||
print(k, "->", v.get("file"))
|
||||
js_url = f"https://47.108.78.12/{v.get('file')}"
|
||||
c = opener.open(js_url, timeout=5).read().decode("utf-8")
|
||||
print("List asset contains manualRefresh:", "manualRefresh" in c)
|
||||
print("List asset contains 60000:", "60000" in c)
|
||||
Reference in new issue
Block a user