Reply
Member
wrephuciwr
Posts: 1
Registered: 01-13-2012
0

merging two different response in single query

Hi,

 

I gw is sending  two kind of response depending upon value of  PppoeCircuit id:-

 

if some value is set then:-

 

 <tgw>
<map>
  <entry>
    <string>extendRemoteIdControlPppoe</string>
    <string>addPhysicalLineId</string>
  </entry>
</map>
</tgw>

 

if no value is set then:-

 

<tgw>
<map>
  <entry>
    <string>extendRemoteIdControlPppoe</string>
    <null/>
  </entry>
</map>
</tgw>

 

I want to merge below two different query into single query so I can analyze the value is set or unset during run time:-

 

//tgw/map/entry[string = "extendRemoteIdControlPppoe"]/string[2]

//tgw/map/entry[string = "extendRemoteIdControlPppoe"]/null

Fanfare
rbaswareddy
Posts: 88
Registered: 12-11-2009
0

Re: merging two different response in single query

Hi,

 

We can't merge two queries, but we can use a single response map for the two responses.

I have created a testcase using response map. In response map i have taken both the responses into two samples and created Queries.

Please find the attached files.

 

Hope it helps....