Index: openacs-4/packages/acs-subsite/www/doc/group-admin-pages-acceptance-test.adp =================================================================== RCS file: /usr/local/cvsroot/openacs-4/packages/acs-subsite/www/doc/group-admin-pages-acceptance-test.adp,v diff -u -r1.2 -r1.3 --- openacs-4/packages/acs-subsite/www/doc/group-admin-pages-acceptance-test.adp 27 Oct 2014 16:39:57 -0000 1.2 +++ openacs-4/packages/acs-subsite/www/doc/group-admin-pages-acceptance-test.adp 7 Aug 2017 23:47:59 -0000 1.3 @@ -1,14 +1,17 @@ -{/doc/acs-subsite {Subsite}} {Group Admin Pages - Acceptance test} +{/doc/acs-subsite {ACS Subsite}} {Group Admin Pages - Acceptance test} Group Admin Pages - Acceptance test - -

Group Admin Pages - Acceptance -test

+test + ACS subsite docs : Group Admin Pages - -Acceptance test

DEVELOPER DEFINED GROUP TYPES TEST

The first thing we have to test is developer defined group -types working in conjunction with the user defined ones.

Create the following object type in SQL*Plus.

begin
+Acceptance test
+

DEVELOPER DEFINED GROUP TYPES TEST

+The first thing we have to test is developer defined group +types working in conjunction with the user defined ones. +

Create the following object type in SQL*Plus.

