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

posted @ 2018-08-30 15:56  OnePiece!  阅读(683)  评论(0编辑  收藏  举报