Function File: rslts] = io_testscript (intf1)
Function File: rslts] = io_testscript (intf1, fname)
Function File: rslts] = io_testscript (intf1, fname, intf2)
Function File: rslts] = io_testscript (intf1, fname, intf2, vebose)

Try to check proper operation of spreadsheet I/O scripts using interface intf1.

intf1 can be one of COM, JOD, JXL, OCT, OTK, OXS, POI, or UNO. No checks are made as to whether the requested interface is supported at all. If fname is supplied, that filename is used for the tests, otherwise depending on intf1 one of "io-test.xlsx", "io-test.xls" or "io-test.ods" is chosen by default. This parameter is required to have e.g., POI distinguish between testing .xls (BIFF8) and .xlsx (OOXML) files.

If intf2 is supplied, that interface will be used for writing the spreadsheet file and intf1 will be used for reading.

If verbose is supplied with a value of true or 1 the used interface is written to the screen.

The tests are primarily meant to be run interactively. For automated tests (e.g., test_spsh.m) optional output argument rslts is supplied. The results of all test steps are printed on the terminal.

See also: test_spsh.

Package: io