aboutsummaryrefslogtreecommitdiff
path: root/zh-cn/compatibility/tests/development/instrumentation.html
diff options
context:
space:
mode:
Diffstat (limited to 'zh-cn/compatibility/tests/development/instrumentation.html')
-rw-r--r--zh-cn/compatibility/tests/development/instrumentation.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/zh-cn/compatibility/tests/development/instrumentation.html b/zh-cn/compatibility/tests/development/instrumentation.html
index eb64df98..832a91cf 100644
--- a/zh-cn/compatibility/tests/development/instrumentation.html
+++ b/zh-cn/compatibility/tests/development/instrumentation.html
@@ -31,10 +31,10 @@
<h2 id="key_concepts">主要概念</h2>
<ul>
-<li>插桩必须在应用软件包中声明,并在应用软件包清单的 <code>&lt;manifest&gt;</code> 标记下嵌套 <a href="https://developer.android.com/guide/topics/manifest/instrumentation-element.html"><code>&lt;instrumentation&gt;</code></a> 标记。</li>
-<li>从技术层面来讲,应用软件包清单可以包含多个 <code>&lt;instrumentation&gt;</code> 标记,但通常不采用这种方式使用此清单。</li>
+<li>必须在应用软件包中声明插桩,方法是在应用软件包清单的 <code>&lt;manifest&gt;</code> 标记下嵌套 <a href="https://developer.android.com/guide/topics/manifest/instrumentation-element.html"><code>&lt;instrumentation&gt;</code></a> 标记。</li>
+<li>严格意义来讲,应用软件包清单可以包含多个 <code>&lt;instrumentation&gt;</code> 标记,但通常不这么做。</li>
<li>每个 <code>&lt;instrumentation&gt;</code> 必须包含:<ul>
-<li><code>android:name</code> 属性:它应该是测试应用中所包含 <a href="https://developer.android.com/reference/android/app/Instrumentation.html"><code>Instrumentation</code></a> 的子类的名称,它通常是正在使用的测试运行器,例如 <code>android.support.test.runner.AndroidJUnitRunner</code></li>
+<li><code>android:name</code> 属性:它应该是测试应用中所包含 <a href="https://developer.android.com/reference/android/app/Instrumentation.html"><code>Instrumentation</code></a> 的子类的名称,测试应用则通常是正在使用的测试运行器,例如 <code>android.support.test.runner.AndroidJUnitRunner</code></li>
<li>必须定义 <code>android:targetPackage</code> 属性。其值应该设置为接受测试的应用软件包。</li>
</ul></li>
</ul>