Table of Contents for this article
01. Test_Report Description
02, Test_Report function description
1.test_init
ReportName: HTML name of the report | |
Other values: function execution failed | |
Test_init(&Handle , "testReport"). |
2.test_title
testgroup:: name of test case group testcase: name of the test case image: test environment picture, can be any picture, can be empty Testpurpose: the purpose of the test and the test reference standard, string, separated by commas, can be empty | |
Other values: function execution failed | |
s32 ret = Test_init(&Handle , "testReport"); if(ret == 0) { test_title(Handle , "testgroup1", "testcase1", "", ""); } |
3.test_step
teststep: test step Description:Step description, can be separated by English commas, to enter the desired results and actual results | |
Other values: function execution failed | |
s32 ret = Test_init(&Handle , "testReport"); if(ret == 0) { test_title(Handle , "testgroup1", "testcase1", "", ""); test_step(Handle, "1", "Starting to power up, powering up successfully, powering up successfully");; } |
4.test_pass
teststep: test step Description:Step Description | |
Other values: function execution failed | |
s32 ret = Test_init(&Handle , "testReport"); if(ret == 0) { test_title(Handle , "testgroup1", "testcase1", "", ""); test_step(Handle, "1", "Starting to power up, powering up successfully, powering up successfully");; test_pass((Handle, "1", "Starting to power up"). } |
5.test_fail
teststep: test step Description:Step Description | |
Other values: function execution failed | |
s32 ret = Test_init(&Handle , "testReport"); if(ret == 0) { test_title(Handle , "testgroup1", "testcase1", "", ""); test_step(Handle, "1", "Starting to power up, powering up successfully, powering up successfully");; test_fail(Handle, "1", "Power-up failure"); } |
6.test_final
Other values: function execution failed | |
s32 ret = Test_init(&Handle , "testReport"); if(ret == 0) { test_title(Handle , "testgroup1", "testcase1", "", ""); test_step(Handle, "1", "Starting to power up, powering up successfully, powering up successfully");; test_fail(Handle, "1", "Power-up failure"); test_final(Handle). } |