This commit is contained in:
aozhiwei 2022-04-26 10:06:01 +08:00
parent eaafca84db
commit a831f59035
4 changed files with 9 additions and 46 deletions

View File

@ -1,20 +0,0 @@
import sys
import random
sys.path.append('../../')
import httprunner
#注册账户
class Case101:
def __init__(self):
self.c = 'login'
self.params = {
'account' : '',
'passwd' : '',
'nickname' : '',
'phone' : '',
'sms_auth_code' : '',
}

View File

@ -1,8 +0,0 @@
# -*- coding: utf-8 -*-
import os
import sys
import json
import time
import urllib.parse
import urllib.request
from optparse import OptionParser

View File

@ -1,17 +0,0 @@
# -*- coding: utf-8 -*-
import os
import sys
import json
import time
import urllib.parse
import urllib.request
from optparse import OptionParser
def do_test():
req = urllib.request.Request('http://127.0.0.1:9002/webapp/index.php?c=Ops&a=selfChecking1')
data = urllib.request.urlopen(req).readall()
print(data)
while True:
do_test()
time.sleep(.1)

View File

@ -137,6 +137,14 @@ projects = [
'res': 'prod/game2006/game2006api_z$id_test', 'res': 'prod/game2006/game2006api_z$id_test',
'targetRes': 'prod/game2006/game2006api_z$id_test', 'targetRes': 'prod/game2006/game2006api_z$id_test',
}, },
{
'name': 'statserver',
'git': 'statserver_z$id_test',
'conf': 'prod/global/statserver_z$id_test',
'targetConf': 'prod/global/statserver_z$id_test',
'res': '',
'targetRes': '',
},
] ]
def pubOne(srcId, targetId): def pubOne(srcId, targetId):
@ -163,7 +171,7 @@ def pubOne(srcId, targetId):
targetRes = proj['targetRes'].replace('$id', targetId) targetRes = proj['targetRes'].replace('$id', targetId)
cmd = 'cp -r ' + resDir + srcRes + ' ' + resDir + targetRes cmd = 'cp -r ' + resDir + srcRes + ' ' + resDir + targetRes
print(cmd) print(cmd)
#os.system(cmd) #os.system(cmd)
def pub(): def pub():
srcId = sys.argv[1] srcId = sys.argv[1]