Hi @all, Hope you are going great.
I have a query and need a solution for: I have created some peace if blocks and using this block I have generated Structure based on JSON code.
for example.
Here is JSON code:
{
"StatsResult": [
{
"GraphAttrib": [
{
"Collection": "SystemStatResult",
"Filter": {
"NodeName": "dsc_01"
},
"xAxis": "Timestamp",
"xAxisLabel": "Timestamp",
"yAxis": "CPU(%)",
"yAxisLabel": "%",
"yAxisPosition": "left"
}
],
"GraphType": "Line",
"Name": "CPU-JVM-STATS DSC01"
},
{
"GraphAttrib": [
{
"Collection": "DIAMessageStatResult",
"Filter": {
"NodeName": "dsc_01"
},
"xAxis": "Timestamp",
"xAxisLabel": "Timestamp",
"yAxis": "SENT_TPS",
"yAxisLabel": "TPS",
"yAxisPosition": "left"
}
],
"GraphType": "Line",
"Name": "TPS DSC01"
}
],
"TestRunDuration": 10
}
Here I have created an algorithm to generate blocks as per the JSON input file.
Here is the result.

Now, here this JSON block will get attached with its parent's block and there I need to do some configuration to get value from its block.
Now here I have joined JSON block with other block.

Here I have collapsed the block and attached with testcase_config block.
So here what I want convenes is.... inside init method... you can see two blocks called me_diaperf_obj.TestRunDuration and mme_diaperf_obj.StatsResult
so here if i give TestRunDuration then i should get its value as 10.
if i give StatsResult then i should get its value. how can i achieve my needs?
is it possible to create a variable for each key and store it values ? or something different... Im not able to get more ideas.... Please help me out... Any response will be highly appreciated.
Thank you.