patrice.mccarthy Posted February 26, 2013 Share Posted February 26, 2013 I have the following JSON file:{ "version":"1.1", "testSuiteName":"Patrice Test Suite", "tests": [ { "name":"JAD59 - Rename user object in IDV", "description":"rename test", "actions": [ { "section":"setup", "connection":"AD - EDS", "action":"Rename or Move Object", "description":"Rename user object in IDV", "result":"Pass", "timestamp":"09.26.2012 3:33pm" } ], "startTime":"09.26.2012 3:33pm", "endTime":"09.26.2012 3:34pm", "result":"Pass", "notes":"" }, { "name":"JAD60 - Move user object in IDV", "description":"move test", "actions": [ { "section":"setup", "connection":"AD - EDS", "action":"Rename or Move Object", "description":"Move user object in IDV", "result":"Fail", "timestamp":"09.26.2012 3:34pm" } ], "startTime":"09.26.2012 3:34pm", "endTime":"09.26.2012 3:35pm", "result":"Fail", "notes":"User object failed to move (or whaever error was throun by the test case)" }, { "name":"JAD61 - Rename user object in IDV", "description":"rename test", "actions": [ { "section":"cleanup", "connection":"AD - EDS","Action": "rename or Move Object", "description":"Rename user object in IDV", "result":"Fail", "timestamp":"09.26.2012 3:38pm" } ], "startTime":"09.26.2012 3:36pm", "endTime":"09.26.2012 3:37pm", "result":"Pass", "notes":"Manually validated the object was renamed successfully before the object was removed. (note entered mannually by tester)." } ], "reportDate":"2012-12-01", "executer":"Patrice McCarthy", "trackingInfo":"bugzilla #1234", "description":"this is a test" } I have trying to pass the tests list to a subreport without any success. Does anybody know how to do this? Patrice Link to comment Share on other sites More sharing options...
johan_wasserman Posted June 17, 2013 Share Posted June 17, 2013 No comments to this? Link to comment Share on other sites More sharing options...
jcdang Posted March 14, 2014 Share Posted March 14, 2014 Use this as the data source expression: ((net.sf.jasperreports.engine.data.JsonDataSource)$P{REPORT_DATA_SOURCE}).subDataSource("tests") Link to comment Share on other sites More sharing options...
mike2tango Posted June 6, 2014 Share Posted June 6, 2014 Hi Did you get around this problem? or Did the solution described work for you?Please share how, tnx Mike Link to comment Share on other sites More sharing options...
vid.ogris Posted October 22, 2014 Share Posted October 22, 2014 i get an error unable to resolve class net.sf.jasperreports.engine.data.JsonDataSource Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now