Test
This week our team tested our system, and we conducted the system performance tests, mainly the interface tests. Since we are doing the 2D game engine, we have a lot of interfaces and our group has tested our implemented interface division.
I mainly do is the motion this function module test, this module mainly realizes the picture movement, including the picture brightness change, the picture translation, the picture rotation, the picture scale, the Alpha mash animation. Our main use is the black box test method. Because we do not need to know the interface of the program, just need to know the function of the interface, change the parameters of the interface, test the interface can be implemented. We have boundary value analysis for some of the boundary parameters, such as: The luminance variation range is [0,255], so we tested the tests for 20 and 223. However, because our system has some features and not implemented, so in the test image scaling, Alpha mash animation is not able to test the results, for other functions I and the other members of the team were tested with win 7 and win 10, no bugs found. Here is the use case code for my test interface:
function Main ()
Setwindowsize (1024, 600);
Settitle ("Motion Test");
Graphload (1, "01010100.bmp");
--graphload (1, "01010103.bmp");
Graphsetdraw (1, 1);
--graphloadnode (1, 1, "01010100.bmp");
--graphloadnode (1, 2, "01010103.bmp");
Graphsetalpha (1, 10);
Motionalpha (1, 10, 211, 5000, 1, 1);--alpha animation of a layer, test result: no bug
--motionalphastop (1);--stop Alpha animation, test result: no bug
--motionalphatest (1);--Test whether in Alpha animation, test result: no bug
--motionanim (1, 5000, 1);--Test the frame sequence diagram in the playback layer, test result: no bug
--motionanimstop (1);--test test in animation, test result: no bug
--motionrotation (1, 5,180, 5000, 1, 1);--Test rotate a picture, test result: no bug
--motionrotationstop (1);--Test stop rotation, test result: no bug
--motionrotationtest (1);--Test whether in rotation, test result: no bug
--graphsetscale (1,1,1);
--motionscale (1, 1000, 1000, 5000, 5000, 5000, 1, 1);--Unable to scale
--motionscalestop (1);--Unable to test
--motionscaletest (1);--Unable to test
--motionzoom (1, 100, 1000, 5000, 1, 1);--Test scale, test result: no bug
--motionzoomstop (1);--Test stop proportional scaling, test result: no bug
--motionzoomtest (1); --Test whether in equal scale, test result: no bug
--motionpause (1, 0);--Pause or resume all animations of the layer, test results: No bugs
--motionmask (1, 10, 211, 5000, 1, 1);--Performing an alpha mask animation, unable to test
--motionmaskstop (1);--stop Alpha Mask animation, cannot test
--motionmaskpause (1);--Pause Alpha Mask animation, unable to test
--motionmasktest (1);--Test whether in an alpha mask animation, cannot test
End
Eighth time job