| 1 | ##parameters=testAttribute=0 |
|---|
| 2 | """ |
|---|
| 3 | testing QueryReadStore in connection with new Dojo 1.0 Grid |
|---|
| 4 | """ |
|---|
| 5 | |
|---|
| 6 | from demjson import encode |
|---|
| 7 | |
|---|
| 8 | def getResult(attribute): |
|---|
| 9 | if attribute == "1": |
|---|
| 10 | return {"identifier":"testCell_1","items":[{"testCell_1":"111","testCell_2":"111"},{"testCell_1":"112","testCell_2":"112"}]} |
|---|
| 11 | if attribute == "2": |
|---|
| 12 | return {"identifier":"testCell_1","items":[{"testCell_1":"222","testCell_2":"222"},{"testCell_1":"223","testCell_2":"223"}]} |
|---|
| 13 | else: |
|---|
| 14 | return {"identifier":"testCell_1","items":[{"testCell_1":"elseValue_1","testCell_2":"elseValue_2"},{"testCell_1":"elseValue_1a","testCell_2":"elseValue_2a"}]} |
|---|
| 15 | |
|---|
| 16 | result = getResult(testAttribute) |
|---|
| 17 | return encode(result) |
|---|