+
begin
  acs_object_type.create_type (
    supertype => 'group',
    object_type => 'developer_defined_test_type',
@@ -87,25 +90,32 @@
 /
 show errors
 
-
    -
  1. Go to /admin/group-types and select "Developer defined -test types"
  2. Add a permissible rel type of Membership +
+
    +
  1. Go to /admin/group-types and select "Developer +defined test types"
  2. Add a permissible rel type of Membership Relation
  3. Add a group named "Test group"
  4. -

GROUP TYPE PAGES BASIC FUNCTIONALITY

(Start at /admin)
    -
  1. Click on group types
  2. Click on Groups
  3. Click on "Group name" under "Attributes of this type of -group"
  4. Ensure that you see the properties of the attribute and +
+

GROUP TYPE PAGES BASIC FUNCTIONALITY

+(Start at /admin) +
    +
  1. Click on group types
  2. Click on Groups
  3. Click on "Group name" under "Attributes of +this type of group"
  4. Ensure that you see the properties of the attribute and that you are offered no administrative links
  5. Make sure you cannot add attributes or do anything under administration
  6. Make sure you see Composition and Membership Relation as -the default relationship types
  7. Add a new group called "Foobar" - Make sure Foobar -appears after adding the group
  8. Click on Foobar
  9. Click on nuke this group then click no. Ensure group is +the default relationship types
  10. Add a new group called "Foobar" - Make sure +Foobar appears after adding the group
  11. Click on Foobar
  12. Click on nuke this group then click no. Ensure group is not deleted
  13. Click on nuke this group then click yes. Group should no longer show up
  14. Recreate the group Foobar
  15. Click on foobar, then change the name to -"ArsDigita"
  16. Change ArsDigita's join policy to closed
  17. -

DYNAMICALLY EXTENDING GROUPS

(Start at /admin/group-types/)
    -
  1. Click on "Define a new group type" and create a new group -type called "Project" with type "project". Ensure that all the -fields you see are required (try submitting without entering in -anything).
  2. Define another group type, child of group, named +"ArsDigita"
  3. Change ArsDigita's join policy to closed
  4. +
+

DYNAMICALLY EXTENDING GROUPS

+(Start at /admin/group-types/) +
    +
  1. Click on "Define a new group type" and create a +new group type called "Project" with type +"project". Ensure that all the fields you see are +required (try submitting without entering in anything).
  2. Define another group type, child of group, named "Test"
  3. Define another group type, 'subproject', child of project. Ensure that the index page correctly displays the hierarchy.
  4. Define a new group type with group type = group. See @@ -116,79 +126,94 @@ default relationship types
  5. You have a link to change the default join policy
  6. You have a link to delete the group type
  7. -
  8. Click on "Add a permissible relationship type." Ensure -that you are not given a select bar but are offered a link to -"create a new relationship type"
  9. Create a group of type test.
  10. Delete the test group type (first verify that the cancel -button works)
  11. Go to the "project" group type
  12. Add a required attribute called "Project type" of -datatype enumeration. Values are "Client" "Toolkit"
  13. Add an optional attribute "Monthly fee" of type integer -and default of "10000"
  14. Add a third attribute called test.
  15. Make sure you can see all the attributes. Delete the test +
  16. Click on "Add a permissible relationship type." +Ensure that you are not given a select bar but are offered a link +to "create a new relationship type"
  17. Create a group of type test.
  18. Delete the test group type (first verify that the cancel +button works)
  19. Go to the "project" group type
  20. Add a required attribute called "Project type" +of datatype enumeration. Values are "Client" +"Toolkit"
  21. Add an optional attribute "Monthly fee" of type +integer and default of "10000"
  22. Add a third attribute called test.
  23. Make sure you can see all the attributes. Delete the test attribute
  24. -Go to "/admin/object-types/one?object_type=project" and -ensure that start_date and monthly fees are listed as attributes. -Also make sure:
      +Go to +"/admin/object-types/one?object_type=project" and ensure +that start_date and monthly fees are listed as attributes. Also +make sure:
      • test attribute is not visible
      • monthly_fee has a default specified (NULL) in the pl/sql parameter list
      • start_date has no default specified
      -
    • Go to "/admin/object-types/one?object_type=subproject" -and ensure the new attributes of project are in the pl/sql +
    • Go to +"/admin/object-types/one?object_type=subproject" and +ensure the new attributes of project are in the pl/sql package
    • Now go back to the group type admin page for the -"Projects" group type. Remove the composition relation. Make sure -you get a link back to add a relationship type. Add back the -composition relation.
    • Add a group of type project named +"Projects" group type. Remove the composition relation. +Make sure you get a link back to add a relationship type. Add back +the composition relation.
    • Add a group of type project named GuideStar.org
    • -

RELATIONSHIP TYPE PAGES BASIC FUNCTIONALITY

    +
+

RELATIONSHIP TYPE PAGES BASIC FUNCTIONALITY

+
  1. Create a new relationship type, Employment relation, that is a subtype of Membership relation, between group and person. Group has role of employer, person role of employee.
  2. Select the employment relation and add an attribute age -(integer, not required)
  3. Delete the employment relationship type.
  4. Re-add the employment relationship type (we're testing to -make sure the age attribute is correctly removed and flushed from -the cache)
  5. Click on membership relation, then click on create +(integer, not required)
  6. Delete the employment relationship type.
  7. Re-add the employment relationship type (we're +testing to make sure the age attribute is correctly removed and +flushed from the cache)
  8. Click on membership relation, then click on create subtype
  9. Click on membership relation -> Create subtype type: project_lead_relation name: Project Lead between projects (the composite) and persons (the project leader new role)
  10. Create a new, dummy rel type, subtype of Project Lead Relation. Make sure the only things in object type one are project and subproject
  11. Select the dummy relationship type and then delete it.
  12. Select the Employment relation and add a required attribute "salary" (type integer)
  13. -

SEGMENTS, CONSTRAINTS AND RELATIONS

    +
+

SEGMENTS, CONSTRAINTS AND RELATIONS

+
  1. Go back to the admin page (/admin)
  2. Click on the Groups -> GuideStar.org. Add ArsDigita as a component
  3. Remove the composition rel type from this group
  4. Readd the composition rel type. Make sure arsdigita -doesn't show up
  5. remove the composition rel type
  6. Add a permissible rel type: +doesn't show up
  7. remove the composition rel type
  8. Add a permissible rel type: project_lead_relation
  9. Click yes to create a rel segment named "GuideStar Project Leads"
  10. Go back to /admin/groups
  11. Click on "relationship to site"
  12. Remove yourself from the group.
  13. Add yourself again as a member (using the membership relation). You will have to select an existing party from the -system.
  14. Make sure you see the segment "Main Site Members" for -parties with a membership relation to the main site.
  15. Go to the ArsDigita group.
  16. Add guidestar.org as a component
  17. Remove the membership relation type from this -group
  18. Add the employment relation type
  19. Create a segment named "ArsDigita employees"
  20. Add a constraint named "ArsDigita employees must be Main -Site Members" for employees and the segment "Main Site -Members"
  21. Go back to the guidestar.org group
  22. Add yourself as a project lead.
  23. Click on the project lead segment "GuideStar Project +system.
  24. Make sure you see the segment "Main Site +Members" for parties with a membership relation to the main +site.
  25. Go to the ArsDigita group.
  26. Add guidestar.org as a component
  27. Remove the membership relation type from this +group
  28. Add the employment relation type
  29. Create a segment named "ArsDigita +employees"
  30. Add a constraint named "ArsDigita employees must be +Main Site Members" for employees and the segment "Main +Site Members"
  31. Go back to the guidestar.org group
  32. Add yourself as a project lead.
  33. Click on the project lead segment "GuideStar Project Leads"
  34. Click delete this segment. Say no.
  35. Click delete this segment. Say Yes.
  36. Recreate the "GuideStar Project Leads" -segment
  37. Add a constraint named "Project leads must be employees" -that says all "project leaders must be employees of -ArsDigita"
  38. Make sure you see yourself as a violation. Remove the +segment
  39. Add a constraint named "Project leads must be +employees" that says all "project leaders must be +employees of ArsDigita"
  40. Make sure you see yourself as a violation. Remove the violating relation and finish adding the constraint
  41. Try to add a project leader to guidestar. You should see -that there "There is no other Person that can be added as Project -Leader to GuideStar.Org"
  42. Add yourself as an arsdigita employee
  43. Make yourself the project lead on -guidestar.org
  44. Go back to /admin/groups and select "relationship typ -site." Remove your membership relation. You should get prompted to -remove relation to arsdigita, then to guidestar. Remove all of -these relations.
  45. Make yourself a project lead of guidestar +that there "There is no other Person that can be added as +Project Leader to GuideStar.Org"
  46. Add yourself as an arsdigita employee
  47. Make yourself the project lead on +guidestar.org
  48. Go back to /admin/groups and select "relationship +typ site." Remove your membership relation. You should get +prompted to remove relation to arsdigita, then to guidestar. Remove +all of these relations.
  49. Make yourself a project lead of guidestar again.
  50. -

Testing with more Users

Now we're going to test that the user interface remains -consistent if there are a few more users.
    -
  1. Go to /acs-admin/users and add 4 users
  2. Go to /admin/groups and click on "relationship to site." -You should see all of the people you just entered listed as members -of the subsite.
  3. Try to remove your Membership relation. You should see +
+

Testing with more Users

+Now we're going to test that the user interface remains +consistent if there are a few more users. +
    +
  1. Go to /acs-admin/users and add 4 users
  2. Go to /admin/groups and click on "relationship to +site." You should see all of the people you just entered +listed as members of the subsite.
  3. Try to remove your Membership relation. You should see only one constraint violation.
  4. Remove one of the other people from the registered users group. You should be allowed to do it immediately.
  5. Add back the person you removed.
  6. Remove yourself from the registered users group. Make yourself a project lead on guidestar again.
  7. Make another user a project lead on guidestar.
  8. -

CLEANING UP

    +
+

CLEANING UP

+
  1. Go to /admin/group-types
  2. Select the project group type
  3. Delete this group type. Should get prompted to delete sub projects group type.
  4. Delete the sub projects group type.
  5. Should get prompt to delete the project lead rel type
  6. Delete the project lead rel type. Continue until you -delete the project group type.
  7. Delete the ArsDigita group.
  8. Go to /admin/rel-types/
  9. Click on "View all roles"
  10. Click on "Project Leader" - delete this role
  11. Click on "Employer" then on Employment +delete the project group type.
  12. Delete the ArsDigita group.
  13. Go to /admin/rel-types/
  14. Click on "View all roles"
  15. Click on "Project Leader" - delete this +role
  16. Click on "Employer" then on Employment Relation
  17. Delete the employment relation type.
  18. Delete the employee, employer, and project_leader roles
  19. Delete any groups you created for the developer defined type
  20. @@ -197,9 +222,11 @@ drop package developer_defined_test_type;
  21. -

Michael -Bryzek
-
$Id: group-admin-pages-acceptance-test.html,v 1.3 -2003/09/30 12:10:03 mohanp Exp $ + +
+
Michael +Bryzek
+ +
$‌Id: group-admin-pages-acceptance-test.html,v +1.3.24.1 2016/07/18 11:40:32 gustafn Exp $
-