Menu

TestFiles

Niklas Rehfeld
Attachments

Test Files

This page documents the test files that have been used to test the DDT.

Files

For each of the file types, there are will be test files for each version of Office. Well, there should be, but I don't have access to copies of Office earlier than 2003.

Each test file should have a name that describes what mechanism was used to create the links. There should be only one mechanism per file, but that mechanism should be repeated for files from all available office versions. So for instance if the file formulas.xls contains links in formulas, then formulas.xls should contain several formulas, each one of which uses data from a file made with a different version of office.

The folder structure at the moment is

testfiles
|---- xls
|---|---- 2003
|---|---|----chart-from-source.xls
|---|---|----chart-pasted.xls
|---|---|----formulas.xls
|---|---|----insert-as-object.xls
|---|---|----pivot-tables.xls
|---|---|----paste-as-link-text.xls
|---|---|----paste-as-link-doc.xls
|---|---- 2007
|---|---|----chart-from-source.xls
|---|---|----chart-pasted.xls
|---|---|----formulas.xls
|---|---|----insert-as-object.xls
|---|---|----pivot-tables.xls
|---|---- 2010

Where folders named after an office version contain files created by that version of office.
All of the version folders should contain the same files to make it easy to get a consistent set of
test files across versions.

Expected Results

The expected results are:

File: Dependencies
chart-from-source.xls 2003-chartsource.xls
2007-chartsource.xls
2010-chartsource.xls
chart-pasted.xls 2003-chart.xls
2007-chart.xls
2010-chart.xls
formulas.xls 2003-formulasource.xls
2007-formulasource.xls
2010-formulasource.xls
insert-as-object.xls 2003-normalsource.xls
2007-normalsource.xls
2010-normalsource.xls
2003-object-source.doc
pivot-tables.xls 2003-pivotsource.xls
2007-pivotsource.xls
2010-pivotsource.xls
paste-as-link-text.xls 2003-paste-special-range-source.doc
paste-as-link-doc.xls 2003-paste-special-doc-source.doc

As is fairly obvious, the dependencies are files that are created by different versions of office again.
Each file represents a mechanism for linking files. For instance, chart-from-source.xls contains
charts that use data from the '20xx-chartsource.xls' files.

Linking Mechanisms

The mechanisms that have been tested so far are:

  • chart-from-source: a chart created with source data from another workbook.
  • chart-pasted: a chart created in another workbook, then pasted into this one.
  • formulas: a formula that references data in another workbook.
  • insert-as-object: another OLE file inserted as an OLE object, see attached screenshot
  • pivot-tables: a pivot table from data in another workbook.
  • paste-as-link-doc: paste special'ed as a linked document. See attached screenshot
  • paste-as-link-text: paste special'ed as a text and unicode text region.

If any other files/tests are added to the project, they should be noted in here.


Related

Wiki: DevHome

Discussion

  • Urh

    Urh - 2018-03-07

    Hi,
    can you please share jour test files in folder strukture?

    Reagards,
    Urh

     
  • Niklas Rehfeld

    Niklas Rehfeld - 2018-03-11

    That looks like you are trying to run it on xlsx files. This tool only works for the old binary (.xls) files, not the newer xml-based ones.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.