先给出一个脚本例子:
START_TESTCASE TC1308200809_ACTIVE
START_TEST_BLOCK 100 YinSymbianTestServer yinexample.ini
CREATE_OBJECT HeapWatcherWrapper heap
CREATE_OBJECT YinExampleWrapper2 wrapper2
COMMAND heap mark
COMMAND wrapper2 NewL
COMMAND wrapper2 Initialize
COMMAND wrapper2 ActivateActiveObject
OUTSTANDING
COMMAND wrapper2 PrintInfo
COMMAND wrapper2 Clean
COMMAND heap markend
END_TEST_BLOCK
END_TESTCASE TC1308200809_ACTIVE
这个脚本执行结果:
09:36:56:705
09:36:56:705 TEST SYNOPSIS: TEF Version : 3.0.1003 START_TESTCASE COUNT : 1 START_TEST_BLOCK COUNT : 1 *** TestExecute Started 02/04/2009 09:36:56:705 *** 09:36:56:710 c:\yintest\yinutils.script LOAD_SERVER YinSymbianTestServer 09:36:56:785 c:\yintest\yinutils.script START_TESTCASE TC1308200809_ACTIVE 09:36:56:790 c:\yintest\yinutils.script Line = 30 Command = START_TESTCASE TC1308200809_ACTIVE 09:36:56:790 c:\yintest\yinutils.script START_TEST_BLOCK 100 YinSymbianTestServer c:\yintest\yinexample.ini 09:36:56:790 c:\yintest\yinutils.script Line = 31 Command = START_TEST_BLOCK 100 YinSymbianTestServer c:\yintest\yinexample.ini ***Result = PASS 09:36:56:790 INFO - 36 YinSymbianTestServer.cpp 55 CreateTestBlock>>>>>>>>> 09:36:56:790 INFO - 36 YinSymbianTestServer.cpp 65 CreateTestBlock<<<<<<<<<<< 09:36:56:796 INFO - 36 TestBlockController.cpp 134 Creating a local active scheduler. 09:36:56:796 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini heap name CheckMemoryLack 09:36:56:796 INFO - 36 YinExampleBlockController.cpp 30 CreateDataL>>>>>>>> 09:36:56:796 INFO - 36 YinExampleBlockController.cpp 34 Create hewp watcher 09:36:56:796 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:796 INFO - 36 YinExampleBlockController.cpp 30 CreateDataL>>>>>>>> 09:36:56:796 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini heap name CheckMemoryLack 09:36:56:801 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:801 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:801 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:801 INFO - 36 YinExampleWrapper2.cpp 176 [***Mark.Yin***]CTEFIntegrationTestWrapper::RunL 09:36:56:812 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:812 INFO - 36 YinExampleWrapper2.cpp 94 [***Mark.Yin***] current value=1 09:36:56:812 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini wrapper2 name TestWrapper2 09:36:56:812 INFO - 36 TestStepBase.Cpp 249 INI READ : c:\yintest\yinexample.ini heap name CheckMemoryLack 09:36:56:812 CREATE_OBJECT HeapWatcherWrapper heap ***Result = PASS 09:36:56:812 CREATE_OBJECT YinExampleWrapper2 wrapper2 ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 heap mark ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 wrapper2 NewL ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 wrapper2 Initialize ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 wrapper2 ActivateActiveObject ***Result = PASS 09:36:56:812 OUTSTANDING 0 ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 wrapper2 PrintInfo ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 wrapper2 Clean ***Result = PASS 09:36:56:812 COMMAND !Error=0 !AsyncError=0 heap markend ***Result = PASS 09:36:56:817 c:\yintest\yinutils.script Line = 42 Command = END_TEST_BLOCK ***Result = PASS 09:36:56:822 c:\yintest\yinutils.script END_TESTCASE TC1308200809_ACTIVE 09:36:56:822 c:\yintest\yinutils.script Line = 43 Command = END_TESTCASE TC1308200809_ACTIVE ***TestCaseResult = PASS 09:36:56:827 TEST STEP SUMMARY: 09:36:56:827 INFO - 35 YinSymbianTestServer.cpp 44 ~CYinSymbianTestServer 09:36:56:827 PASS = 1 09:36:56:827 FAIL = 0 09:36:56:827 ABORT = 0 09:36:56:827 PANIC = 0 09:36:56:827 INCONCLUSIVE = 0 09:36:56:827 UNKNOWN = 0 09:36:56:827 UNEXECUTED = 0 09:36:56:827 COMMENTED OUT COMMAND'S = 8 09:36:56:827 TEST CASE SUMMARY: 09:36:56:827 PASS = 1 09:36:56:827 FAIL = 0 09:36:56:832 INCONCLUSIVE = 0 09:36:56:832
0 comments:
Post a Comment