tools/bin/apitest
2021-11-16 17:39:13 +08:00

14 lines
310 B
Python
Executable File

#!/usr/bin/python
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)) + '/../scripts/postman')
import apitest
workDir = os.getcwd()
test = apitest.ApiTest(workDir)
test.convert()
if len(sys.argv) > 1 and sys.argv[1] == 'run':
os.system('newman run ' + test.getOutFileName())