Ready api groovy script 参数化

 

def token_type =context.expand ('${#Project#token_type}')
def access_token = context.expand('${#Project#access_token}')
def Authorization=token_type+" "+access_token
//testRunner.testCase.setPropertyValue( token_type+" "+access_token, context.expand('${#Project#Authorization}') )
//def timestamp = String.valueOf(System.currentTimeMillis());

return Authorization

断言

 

请求参数乱码问题

设置请求编码,在页面左下角有个request propertise ,设置encoding为UTF-8

datasource参数化 

留存学习:https://blog.csdn.net/wanglha/article/details/45368065

 http://blog.51cto.com/10672221/1898468

原文地址:https://www.cnblogs.com/gqhwk/p/9560682.html