MergeStrategy
  public
  
  final
  
  enum
  MergeStrategy
  
  
  
  
    extends Enum<MergeStrategy>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | java.lang.Enum<com.android.tradefed.retry.MergeStrategy> | |
| ↳ | com.android.tradefed.retry.MergeStrategy | |
Describes how the results should be aggregated when multiple attempts are present.
Summary
Enum values | |
|---|---|
MergeStrategy  | 
    
      ANY_FAIL_IS_FAIL
      If a single run or test cases is failed, status will be failed no matter what.  | 
  
MergeStrategy  | 
    
      ANY_PASS_IS_PASS
      If a single run or test cases is a pass we will consider the merged results passed.  | 
  
MergeStrategy  | 
    
      NO_MERGE
      Merging should not be applied and will throw an exception.  | 
  
MergeStrategy  | 
    
      ONE_TESTCASE_PASS_IS_PASS
      If a single test case pass then we will consider the merged result passed.  | 
  
MergeStrategy  | 
    
      ONE_TESTRUN_PASS_IS_PASS
      If a single test run pass then we will consider the merged run result passed.  | 
  
Public methods | |
|---|---|
        
        
        static
        
        
        MergeStrategy
     | 
  
    
      
      getMergeStrategy(RetryStrategy retryStrategy)
      
      
        Create a merge strategy based on the retry strategy.  | 
  
        
        
        static
        
        
        MergeStrategy
     | 
  
    
      
      valueOf(String name)
      
      
     | 
  
        
        
        static
        final
        
        MergeStrategy[]
     | 
  
    
      
      values()
      
      
     | 
  
Enum values
ANY_FAIL_IS_FAIL
public static final MergeStrategy ANY_FAIL_IS_FAIL
If a single run or test cases is failed, status will be failed no matter what.
ANY_PASS_IS_PASS
public static final MergeStrategy ANY_PASS_IS_PASS
If a single run or test cases is a pass we will consider the merged results passed.
NO_MERGE
public static final MergeStrategy NO_MERGE
Merging should not be applied and will throw an exception.
ONE_TESTCASE_PASS_IS_PASS
public static final MergeStrategy ONE_TESTCASE_PASS_IS_PASS
If a single test case pass then we will consider the merged result passed.
ONE_TESTRUN_PASS_IS_PASS
public static final MergeStrategy ONE_TESTRUN_PASS_IS_PASS
If a single test run pass then we will consider the merged run result passed.
Public methods
getMergeStrategy
public static MergeStrategy getMergeStrategy (RetryStrategy retryStrategy)
Create a merge strategy based on the retry strategy.
| Parameters | |
|---|---|
retryStrategy | 
        
          RetryStrategy  | 
      
| Returns | |
|---|---|
MergeStrategy | 
        |
valueOf
public static MergeStrategy valueOf (String name)
| Parameters | |
|---|---|
name | 
        
          String  | 
      
| Returns | |
|---|---|
MergeStrategy | 
        |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-04-28 UTC.