AnsweredAssumed Answered

Extract data and value from REST

Question asked by DigiSV on Apr 6, 2017
Latest reply on Apr 10, 2017 by DigiSV

Hi Team,

I have below request coming in lisa.vse.request and the requirement is to extract Argument e.g.URLPARAM0, metaData properties e.g. Postman-Token unique to a transaction (assuming this doesn't change) and if it matches certain value send it to virtual invocation else continue with live. This is little urgent appreciate if you can look into this and help me.

 

Possible solution I could think is to write assertion script in listener step to capture the incoming data and set execution method to Live.

 

lisa.vse.request ] {id=0, operation="GET /v1/A1/{URLPARAM0}/{URLPARAM1}/abcd/", arguments=URLPARAM0=12345678901234&URLPARAM1=4, attributes=, metaData=HTTP-Method=GET&HTTP-URI=/v1/A1/12345678901234/4/abcd&HTTP-Version=1.1&Host=localhost:31156&Connection=keep-alive&Cache-Control=no-cache&User-Agent=Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36&Postman-Token=3d793263-8b53-c2d4-157a-b978252eaefa&Accept=*/*&Accept-Encoding=gzip, deflate, sdch, br&Accept-Language=en-US,en;q=0.8&lisa.vse.request.client.id=0:0:0:0:0:0:0:1:53811, matchTolerance=Exact, binary=false, body=(non-binary)<null>]

Outcomes