JSwiff
flash movies the java way
JSwiff Forum
  Search   Recent Topics     Member Listing    Back to home page 
Register / 
Login 
Testing procedures  
Forum Index -> Development
Author Message
Ralf



Joined: Jul 20, 2005
Messages: 127
Location: Germany
Offline

I decided to share a few thoughts with you about how I test the newly implemented tag-level XML features of JSwiff.
Basically, my testing procedure consists in transforming a SWF into XML and then back to SWF, then compare source and generated SWF, simply by loading them in parallel into two instances of Flash player. Yes, this is time consuming and not 100% reliable, but though, it has proved to be effective.
I used SWFDirToXML and XMLDirToSWF (from the com.jswiff.tests.simple package) for batch transformation on about 1000 SWF files. I basically used a similar testing procedure earlier for SWF parsing and generation, reading a SWF document (into an SWFDocument instance), then writing it to another SWF file. Of course I did this also in a batch, using SWFDirCopy.
Another testing method I used was comparing (diff-ing) primarily generated (i.e. SWF->XML) with secondarily generated XML (i.e. SWF->XML->SWF->XML).
If you have more ideas regarding testing, please share them with me - TIA
 
  Forum Index -> Development
Go to:   
Legal notes
Powered by JForum 2.1.4 © 2005 - Rafael Steil