A common misunderstanding is the difference between syntax and semantics of a 
JSON (or XML) file. Thrift supports one particular JSON format. However, it 
does not support *any* arbitrary JSON that you can think of.

The two options I see is to a) write the test cases in code or b) parse your 
JSON and construct Thrift data from it.

Could that work for you?

Have fun,
JensG
________________________________
Von: Smita Wadhwa
Gesendet: 27.02.2015 09:31
An: [email protected]
Betreff: Testing Thrift Service

hi,

I want to test my thrift service ( unit test + integrations test)  by
having multiple inputs( valid and invalid data inputs) in some file ( in
form of json).

1.) How can I create thrift object from json (read  from file) into a
thrift object and send it to thrift service for testing.

My main concern is converting json object into thrift obbject which can be
sent to service for testing

2.) Are there any alternatives other than json for testing service.

--
Thanks & Regards,
Smita

Reply via email to