About Users Other Info (External) |
Main /
TestCase3Main.TestCase3 HistoryHide minor edits - Show changes to markup Changed line 13 from:
$ cd $TXSCHEMA/src/test_cases/squash/testcase2 to:
$ cd $TXSCHEMA/src/test_cases/squash/testcase3 Changed line 83 from:
The output TempData_1.xml is the output of squash; it is known as the Temporal Data document. This is the document that later gets passed to the TemporalValidator tool. to:
The output TempData_1.xml is the output of squash; it is known as the Temporal Data document. This is the document that later gets passed to the TemporalValidator tool. Opening this document will reveal over 300 lines data formatted with time varying (tv) and rep (rep) tags.. Deleted line 39:
Changed lines 41-42 from:
The last line printed to standard output should read: to:
After xmllint completes, the last line printed to standard output should read: Added lines 47-49:
Changed lines 35-36 from:
We can now perform some sanity checks to make sure everything is working correctly. (Note: the following is not required for squash to work correctly; it is simply included here for completeness.)
to:
We can now perform some sanity checks to make sure everything is working correctly. (Note: the following is not required for squash to run; it is simply included here for completeness.)
Changed line 49 from:
to:
Changed line 56 from:
to:
Changed line 62 from:
to:
Changed lines 24-25 from:
As the to:
As the Changed lines 31-32 from:
to:
Changed lines 3-5 from:
This tutorial describes how to run one of the more complicated "test cases" that comes with the standard distribution. Scenario: We have created some documents that keep track of our small company (which is named "Company"). We keep track of suppliers and products. We have changed our database (i.e., XML file) 10 times, and thus have 10 versions of the same file. to:
This tutorial describes how to run one of the more complicated test cases that comes with the standard distribution. Scenario: We have created some documents that keep track of our company. We keep track of suppliers and products. Over time, we make refinements to our list of suppliers and products. In total, we have changed our database (i.e., XML file) 10 times, and thus have 10 versions of the same file. Changed line 36 from:
We can now perform some sanity checks to make sure everything is working correctly. to:
We can now perform some sanity checks to make sure everything is working correctly. (Note: the following is not required for squash to work correctly; it is simply included here for completeness.) Deleted lines 67-70:
Running SquashAdded lines 69-70:
At this point, if all has gone according to plan, everything is setup correctly and we are ready to run. Changed lines 72-73 from:
Viewing outputto:
Running SquashTo run squash: $ squash config.xml
Viewing outputThe output TempData_1.xml is the output of squash; it is known as the Temporal Data document. This is the document that later gets passed to the TemporalValidator tool.
Changed lines 25-26 from:
As the to:
As the Changed line 29 from:
to:
Changed lines 32-33 from:
to:
Changed lines 36-38 from:
Running Squashto:
We can now perform some sanity checks to make sure everything is working correctly.
$ xmllint --schema ../../../../etc/TBSchema.xsd company_bundle.xml Added lines 43-44:
The last line printed to standard output should read: Changed lines 46-74 from:
to:
company_bundle.xml validates
$ xmllint --schema ../../../../etc/TXSchema.xsd company_temp_anno.xml
$ xmllint --schema ../../../../etc/PXSchema.xsd company_phy_anno.xml
$ xmllint --schema ../../../../etc/ConfigSchema.xsd config.xml
Running Squash
Added line 12:
Let's navigate to the test directory in question. Changed line 14 from:
$ cd src/test_cases/squash/testcase2 to:
$ cd $TXSCHEMA/src/test_cases/squash/testcase2 Changed lines 25-28 from:
Just as we did in the first tutorial, let's assume that we have created:
to:
As the
Changed lines 31-33 from:
to:
Changed lines 15-31 from:
CVS/ company_tv.xml company.xml company_tv_102_10_10_102_10_11.xml company.xsd company_tv_102_10_11_102_10_12.xml company0.xml company_tv_102_10_12_102_10_13.xml company1.xml company_tv_102_10_13_102_10_14.xml company2.xml company_tv_102_10_14_102_10_15.xml company3.xml company_tv_102_10_15_102_10_16.xml company4.xml company_tv_102_10_16_102_10_17.xml company5.xml company_tv_102_10_17_102_10_18.xml company6.xml company_tv_102_10_18_102_10_19.xml company7.xml company_tv_102_10_19_102_10_21.xml company8.xml config.xml company9.xml snapshot.xml company_bundle.xml snapshot2002-11-10.xml company_bundle.xml.orig testcase_tv.xml company_phy_anno.xml testcase_tv_102_10_10_102_10_11.xml company_temp_anno.xml testcase_tv_102_10_11_102_10_12.xml to:
CVS/ company2.xml company7.xml company_temp_anno.xml company.xml company3.xml company8.xml config.xml company.xsd company4.xml company9.xml company0.xml company5.xml company_bundle.xml company1.xml company6.xml company_phy_anno.xml Changed lines 24-25 from:
Work in progress. to:
Just as we did in the first tutorial, let's assume that we have created:
Changed lines 5-6 from:
Scenario: to:
Scenario: We have created some documents that keep track of our small company (which is named "Company"). We keep track of suppliers and products. We have changed our database (i.e., XML file) 10 times, and thus have 10 versions of the same file. Changed lines 13-14 from:
$ cd src/test_cases/squash/testcase3 to:
$ cd src/test_cases/squash/testcase2 Changed lines 15-31 from:
to:
CVS/ company_tv.xml company.xml company_tv_102_10_10_102_10_11.xml company.xsd company_tv_102_10_11_102_10_12.xml company0.xml company_tv_102_10_12_102_10_13.xml company1.xml company_tv_102_10_13_102_10_14.xml company2.xml company_tv_102_10_14_102_10_15.xml company3.xml company_tv_102_10_15_102_10_16.xml company4.xml company_tv_102_10_16_102_10_17.xml company5.xml company_tv_102_10_17_102_10_18.xml company6.xml company_tv_102_10_18_102_10_19.xml company7.xml company_tv_102_10_19_102_10_21.xml company8.xml config.xml company9.xml snapshot.xml company_bundle.xml snapshot2002-11-10.xml company_bundle.xml.orig testcase_tv.xml company_phy_anno.xml testcase_tv_102_10_10_102_10_11.xml company_temp_anno.xml testcase_tv_102_10_11_102_10_12.xml Changed lines 33-35 from:
to:
Note: don't worry if you don't have the CVS directory, as listed above. Changed lines 7-9 from:
// // to:
Changed lines 21-23 from:
// // to:
Changed lines 26-28 from:
// // to:
Changed lines 3-11 from:
to:
This tutorial describes how to run one of the more complicated "test cases" that comes with the standard distribution. Scenario: // // Getting our ducks in a rowChanged lines 19-29 from:
Work in progress. to:
Work in progress. // // Running Squash// // Viewing outputChanged lines 7-11 from:
$ xmllint --schema company.xsd company0.xml @] to:
$ ls @] Work in progress. Added lines 1-11:
$ cd src/test_cases/squash/testcase3 $ xmllint --schema company.xsd company0.xml |