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 ()

傳回此呼叫的IBuildInfo

IRunUtil getRunUtil ()

返回運行單元測試的IRunUtil

公共構造函數

PythonUnitTestRunner

public PythonUnitTestRunner ()

公共方法

跑步

public void run (TestInformation testInfo, 
                ITestInvocationListener listener)

運行測試,並將結果報告給偵聽器。

參數
testInfo TestInformationTestInformation物件包含執行測試的有用資訊。

listener ITestInvocationListener :測試結果的ITestInvocationListener

投擲
DeviceNotAvailableException

設定建置

public void setBuild (IBuildInfo buildInfo)

參數
buildInfo IBuildInfo

受保護的方法

檢查Python版本

protected void checkPythonVersion (CommandResult c)

參數
c CommandResult

獲取構建

protected IBuildInfo getBuild ()

傳回此呼叫的IBuildInfo

退貨
IBuildInfo

取得運行工具

protected IRunUtil getRunUtil ()

返回運行單元測試的IRunUtil

退貨
IRunUtil