Index: openacs-4/packages/acs-core-docs/www/tutorial-debug.html =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-core-docs/www/tutorial-debug.html,v diff -u -r1.41.2.1 -r1.41.2.2 --- openacs-4/packages/acs-core-docs/www/tutorial-debug.html 12 Jun 2011 20:03:48 -0000 1.41.2.1 +++ openacs-4/packages/acs-core-docs/www/tutorial-debug.html 12 Jun 2011 20:52:57 -0000 1.41.2.2 @@ -1,8 +1,8 @@ -
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 log, and fast user switching so that you
can test pages as anonymous and as dummy users without logging
@@ -23,16 +23,16 @@
? searches backward
/ searches forward.
-
Make a list of basic tests to make sure it works
Test Num | Action | Expected Result | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
001 | Browse to the index page while not logged in and
+ Make a list of basic tests to make sure it works
Other things to test: try to delete someone else's note. Try to delete your own note. Edit your own note. - Search for a note. by Simon Carstensen and Joel Aufrecht + Search for a note.by Simon Carstensen and Joel Aufrecht OpenACS docs are written by the named authors, and may be edited by OpenACS documentation staff. -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 testing once you get the hang of it. Create the directory that will contain the test script and edit the script file. The directory location and file name are standards which are recognized by the automated testing package: [$OPENACS_SERVICE_NAME www]$ mkdir /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/test [$OPENACS_SERVICE_NAME www]$ cd /var/lib/aolserver/$OPENACS_SERVICE_NAME/packages/myfirstpackage/tcl/test @@ -68,7 +68,7 @@ goes inside -test_code {}. We want to implement test case API-001, "Given an object id from API-001, invoke mfp::note::get. Proc should return the specific word in the title."set name [ad_generate_random_string] set new_id [mfp::note::add -title $name] - aa_true "Note add succeeded" [exists_and_not_null new_id] See also Section , “Automated Testing”. |