function name<\/strong><\/section><\/section><\/td>s32 test_init(const pnative_int Handle, const char* ReportName)<\/section><\/section><\/td><\/tr>Function<\/strong><\/section><\/section><\/td>Initialize the test report generator and specify the name of the generated HTML report<\/section><\/section><\/td><\/tr>call location<\/strong><\/section><\/section><\/td>You need to call this function to initialize before executing other functions.<\/section><\/section><\/td><\/tr>Input parameter<\/strong><\/section><\/section><\/td>Handle :Handle to the test report ReportName: HTML name of the report<\/p><\/section><\/section><\/td><\/tr> Return value<\/strong><\/section><\/section><\/td>==0: function executed successfully Other values: function execution failed<\/p><\/section><\/section><\/td><\/tr> Typical example<\/strong><\/section><\/section><\/td>native_int Handle = 0; Test_init(&Handle , \"testReport\").<\/p><\/section><\/section><\/td><\/tr><\/tbody><\/table><\/section><\/section><\/section>2.<\/strong><\/em>test_title<\/strong><\/h3><\/section><\/section><\/section><\/section><\/section><\/section><\/section>function name<\/strong><\/section><\/section><\/td>s32 test_title(const native_int Handle, const char* testgroup, const char* testcase, const char* image, const char* testpurpose)<\/section><\/section><\/td><\/tr>Function<\/strong><\/section><\/section><\/td>Enter the test case group to which the current test case belongs, the name of the test case, and related information.<\/section><\/section><\/td><\/tr>call location<\/strong><\/section><\/section><\/td>Called before the start of each test case, this function is used to identify the test case group, test case name, and can be imported into the test environment picture and the purpose of the test and reference standards<\/section><\/section><\/td><\/tr>Input parameter<\/strong><\/section><\/section><\/td>Handle : Handle to the test report testgroup:: name of test case group<\/p> testcase: name of the test case<\/p> image: test environment picture, can be any picture, can be empty<\/p> Testpurpose: the purpose of the test and the test reference standard, string, separated by commas, can be empty<\/p><\/section><\/section><\/td><\/tr> Return value<\/strong><\/section><\/section><\/td>==0: function executed successfully Other values: function execution failed<\/p><\/section><\/section><\/td><\/tr> Typical example<\/strong><\/section><\/section><\/td>native_int Handle = 0; s32 ret = Test_init(&Handle , \"testReport\");<\/p> if(ret == 0)<\/p> {<\/p> test_title(Handle , \"testgroup1\", \"testcase1\", \"\", \"\");<\/p> }<\/p><\/section><\/section><\/td><\/tr><\/tbody><\/table><\/section><\/section><\/section>3.<\/strong><\/em>test_step<\/strong><\/h3><\/section><\/section><\/section><\/section><\/section><\/section><\/section>function name<\/strong><\/section><\/section><\/td>s32 test_step(const native_int Handle, const char* teststep, const char* Description)<\/section><\/section><\/td><\/tr>Function<\/strong><\/section><\/section><\/td>Specific steps and descriptions for documenting test cases<\/section><\/section><\/td><\/tr>call location<\/strong><\/section><\/section><\/td>Called after the test_title function for each test case.<\/section><\/section><\/td><\/tr>Input parameter<\/strong><\/section><\/section><\/td>Handle :Handle to the test report teststep: test step<\/p> Description:Step description, can be separated by English commas, to enter the desired results and actual results<\/p><\/section><\/section><\/td><\/tr> Return value<\/strong><\/section><\/section><\/td>==0: function executed successfully Other values: function execution failed<\/p><\/section><\/section><\/td><\/tr> Typical example<\/strong><\/section><\/section><\/td>native_int Handle = 0; s32 ret = Test_init(&Handle , \"testReport\");<\/p> if(ret == 0)<\/p> {<\/p> test_title(Handle , \"testgroup1\", \"testcase1\", \"\", \"\");<\/p> test_step(Handle, \"1\", \"Starting to power up, powering up successfully, powering up successfully\");;<\/p> }<\/p><\/section><\/section><\/td><\/tr><\/tbody><\/table><\/section><\/section><\/section>4.<\/strong><\/em>test_pass<\/strong><\/h3><\/section><\/section><\/section><\/section><\/section><\/section><\/section>function name<\/strong><\/section><\/section><\/td>s32 test_pass(const native_int Handle, const char* teststep, const char* Description)<\/section><\/section><\/td><\/tr> | |
| | | | | | | | | | | |
| | | | | | | | | | | |
| | | | | | | | | | | |