Running the Test Scripts

 

The entire set of files to run the test scripts used in this tutorial are included.

 

There is a batch file "testscript.bat" in the “\Sample Code” directory which generates a series of test conditions to the validate RSS merge test matrix.  This is used to simulate a series of changes made by two endpoints making modifications to an initial RSS feed used as a common starting point.

 

The batch file makes use of five JavaScript utilities to convert, create, update and delete RSS items, as well as a merge script.

 

The \rss output directory contains the output from running the script.  This includes all of the intermediate files capturing all versions of each incremental change made by each endpoint "ep1" and "ep2", and then the merged output.  Each test is a progression, using the output of the previous test as the input to the subsequent test.

 

The test script takes one input parameter, namely an unmodified file with the RSS feed content that represents the starting point for each endpoint. 

 

Run the script by typing:  "testscript <your RSS feed file>".  All files in the “\Samples XML” folder were generated by using “todolist.xml” as the source RSS feed file.

 

You will see each test echo it's commands to stdout as it is completed.  Note, there are pauses inserted into the test script which are used to introduce wall-clock time delay for some of the tests which generate conflicts.  This delay is used to ensure the time-ordering of the changes.

 

Once all tests are run, the intermediate and merged output files will reside in the \rss subfolder.

 

NOTES:

1)      You must have Internet Explorer v4 or later to ensure that a minimal version of msxml.dll exists.

2)      You must have at least Windows XP SP1, Windows Server 2003 or Windows Vista to ensure that the appropriate scripting environments are available.

3)      You must use cscript.exe instead of wscript.exe (the default) to run the scripts