Hi Zheng Xiaohui, 1st: Create a test module in the way the tutorial do 2nd: Add to the module a procedure that calls to your interactive program 3rd: Your program have to let the result you want to test in a shared object like a data area 4th: Access the data in this shared object from the test module and use it in an {assert, iEqual, etc} command. Hope this is isefull for you,