1
This commit is contained in:
parent
eaafca84db
commit
a831f59035
@ -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' : '',
|
|
||||||
}
|
|
||||||
|
|
@ -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
|
|
@ -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)
|
|
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user