Extracting request to writable data source

ParasofttoudayaParasofttoudaya Posts: 201 ✭✭

Hi Team,
This query is specific to my project. I can able to complete thru groovy script, looking for tool features.

There is situation where i have to extract the permutation and combination from the request data. In the example i have customer as array and product as array, that need to be fetched as permutation and combination like customer1 with all Products, customer 2 with all products.

{
"query" : {
"Purchase" : [
{
"customer" : [
"customer1",
"customer2"
]
},
{
"Products" : [
"Product1",
"Product2",
"Product3"
]
}
]
}
}

Expected
row1-customer1 - Product1
row2-customer1 - Product2
row3-customer1 - Product3
row4-customer2 - Product1
row5-customer2 - Product2
row6-customer2 - Product3

Sign In or Register to comment.