• last updated 5 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Support different HTTP methods in aa_http

Add XPAth helper to aa_testing utilitiy functions

Whitespace cleanup

- Add a new api function for visualizing backslashes and crlf

conventions aa_test::visualize_control_chars

- Add a new API function for running requests against the current

server: aa_http

- Bump version number to 5.10.0d2

  1. … 1 more file in changeset.
Add missing new xql file

Reduce divergence between postgres and oracle codebase

merged changes from the oacs-5-9 branch and resolved conflicts

    • -1
    • +7
    ./test/acs-automated-testing-procs.tcl
  1. … 7824 more files in changeset.
Standardize spellings of names

  1. … 11 more files in changeset.
Fix spelling errors

  1. … 11 more files in changeset.
- use "info procs" rather than "info proc"

- replace deprecated "cc_lookup_email_user ..." by "party::get_by_email -email ..."

  1. … 2 more files in changeset.
.xql-file reform of acs-automated-testing

- remove sql statements from the code, where these are provided via .xql

- prefer empty sql statements over various forms of *SQL*

- remove unneeded sql queries (postgres and oracle)

aa_run_testcase.delete_testcase_results_sql

aa_run_testcase.delete_testcase_final_results_sql

- no need to use backslash for continuation between curly brackets

- improve readability of code

- modernize tcl

  1. … 13 more files in changeset.
- add editor hints to keep spaces/tabs in the furture more consistent

    • -1
    • +7
    ./test/acs-automated-testing-procs.tcl
  1. … 747 more files in changeset.
- remove trailing .html from doc references (to allow e.g. .adp as well)

  1. … 4 more files in changeset.
- remove unneeded global statement

- remove globals for errorInfo/errorCode and use namespace qualifiers instead

  1. … 1 more file in changeset.

ad_proc reform:

- use nsf::proc for defining ad_procs, when nsf::proc is available

- nsf::proc is part of the environment of XOTcl2 and provides

an efficient, C-implemented argument parser that can replace

the scripted *__arg_parser of OpenACS.

- The benefits are performance and reduced memory consumption.

* Simple functions (where the calling overhead was a large

part of the execution times can become several times faster

(e.g. db_name is 3x faster, cookie handling is 2x faster),

for functions with much db-activities the percentage will

be less.

* The memory consumption (RSS) of a site like OpenACS.org

is reduced by about 15%.

NEW (with nsf::proc)

::ad_get_cookie x: 10.93 microseconds per iteration

::ad_get_cookie ad_session_id: 21.95 microseconds per iteration

::dt_systime: 24.89 microseconds per iteration

::db_name: 8.70 microseconds per iteration

::db_string dbqd.null.g "select version() from dual": 316.66 microseconds per iteration

::ad_convert_to_html "hello world": 102.29 microseconds per iteration

OLD (without nsf::proc)

::ad_get_cookie x: 19.42 microseconds per iteration

::ad_get_cookie ad_session_id: 30.10 microseconds per iteration

::dt_systime: 27.55 microseconds per iteration

::db_name: 32.28 microseconds per iteration

::db_string dbqd.null.g "select version() from dual": 366.69 microseconds per iteration

::ad_convert_to_html "hello world": 160.51 microseconds per iteration

======================================================================

proc mtime cmd {set c 5000

set t [time [list time $cmd $c]];

regexp {^(-?[0-9]+) +} $t _ mS1;

set ms [expr {$mS1*1.0/$c}];

return "[format %6.2f $ms] microseconds per iteration"

}

set tests {

{::ad_get_cookie x} {::ad_get_cookie ad_session_id} {::dt_systime}

{::db_name} {::db_string dbqd.null.g "select version() from dual"}

{::ad_convert_to_html "hello world"}

}

foreach t $tests {append ::_ $t ": " [mtime $t] \n}

set ::_

======================================================================

  1. … 9 more files in changeset.
- standardize url construction to protect against injection attacks

  1. … 3 more files in changeset.
Merging back to HEAD branch oacs-5-8 (using tag vg-merge-oacs-5-8-from-20141027).

  1. … 2545 more files in changeset.
- change spelling of TCL to Tcl

- change requirements to Tcl 8.5

  1. … 64 more files in changeset.
-fix syntax

- use $::acs::rootdir rather than [acs_root_dir] or [get_server_root]

  1. … 13 more files in changeset.
- normalize string expressions

- use "in" operator instead of "lsearch"

  1. … 1 more file in changeset.
- get rid of empty_string_p

  1. … 2 more files in changeset.
Implemented TIP#136 Add optional support for Selenium Remote Control to acs-automated-testing.

    • -0
    • +123
    ./selenium-procs.tcl
    • -0
    • +14
    ./test/selenium-procs.tcl
  1. … 3 more files in changeset.
Merged the 5.3 branch with HEAD. Look for tags with the pattern

drb-*-20070513

  1. … 324 more files in changeset.
Fix login procs to work with external authorities

and username logins.

Normalizing string comparison operations into tcl 8.4 operations, enabling byte-code compilation for expressions and many conditionals

  1. … 365 more files in changeset.
If a test logs a user in it should log that user out. Particularly if it

then goes on to delete that user. Failure to do so screws up tests that

try to access the website, logically enough.

    • -1
    • +4
    ./test/acs-automated-testing-procs.tcl
Added documentation to aa procs.