acs-automated-testing

  • last updated 12 hours ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Streamline idiom

Prefer unset to array unset when the purpose is to delete the whole array

See https://wiki.tcl-lang.org/page/Dict+VS+Array+Speed

merge with missing files

  1. … 1454 more files in changeset.
merge from oacs-5-10

    • -7
    • +285
    ./tcl/test/acs-automated-testing-procs.tcl
  1. … 8085 more files in changeset.
file upgrade-5.10.0d14-5.10.0d15.sql was initially added on branch oacs-5-10.

    • -0
    • +0
    ./sql/oracle/upgrade/upgrade-5.10.0d14-5.10.0d15.sql
file coverage-procs.tcl was initially added on branch oacs-5-10.

    • -0
    • +0
    ./tcl/coverage-procs.tcl
file tests.css was initially added on branch oacs-5-10.

    • -0
    • +0
    ./www/resources/tests.css
fix name of tested proc

    • -2
    • +3
    ./tcl/test/acs-automated-testing-procs.tcl
improve spelling

Provide a simply authority named "acs_testing" for creating test users during runs of the regression test.

Use this authority in ::acs::test::user::create to avoid problems with the default authority of the site.

    • -0
    • +23
    ./tcl/authority-init.tcl
    • -0
    • +133
    ./tcl/authority-procs.tcl
Fix layout when no data for test is available

- add new api function "aa_section" to allow structuring of larger test cases

- generalize login during tests further. When "user_info" is provided

it can be used to either login via login credentials or directly

via user_id (next step: integrate config-option for test users, this

will allow pure web tests to run against a different server)

- extend regression test to cover new features

- bump version numbers to 5.10.0d7

    • -5
    • +27
    ./tcl/test/acs-automated-testing-procs.tcl
added cookie management by passing request dict as "-session" to next requests

- new webtest API calls:

::acs::test::login

::acs::test::logout

- transformed tclwebtest_example to webtest_example (not using twt)

    • -31
    • +35
    ./tcl/test/acs-automated-testing-procs.tcl
Allow to specify the URL which is used for regression

testing for cases, where it is hard to determine (when e.g. running

behind a proxy server)

Fix URL

allow as well testing via https

acs-automated testing:

- improve log entries of aa_true and aa_false

- new convenience method

acs::test::reply_has_status_code

- add the detail-link only when necessary

- include the email address properly

acs-automated testing:

- provide the ability to add detail urls to messages

- new convenince methods

acs::test::reply_contains

acs::test::reply_contains_no

display testd URLs on testcases for web tests

- move new testing function "visualize_control_chars" to the namespace ::acs::test

- new testing functions

acs::test::get_form and

acs::test::xpath::get_form

to get collected form info with more ease in test cases

- bump version info to 5.10.0d7

Trim whitespace

move newly defined testing API (in OpenACS 5.10) to namespace acs::test

  1. … 7 more files in changeset.
make ::aa_test::form_reply and :aa_xpath::get_form_values from xowiki/testing available for all packages

bump version number to 5.10.0d5

make automated-testing login more robust, i.e. working with a configured wild card ip address

    • -2
    • +3
    ./tcl/test/acs-automated-testing-procs.tcl
fix too many colons

Don't include Se as a tested proc, as not being a openacs class will make loading fail

Fix backslashes

    • -3
    • +2
    ./tcl/test/acs-automated-testing-procs.tcl
overwork test cases: moderinze tests, make tested api functions explicit

    • -2
    • +12
    ./tcl/test/acs-automated-testing-procs.tcl
  1. … 7 more files in changeset.
whitespace changes