Parcel Access Test

Test Plan Name: 
:Parcel Access Test
Test Plan Owner: 
:Caleb
Test Plan Contributors: 
:Maestro, Caleb, Mazidox
Last Revision Date: 
:2017-05-04
Associated JIRAs: 
:Written for DRTSIM-233 testing 
:Revised for DRTSIM-343 testing
Tests: 
:Smoke Test (Basic Functionality Test) 
:*Basic parcel access test in simulator smoke test
 
= Overview =
The purpose of this test is to verify that the simulator's parcel access logic is behaving correctly. This test does not cover estate access rules, which are independent of parcel access. 
= Setup =
This test requires extensive user account and parcel settings setup. 
== Test Account Setup ==
*The access test requires several types of test accounts, as shown in #Users_Table below 
*You will need to make your own test accounts and own test parcels (as described in #Parcel_Setup)
=== Users Table ===
Test User	User Description 	Belongs to parcel's group	PIOF	>= 18 years old	Special Feature
UserA 	God 	No 	No 	Yes 	In god mode
UserB 	Estate manager 	No 	No 	Yes 	Is an estate manager
UserC 	Parcel owner 	Yes 	No 	Yes 	Owns the test parcels
UserD 	Group member, >18 and PIOF 	Yes 	Yes 	Yes 	None
UserE 	Joe Nobody, >18 and PIOF 	No 	Yes 	Yes 	None
UserF 	Group member, >18 and PIOF, but banned 	Yes 	Yes 	Yes 	On 'Banned Residents' list for all test parcels
UserG 	Joe Nobody, >18 and PIOF, but banned 	No 	Yes 	Yes 	On 'Banned Residents' list for all test parcels
UserH 	Group member, >18, no PIOF 	Yes 	No 	Yes 	None
UserI 	Joe Nobody, >18, no PIOF 	No 	No 	Yes 	None
UserJ 	Group member, <18, no PIOF 	Yes 	No 	No 	None
UserK 	Joe Nobody, <18, no PIOF 	No 	No 	No 	None
UserL 	Group member, <18, PIOF 	Yes 	Yes 	No 	None
UserM 	Joe Nobody, <18, PIOF 	No 	Yes 	No 	None
UserN 	Group member, <18, no PIOF, but on allowed list	Yes 	No 	No 	On 'Allowed Residents' list for all test parcels
UserO 	Joe Nobody, <18, no PIOF, but on allowed list 	No 	No 	No 	On 'Allowed Residents' list for all test parcels
 
== Parcel Setup ==
*If you are testing on Aditi you can use the region ParcelAccessTest as the reference region to see how yours should look 
**Make sure the estate your region is in allows public access 
**Set the region maturity to General 
**Starting from a corner, subdivide the region into a parcel that runs the length of the region, and about 2/3 the width 
**Name the smaller parcel "Main Parcel" 
**Sell this parcel to a user who is neither your god user, nor an estate manager. Call this user UserC 
**Have UserC subdivide the larger parcel according to the instructions below: 
**'Parcel 1' is in the corner you started from 
**'Parcel 2' through 'Parcel 10' are along the long edge of the region, in numerical order 
**'Parcel 11' through 'Parcel 13' are along the short edge of the sim, with 11 adjacent to 10, in numerical order 
**Optionally each parcel can contain a box with floating text, indicating the parcel name 
**Add accounts used for UserF and UserG to each test parcel's ban list 
**Add accounts used for UserN and UserO to each test parcel's allowed list 
**Sell passes to anyone for L$1 for an hour on parcels 3 and 6
=== Parcel configuration table ===
Parcel access configuration number	Description 	Custom parcel group (group!='none')	Allow public access'	Restrict access by PIOF	Restrict access by over 18	Allow group access'	'Sell passes to' enabled
1 	Minimal access, no group set 	No 	No 	N/A 	N/A 	No 	No
2 	Minimal access, group set 	Yes 	No 	N/A 	N/A 	No 	No
3 	Minimal access, but sell passes 	Yes 	No 	N/A 	N/A 	No 	Yes, Anyone
4 	Access restricted to group=none 	No 	No 	N/A 	N/A 	Yes 	No
5 	Access restricted to group=custom group 	Yes 	No 	N/A 	N/A 	Yes 	No
6 	Access restricted to group=custom group, or pass buyers 	Yes 	No 	N/A 	N/A 	Yes 	Yes, Anyone
7 	Public access, limit by PIOF 	Yes 	Yes 	Yes 	No 	No 	N/A
8 	Public access, limit by PIOF *or* group membership 	Yes 	Yes 	Yes 	No 	Yes 	N/A
9 	Public access, limit by over 18 	Yes 	Yes 	No 	Yes 	No 	N/A
10 	Public access, limit by over 18 *or* group membership 	Yes 	Yes 	No 	Yes 	Yes 	N/A
11 	Public access, limit by over 18 and PIOF 	Yes 	Yes 	Yes 	Yes 	No 	N/A
12 	Public access, limit by (over 18 and PIOF) *or* group membership	Yes 	Yes 	Yes 	Yes 	Yes 	N/A
13 	Fully public access (aside from explicit bans) 	Yes 	Yes 	No 	No 	N/A 	N/A
= Verify Basic Access Logic =
Once #Setup is complete, you can test parcel access. 
*For each of the users shown in #Expected_Access_Results, do the following:
#Login as the user to the test region 
#Try to move into each of the test parcels, and note whether access behaves as denoted in the #Expected_Access_Results table 
#*'Yes' and 'Yes (free)' mean that access is permitted automatically - the user can enter the parcel without any special effort. 
#*'No' means that access is blocked. 
#*'Skip' means that you can skip this case, since it's meaningless. This is used for the parcels with group set to 'None', in the 'Group members' case, as a 'Group member' is the same as 'Joe Nobody' here. 
#*'With Pass' means that the user cannot enter automatically, but is prompted to buy a pass when he tries to enter the parcel. If the user agrees to buy a pass for the stated price, they should be able to enter the parcel (until the pass expires).
== Expected Access Results ==
Test User	User Description 	Parcel 1	Parcel 2	Parcel 3 	Parcel 4	Parcel 5	Parcel 6 	Parcel 7	Parcel 8	Parcel 9	Parcel 10	Parcel 11	Parcel 12	Parcel 13
UserA 	God 	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserB 	Estate manager 	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserC 	Parcel owner 	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserD 	Group member, >18 and PIOF 	Skip 	No 	With Pass 	Skip 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserE 	Joe Nobody, >18 and PIOF 	No 	No 	With Pass 	No 	No 	With Pass 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserF 	Group member, >18 and PIOF, but banned 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No
UserG 	Joe Nobody, >18 and PIOF, but banned 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No 	No
UserH 	Group member, >18, no PIOF 	Skip 	No 	With Pass 	Skip 	Yes 	Yes (free)	No 	Yes 	Yes 	Yes 	No 	Yes 	Yes
UserI 	Joe Nobody, >18, no PIOF 	No 	No 	With Pass 	No 	No 	With Pass 	No 	No 	Yes 	Yes 	No 	No 	Yes
UserJ 	Group member, <18, no PIOF 	Skip 	No 	With Pass 	Skip 	Yes 	Yes (free)	No 	Yes 	No 	Yes 	No 	Yes 	Yes
UserK 	Joe Nobody, <18, no PIOF 	No 	No 	With Pass 	No 	No 	With Pass 	No 	No 	No 	No 	No 	No 	Yes
UserL 	Group member, <18, PIOF 	Skip 	No 	With Pass 	Skip 	Yes 	Yes (free)	Yes 	Yes 	No 	Yes 	No 	Yes 	Yes
UserM 	Joe Nobody, <18, PIOF 	No 	No 	With Pass 	No 	No 	With Pass 	Yes 	Yes 	No 	No 	No 	No 	Yes
UserN 	Group member, <18, no PIOF, but on allowed list	Skip 	Yes 	Yes (free)	Skip 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes
UserO 	Joe Nobody, <18, no PIOF, but on allowed list 	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes (free)	Yes 	Yes 	Yes 	Yes 	Yes 	Yes 	Yes