Ticket #5753: QRStoreTestScript.xpy

File QRStoreTestScript.xpy, 0.7 kB (added by guest, 11 months ago)

Test Script

Line 
1##parameters=testAttribute=0
2"""
3testing QueryReadStore in connection with new Dojo 1.0 Grid
4"""
5
6from demjson import encode
7
8def 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
16result = getResult(testAttribute)
17return encode(result)