Export/Import Testing

From OSPDocs

Jump to: navigation, search

Testing of the Export/Import system is done at two levels.

Below is shown the full path of exporting a simulation (Sim A) into an XML export file (<Sim A>) and then importing it into a simulation with a different name (Sim B) and then exporting that into an XML export file (Sim B).

Sim A ----> <Sim A> --> Sim B ----> <Sim B>

After one has created Sim B, one can then use the Simulation.compare() method to compare the final results. Another useful test is to take resulting xml files (<Sim A> and <Sim B>) and just do a diff on them. If things other than the names have changed, this will highlight potential problems.