เรียกใช้การทดสอบเครื่องมือวัดจาก APK ที่มีอยู่

คำแนะนำเหล่านี้ถือว่าคุณมีแพ็คเกจ Trade Federation พร้อมใช้งานในพื้นที่ หากไม่มี ให้ทำตามคำแนะนำในการดาวน์โหลด เพื่อรับ

จากนั้นใช้คำสั่งต่อไปนี้เพื่อติดตั้ง APK ของการทดสอบเครื่องมือ ดำเนินการทดสอบ และแสดงการทดสอบที่กำลังทำงานอยู่:

./tradefed.sh run instrumentations --apk-path <path of your apk>

ด้วยผลลัพธ์ที่คล้ายกัน:

07-17 10:55:32 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testOfArgb
07-17 10:55:33 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testIsRunning
07-17 10:55:34 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testGetCurrentPlayTime
07-17 10:55:35 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testStartDelay
07-17 10:55:35 I/InvocationToJUnitResultForwarder: Run ended in 2m 20s

คุณสามารถเลือกระบุ --serial <device serial number> เพื่อรันกับอุปกรณ์ที่กำหนด สามารถรับหมายเลขซีเรียลของอุปกรณ์ได้โดยใช้ adb devices

ดู ส่วนการทดสอบผ่าน Tradefed สำหรับรายละเอียดเพิ่มเติมเกี่ยวกับการดำเนินการของ Tradefed

,

คำแนะนำเหล่านี้ถือว่าคุณมีแพ็คเกจ Trade Federation พร้อมใช้งานในพื้นที่ หากไม่มี ให้ทำตามคำแนะนำในการดาวน์โหลด เพื่อรับ

จากนั้นใช้คำสั่งต่อไปนี้เพื่อติดตั้ง APK ของการทดสอบเครื่องมือ ดำเนินการทดสอบ และแสดงการทดสอบที่กำลังทำงานอยู่:

./tradefed.sh run instrumentations --apk-path <path of your apk>

ด้วยผลลัพธ์ที่คล้ายกัน:

07-17 10:55:32 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testOfArgb
07-17 10:55:33 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testIsRunning
07-17 10:55:34 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testGetCurrentPlayTime
07-17 10:55:35 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testStartDelay
07-17 10:55:35 I/InvocationToJUnitResultForwarder: Run ended in 2m 20s

คุณสามารถเลือกระบุ --serial <device serial number> เพื่อรันกับอุปกรณ์ที่กำหนด สามารถรับหมายเลขซีเรียลของอุปกรณ์ได้โดยใช้ adb devices

ดู ส่วนการทดสอบผ่าน Tradefed สำหรับรายละเอียดเพิ่มเติมเกี่ยวกับการดำเนินการของ Tradefed

,

คำแนะนำเหล่านี้ถือว่าคุณมีแพ็คเกจ Trade Federation พร้อมใช้งานในพื้นที่ หากไม่มี ให้ทำตามคำแนะนำในการดาวน์โหลด เพื่อรับ

จากนั้นใช้คำสั่งต่อไปนี้เพื่อติดตั้ง APK ของการทดสอบเครื่องมือ ดำเนินการทดสอบ และแสดงการทดสอบที่กำลังทำงานอยู่:

./tradefed.sh run instrumentations --apk-path <path of your apk>

ด้วยผลลัพธ์ที่คล้ายกัน:

07-17 10:55:32 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testOfArgb
07-17 10:55:33 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testIsRunning
07-17 10:55:34 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testGetCurrentPlayTime
07-17 10:55:35 D/InvocationToJUnitResultForwarder: Starting test: android.animation.cts.ValueAnimatorTest#testStartDelay
07-17 10:55:35 I/InvocationToJUnitResultForwarder: Run ended in 2m 20s

คุณสามารถเลือกระบุ --serial <device serial number> เพื่อรันกับอุปกรณ์ที่กำหนด สามารถรับหมายเลขซีเรียลของอุปกรณ์ได้โดยใช้ adb devices

ดู ส่วนการทดสอบผ่าน Tradefed สำหรับรายละเอียดเพิ่มเติมเกี่ยวกับการดำเนินการของ Tradefed