필터링된 결과 전달자

public class FilteredResultForwarder
extends ResultForwarder

java.lang.Object
com.android.tradefed.result.ResultForwarder
com.android.tradefed.result.FilteredResultForwarder


TestDescription 의 허용 목록만 보고되도록 허용하는 ResultForwarder 의 변형입니다.

요약

공개 생성자

FilteredResultForwarder ( allowedTests, ITestInvocationListener... listeners) FilteredResultForwarder ( allowedTests, ITestInvocationListener... listeners)

공개 메소드

void testAssumptionFailure ( TestDescription test, FailureDescription failure)

원자 테스트에서 거짓 조건을 가정한다고 플래그를 지정할 때 호출됩니다.

void testAssumptionFailure ( TestDescription test, String trace)

원자 테스트에서 거짓 조건을 가정한다고 플래그를 지정할 때 호출됩니다.

void testEnded ( TestDescription test, testMetrics) testEnded ( TestDescription test, testMetrics)

개별 테스트 케이스의 실행 종료를 보고합니다.

void testEnded ( TestDescription test, long endTime, testMetrics) testEnded ( TestDescription test, long endTime, testMetrics)

종료 시간을 직접 지정할 수 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) 의 대안입니다.

void testFailed ( TestDescription test, FailureDescription failure)

개별 테스트 사례의 실패를 보고합니다.

void testFailed ( TestDescription test, String trace)

개별 테스트 사례의 실패를 보고합니다.

void testIgnored ( TestDescription test)

일반적으로 테스트 메서드에 org.junit.Ignore라는 주석이 달려 있기 때문에 테스트가 실행되지 않을 때 호출됩니다.

void testStarted ( TestDescription test, long startTime)

정확한 측정을 위해 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) 와 결합하여 테스트 시작 시기도 지정하는 testStarted(com.android.tradefed.result.TestDescription) 의 대안입니다. .

void testStarted ( TestDescription test)

개별 테스트 사례의 시작을 보고합니다.

공개 생성자

필터링된 결과 전달자

public FilteredResultForwarder ( allowedTests, 
                ITestInvocationListener... listeners)

매개변수
allowedTests

listeners ITestInvocationListener

공개 메소드

테스트가정실패

public void testAssumptionFailure (TestDescription test, 
                FailureDescription failure)

원자 테스트에서 거짓 조건을 가정한다고 플래그를 지정할 때 호출됩니다.

매개변수
test TestDescription : 테스트를 식별합니다.

failure FailureDescription : 실패와 해당 컨텍스트를 설명하는 FailureDescription .

테스트가정실패

public void testAssumptionFailure (TestDescription test, 
                String trace)

원자 테스트에서 거짓 조건을 가정한다고 플래그를 지정할 때 호출됩니다.

매개변수
test TestDescription : 테스트를 식별합니다.

trace String : 실패 스택 추적

테스트 종료됨

public void testEnded (TestDescription test, 
                 testMetrics)

개별 테스트 케이스의 실행 종료를 보고합니다.

testFailed(TestDescription, FailureDescription) 호출되지 않은 경우 이 테스트는 통과된 것입니다. 또한 테스트 사례 실행 중에 방출되었을 수 있는 모든 키/값 측정항목을 반환합니다.

매개변수
test TestDescription : 테스트를 식별합니다.

testMetrics : 내보낸 측정항목의 ERROR(/Map)

테스트 종료됨

public void testEnded (TestDescription test, 
                long endTime, 
                 testMetrics)

종료 시간을 직접 지정할 수 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,Map)) 의 대안입니다. 정확한 측정을 위해 testStarted(com.android.tradefed.result.TestDescription, long) 와 결합하세요.

매개변수
test TestDescription : 테스트를 식별합니다.

endTime long : System.currentTimeMillis() 통해 측정된 테스트 종료 시간

testMetrics : 내보낸 측정항목의 ERROR(/Map)

테스트 실패

public void testFailed (TestDescription test, 
                FailureDescription failure)

개별 테스트 사례의 실패를 보고합니다.

testStarted와 testEnded 사이에 호출됩니다.

매개변수
test TestDescription : 테스트를 식별합니다.

failure FailureDescription : 실패와 해당 컨텍스트를 설명하는 FailureDescription .

테스트 실패

public void testFailed (TestDescription test, 
                String trace)

개별 테스트 사례의 실패를 보고합니다.

testStarted와 testEnded 사이에 호출됩니다.

매개변수
test TestDescription : 테스트를 식별합니다.

trace String : 실패 스택 추적

테스트는 무시됨

public void testIgnored (TestDescription test)

일반적으로 테스트 메서드에 org.junit.Ignore라는 주석이 달려 있기 때문에 테스트가 실행되지 않을 때 호출됩니다.

매개변수
test TestDescription : 테스트를 식별합니다.

테스트시작됨

public void testStarted (TestDescription test, 
                long startTime)

정확한 측정을 위해 ERROR(/#testEnded(com.android.tradefed.result.TestDescription,long,Map)) 와 결합하여 테스트 시작 시기도 지정하는 testStarted(com.android.tradefed.result.TestDescription) 의 대안입니다. .

매개변수
test TestDescription : 테스트를 식별합니다.

startTime long : System.currentTimeMillis() 통해 측정된 테스트가 시작된 시간입니다.

테스트시작됨

public void testStarted (TestDescription test)

개별 테스트 사례의 시작을 보고합니다. 이전 인터페이스는 가능하면 testStarted(com.android.tradefed.result.TestDescription) 사용해야 합니다.

매개변수
test TestDescription : 테스트를 식별합니다.