open testing document
check for fails in programatic testing out put
Programmatic Testing:
Include OoPoint and its dependancies in the test docs header
Check OoPoint() is exists by calling typeof(), should return object
Declear a test instance of OoPoint:
Name test intance Tester with .funSetNameOnce() and call .Initialise()
Check the instance exists in rayOO and is object with funGetObjectByName() and typeof().
Compare the declared instance with that returned by funGetObjectByName() they should be identical.
Inside a try/catch statement attempt to get the three axis properties of the test instance this should error.
Set a point with funSetPoint, one value negative
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
call .Destroy(), tester should longer exist in rayOO.
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.
Link to Feature List: #16
1 Testing Method:
open testing document check for fails in programatic testing out put
https://github.com/DanielBullimore/OOmutiny/blob/master/testing/0.1/0.1.Point%20Testing.html
2 Pass Criteria
2.1 Security, Accessibility & Visibility:
2.1.1. The objects three properties are private and can only be access from inside the class
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
All methods of OoPoint are public
2.2 Interface & display:
2.2.1. This class does not render, only testing out put will be displayed
2.2.2. The results of testing OoPoint will be visible.
-
2.3 Persistent Memory:
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.
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.
-
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.