This commit is contained in:
liris
2015-10-27 16:18:07 +09:00

View File

@@ -19,7 +19,7 @@ ws.close()
for case in range(1, count+1): for case in range(1, count+1):
url = SERVER + '/runCase?case={}&agent={}'.format(case, AGENT) url = SERVER + '/runCase?case={0}&agent={1}'.format(case, AGENT)
status = websocket.STATUS_NORMAL status = websocket.STATUS_NORMAL
try: try:
ws = websocket.create_connection(url) ws = websocket.create_connection(url)
@@ -43,5 +43,5 @@ for case in range(1, count+1):
ws.close(status) ws.close(status)
print("Ran {} test cases.".format(case)) print("Ran {} test cases.".format(case))
url = SERVER + '/updateReports?agent={}'.format(AGENT) url = SERVER + '/updateReports?agent={0}'.format(AGENT)
ws = websocket.create_connection(url) ws = websocket.create_connection(url)