remove log, formatting

This commit is contained in:
Loredana 2020-10-09 15:50:27 +03:00
parent 68f35280c3
commit f3aee7ea03
1 changed files with 1 additions and 3 deletions

View File

@ -21,19 +21,17 @@ request1.setHeaders(headers)
utilities = HTTPPluginControl.getHTTPUtilities()
test1.record(request1)
random=java.util.Random()
log = grinder.logger.info
class TestRunner:
def __call__(self):
customerId = str(random.nextInt());
customerId = str(random.nextInt());
result = request1.POST("http://localhost:8080/transactions/add", "{"'"customerRewardsId"'":null,"'"customerId"'":"+ customerId + ","'"transactionDate"'":null}")
txnId = parseJsonString(result.getText(), "id")
result = request1.GET("http://localhost:8080/rewards/find/"+ customerId)
rwdId = parseJsonString(result.getText(), "id")
log("rwdid %s" % rwdId)
if rwdId == "":
result = request1.POST("http://localhost:8080/rewards/add", "{"'"customerId"'":"+ customerId + "}")