PythonUnitTestRunner
public class PythonUnitTestRunner
extends Object
implements IRemoteTest , IBuildReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.PythonUnitTestRunner |
該類已被棄用。
請改用PythonBinaryHostTest
。
運行使用unittest庫編寫的Python測試。
概括
公共構造函數 | |
---|---|
PythonUnitTestRunner () |
公共方法 | |
---|---|
void | run ( TestInformation testInfo, ITestInvocationListener listener) 運行測試,並將結果報告給偵聽器。 |
void | setBuild ( IBuildInfo buildInfo) |
受保護的方法 | |
---|---|
void | checkPythonVersion ( CommandResult c) |
IBuildInfo | getBuild () 傳回此呼叫的 |
IRunUtil | getRunUtil () 返回運行單元測試的 |
公共構造函數
PythonUnitTestRunner
public PythonUnitTestRunner ()
公共方法
跑步
public void run (TestInformation testInfo, ITestInvocationListener listener)
運行測試,並將結果報告給偵聽器。
參數 | |
---|---|
testInfo | TestInformation : TestInformation 物件包含執行測試的有用資訊。 |
listener | ITestInvocationListener :測試結果的ITestInvocationListener |
投擲 | |
---|---|
DeviceNotAvailableException |