A Simple way to run Tests with Actual Parameters

added by rafi
12/14/2010 1:26:28 PM

0 Kicks, 73 Views

Without further ado then: the idea is to just record actual parameters from you application in JSON form, and then use that in a simple Integration/ Unit Test. There are simply three steps to this: 1. Create a generic method to write to an xml file some string values. 2. Access the xml file in your test. 3. De-serialize and Use.