SnapDragonfly / SnapAirUnitTest

1 stars 0 forks source link

Code framework for autotest #4

Open lida2003 opened 1 year ago

lida2003 commented 1 year ago

Origin Cause:

a) Python programming API need to be checked b) Scratch visual programming is based on Python programming API(Which actually is a UDP protocol) c) Test tool for UDP API is needed d) Python is a great choice from evey aspect of software, and which is platform independent e) Test is always the key of production.

Ref: [1] Tello Function List for python API #17

Features:

a) [sequencially] test one by one case with a pause and manual confirmation -- run one test case, API return check for command send -- wait for result input -- input pass/fail confirmation manually b) [sequencially] test one by one case sequencially with a pause and without manual confirmation -- run one test case, API return check for command send -- wait for any key input and continue testing c) [sequencially] test one by one case sequencially without a pause -- API return check for command send -- check if there is any response d) [randomly] test one by one case sequencially with a pause and manual confirmation -- run one test case, API return check for command send -- wait for result input -- input pass/fail confirmation manually e) [randomly] test one by one case sequencially with a pause and without manual confirmation -- run one test case, API return check for command send -- wait for any key input and continue testing f) [randomly] test one by one case sequencially without a pause -- API return check for command send -- check if there is any response g) support test report -- HTTP format??? -- including test configurations: with/without pause, manual confirmation or api return check, pass/fail, test case number, description, sequencially or randomly

Steps:

a) check if requirements is clear enough ==> discuss b) decide if more issues should be opened ==> discuss, how many issues suggested? c) detailed python test unit software design elements???? what tech-nouns used?

Note: Mandatory (NOT all) steps required for this specific issue to complete.

lida2003 commented 1 year ago

Python UnitTest might be a choise.

lida2003 commented 1 year ago

It seems there is no test manpower, just delay for a while.

lida2003 commented 1 year ago

Add stub tests. please confirm before commit code.