Index: openacs-4/packages/acs-core-docs/www/tutorial-debug.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-debug.adp,v diff -u -N -r1.1.2.14 -r1.1.2.15 --- openacs-4/packages/acs-core-docs/www/tutorial-debug.adp 6 Jan 2017 09:18:42 -0000 1.1.2.14 +++ openacs-4/packages/acs-core-docs/www/tutorial-debug.adp 2 Jun 2017 11:12:58 -0000 1.1.2.15 @@ -15,7 +15,7 @@ OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff.
Developer Support. The Developer
Support package adds several goodies: debug information for every
page; the ability to log comments to the page instead of the error
@@ -28,7 +28,7 @@
Press enter for server name and use $OPENACS_SERVICE_NAME
for database name. You can use C-(up arrow) and C-(down arrow) for
command history.
Hint: "Parse error near *" usually means that an xql -file wasn't recognized, because the tcl file is choking on the +file wasn't recognized, because the Tcl file is choking on the *SQL* placeholder that it falls back on.
Watching the server log.
To set up real-time monitoring of the AOLserver error log, type
@@ -45,7 +45,7 @@Make a list of basic tests to make sure it works
+Manual testing
Make a list of basic tests to make sure it works
@@ -73,11 +73,11 @@ to delete your own note. Edit your own note. Search for a note. Test Num Action Expected Result - It seems to me that a lot of people have + It seems to me that a lot of people have been asking for some guidelines on how to write automated tests. I've done several tests by now and have found the process to be extremely easy and useful. It's a joy to work with automated @@ -148,7 +148,7 @@ myfirstpackage. You should see your test case. Run it and examine the results.
API testing can only test part of our package - it doesn't test the code in our adp/tcl pairs. For this, we can use TCLwebtest. TCLwebtest must be installed for this test to work. This provides a library of functions that make it easy to call a page @@ -158,7 +158,7 @@ integrating them.
Now we can add the rest of the API tests, including a test with deliberately bad data. The complete test looks like:
ad_library { Test cases for my first package.