This commit is contained in:
aozhiwei 2019-01-07 19:37:08 +08:00
parent a435a20d61
commit b60226d300
2 changed files with 6 additions and 11 deletions

View File

@ -1,7 +1,12 @@
import sys
import random
sys.path.append('../../')
import httprunner
#注册账户
class case101:
class Case101:
def __init__(self):
self.c = 'login'
@ -13,4 +18,3 @@ class case101:
'sms_auth_code' : '',
}

View File

@ -6,12 +6,3 @@ 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)