WhyWaitForever

London England

VisibleGif - Test 1

Supplying parameters

This page contains a sample set of tests which demonstrate a number of common errors when executing VisibleGif.

For each test the command file, parameter file if used and run report are listed. The license parameter has been replaced by "########" through out.

The tests were run on a Windows NT computer. The file name extension ".cmd" is used for command files on computers running Windows NT. Command files on Windows 95 or 98 machines usually use the ".bat" file name extension.

Index to tests



Program Parameters

 ^  Test 1 - No parameters supplied

This test executes VisibleGif with no parameters supplied. Parameters always need to be supplied to VisibleGif.

Test 1 - Command file


rem   vgt001.cmd   VG - Test 001 - No parameters supplied

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t001.txt
%exelib% >t001.txt


Test 1 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Sat Feb 12 10:02:16 GMT+00:00 2000

     I004 Parameters

     E014 Error: Parameters not correct or license invalid 
     E000 Error: Program terminated 

     I003 End time is Sat Feb 12 10:02:18 GMT+00:00 2000

I001 Run report for VisibleGif 



 ^  Test 2 - Parameter file not found

This test executes VisibleGif with a parameter file that is not in the directory. The file "missing.txt" does not exist. A parameter file or parameters need to be present.

Test 2 - Command file


rem   vgt002.cmd   VG - Test 002 - missing parameter file

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t002.txt
%exelib% missing.txt >t002.txt


Test 2 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Sat Feb 12 10:02:18 GMT+00:00 2000

     I004 Parameters

     E014 Error: Parameters not correct or license invalid 
     E000 Error: Program terminated 

     I003 End time is Sat Feb 12 10:02:18 GMT+00:00 2000

I001 Run report for VisibleGif 



 ^  Test 3 - Parameter file found but no parameters

This test executes VisibleGif with a parameter file that is in the directory. The file "parm.txt" exists but does not contain any valid parameters. The parameters in the file have been marked as "comments". Valid parameters need to be present.

Test 3 - Command file


rem   vgt003.cmd   VG - Test 003 - Parameter file found but no parameters

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t003.txt
%exelib% parm.txt >t003.txt


Test 3 - Parameter File - "parm.txt"


# VisibleGif parm.txt
#
#     Example of a parameter file to read a GIF image file,
#     create an XML tagged file and produce a report.

# The input file
# <gifparm>red.gif

# The output file
# <gifparm>red.xml

# The report file
# <gifparm>red.txt

# The run parameters (none)
# <gifparm>

# The license
# <gifparm>########



Test 3 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Sat Feb 12 11:08:10 GMT+00:00 2000

     I004 Parameters

     E014 Error: Parameters not correct or license invalid 
     E000 Error: Program terminated 

     I003 End time is Sat Feb 12 11:08:11 GMT+00:00 2000

I001 Run report for VisibleGif 



 ^  Test 4 - Parameter file has insufficient parameters

This test executes VisibleGif with a parameter file that is in the directory. The file "parm1.txt" exists but contains insufficient valid parameters. Apart from the first all parameters in the file have been marked as "comments". Valid parameters need to be present.

Test 4 - Command file


rem   vgt004.cmd   VG - Test 004 - Parameter file has insufficient parameters

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t004.txt
%exelib% parm1.txt >t004.txt


Test 4 - Parameter File - "parm1.txt"


# VisibleGif parm1.txt
#
#     Example of a parameter file to read a GIF image file,
#     create an XML tagged file and produce a report.

# The input file
<gifparm>red.gif

# The output file
# <gifparm>red.xml

# The report file
# <gifparm>red.txt

# The run parameters (none)
# <gifparm>

# The license
# <gifparm>########



Test 4 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Sat Feb 12 11:08:12 GMT+00:00 2000

     I004 Parameters
          1: red.gif

     E014 Error: Parameters not correct or license invalid 
     E000 Error: Program terminated 

     I003 End time is Sat Feb 12 11:08:13 GMT+00:00 2000

I001 Run report for VisibleGif 



 ^  Test 5 - Input file not found

This test executes VisibleGif with parameters passed directly to the program. The input file "red.xxx" does not exist. The input file should exist.

Test 5 - Command file


rem   vgt005.cmd   VG - Test 005 - Input file not found

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t005.txt
%exelib% red.xxx red1.xml ######## >t005.txt


Test 5 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Fri Feb 11 11:08:14 GMT+00:00 2000

     I004 Parameters
          1: red.xxx
          2: red1.xml
          3: license: ##################

     E023 Error: File does not exist :
          ( red.xxx )
     E000 Error: Program terminated 

     I003 End time is Fri Feb 11 11:08:15 GMT+00:00 2000

I001 Run report for VisibleGif 



 ^  Test 6 - Input file not gif or xml

This test executes VisibleGif with parameters passed directly to the program. The input file "red.txt" does exist but the file name extension should be either ".gif" or ".xml". The input file should exist and have a file name extension of either ".gif" or ".xml".

Test 6 - Command file


rem   vgt006.cmd   VG - Test 006 - Input file not gif or xml

rem   Set the variables for the folder names
set exelib=h:\vg\bin\vg
set runlib=h:\vg\test\exe

rem   Change directory to the correct disk drive and folder
h:
cd %runlib%

rem   Execute vg and send output to t006.txt
%exelib% red.txt red1.xml ######## >t006.txt


Test 6 - Run Report


I001 Run report for VisibleGif 

     I002 Start time is Fri Feb 11 11:08:15 GMT+00:00 2000

     I004 Parameters
          1: red.txt
          2: red1.xml
          3: license: ##################

     I010 File exists and will be read :
          ( red.txt )
     I012 File will be created :
          ( red1.xml )

     E028 Error: Input file name should end with .gif or .xml : red.txt
     E000 Error: Program terminated 

     I003 End time is Fri Feb 11 11:08:16 GMT+00:00 2000

I001 Run report for VisibleGif 


Life's too short why wait forever
Privacy Declaration
Copyright © 2000 - 2005. WhyWaitForever. All rights reserved.
Legal Disclaimer