• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# 使用说明
2
3## 测试用例说明
4> 本套测试代码,提供了3个用例
5
6<table>
7<thead>
8<tr>
9<th width="10%">标题</th>
10<th width="15%">用例名称</th>
11<th width="35%">测试步骤</th>
12<th width="40%">预期结果</th>
13</tr>
14</thead>
15<tbody>
16<tr>
17<td>用例1</td>
18<td>接口基本功能测试</td>
19<td>按默认条件编译出一个测试bin文件,放入设备运行,检查日志</td>
20<td>用例全部通过。并检查是否可搜到关键字:this is the first run of test after flash</td>
21</tr>
22<tr>
23<td>用例2</td>
24<td>数据重启可用测试</td>
25<td>用例1执行完后,重启设备,再次运行测试bin文件,检查日志</td>
26<td>用例全部通过。并检查是否可搜到关键字:this is not the first run of test after flash</td>
27</tr>
28<tr>
29<td>用例3</td>
30<td>token持久化测试</td>
31<td>
321、将设备恢复出厂<br/>
332、打开 TOKEN_PERSIST_TEST 宏(去注释BUILD.gn里面倒数第二行defines)进行编译,将新生成的测试bin文件放入设备,运行,检查日志
34</td>
35<td>用例全部通过。并检查是否可搜到关键字:this is the first run of test after flash</td>
36</tr>
37</tbody>
38</table>
39
40
41## 编译说明
42
43### 第一步
44当前路径BUILD.gn中修改include_dirs最后一行为oem_auth_config.hoem_auth_result_storage.h 实际所在路径。
45默认为:"//vendor/kitframework/include/"
46例如君正x2000的oem_auth_config.hoem_auth_result_storage.h可能要修改为:"//vendor/ingenic/smartpen/adapter/kitframework/include"
47
48### 第二步
49BUILD.gn中修改deps最后两行为oem_auth_config.aoem_auth_result_storage.a实际所在路径。
50例如君正x2000的oem_auth_config.hoem_auth_result_storage.h可能要修改为:
51"//vendor/ingenic/smartpen/adapter/kitframework:oem_auth_result_storage",
52"//vendor/ingenic/smartpen/adapter/kitframework:oem_auth_config",
53
54### 第三步
55输入:hb build -f -T //test/xts/acts/applications/kitframework_ipcamera:ActsKitFwkApiTest
56编译完成后可在out/bin目录找到ActsKitFwkApiTest.bin文件
57
58### 第四步
59放入设备,运行看日志