DanielBullimore / OOmutiny

OO Javascript frontend
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

Testing Plan 0.1.Point #36

Closed DanielBullimore closed 4 years ago

DanielBullimore commented 4 years ago

Link to Feature List: #16

1 Testing Method:

Manual / User Testing:

open testing document check for fails in programatic testing out put

Programmatic Testing:
  1. Include OoPoint and its dependancies in the test docs header
  2. Check OoPoint() is exists by calling typeof(), should return object
  3. Declear a test instance of OoPoint:
  4. Name test intance Tester with .funSetNameOnce() and call .Initialise()
  5. Check the instance exists in rayOO and is object with funGetObjectByName() and typeof().
  6. Compare the declared instance with that returned by funGetObjectByName() they should be identical.
  7. Inside a try/catch statement attempt to get the three axis properties of the test instance this should error.
  8. Set a point with funSetPoint, one value negative
  9. Retrive the point with funRay_GetPoint, should be exact to the values from previous step 10 .Retrive the points three axis values with funNum_GetX, FunNum_GetY and funNum_GetZ
  10. call .Destroy(), tester should longer exist in rayOO.

https://github.com/DanielBullimore/OOmutiny/blob/master/testing/0.1/0.1.Point%20Testing.html

2 Pass Criteria

2.1 Security, Accessibility & Visibility:

Pretest state:

2.1.1. The objects three properties are private and can only be access from inside the class

Post testing state:

2.1.2. The objects three axis propertys are private and can only be access from inside the class 2.1.3. The funNum_get* methods can all be called publicly as well as funSetPoint and funRay_GetPoint

Other/Notes:

All methods of OoPoint are public

2.2 Interface & display:

Pretest state:

2.2.1. This class does not render, only testing out put will be displayed

Post testing state:

2.2.2. The results of testing OoPoint will be visible.

Other/Notes:

-

2.3 Persistent Memory:

Pretest state:

2.3.1. OoPoint class exists in the javascript namespace. 2.3.2. An instance of OoPoint has been decleared an is type Object. 2.3.3. The number variables can not be accessed directly from outside the test instance.

Post testing state:

2.3.4. RayOO['OoPoin'][0] exists and is the test instance. 2.3.5. A new point has been set using funSetPoint. 2.3.6. That same point can be returned using funNum_GetPoint 2.3.7. The individual x y z axis values of that point can be returned using funNum_GetAxisX, funNum_GetAxisY, funNum_GetAxisZ. 2.3.8. The test instance can be deleted after which it isnt aviable in the javascript name space but OoPoint class is.

Other/Notes:

-

2.4 Restrictions:

2.4.1. All three properties of OoPoint must accept number type values only.

2.5 Exceptions:

2.4.2. Negative numbers are allowed.