| || |
Automating Print Functionality Testing
I want to test our applications print functionality on windows operating systems.
My strategy would be as follows:
1) Set up System printers for different kinds of printers we have available in the office.
2) Set up System printers using the same drivers as those in step 1 execept they will be file ports.
3) Print to the System printers from step 2 (thus generating .prn files).
4) Use the print files to generate actal pages by sending them to the printers in step 1.
5) Once I know the .prn files generate the correct paper results, I can use them as expected results in file comaprisons.
I currently stuck on step4. In other words, how do I convert a .prn file (binary) to a printed page?
Re: Automating Print Functionality Testing
The file can be copied to the printer from a command prompt. For example, if the file is test.ps and the print queue is \\server\printer1, then the command would be "copy test.ps \\server\printer1". This will work with both PS and PCL print drivers.