In Qmetry, I have placed api request data in requests.wsc file. For example in the below api request- want to update 'baseUrl' key value from 'https://google.com' to 'https://stackoverflow.com' through qmetry method/ or programmatically.
api request content in requests.wsc file:
get.sample.call={'headers':{'Accept':'application/xml'},'baseUrl':'https://google.com','method':'GET','query-parameters':{},'form-parameters':{},'body':''}
Can any one help me on achieving this within qmetry or any other way? Thanks!
Refer documentation of Request Call Repository. You should use parameters and parameter-resolution done at the time of execution. For example:
get.sample.call={'headers':{'Accept':'application/xml'},'baseUrl':'${env.baseurl}','method':'GET','query-parameters':{},'form-parameters':{},'body':''}