Package io.qameta.allure.core
Interface LaunchResults
public interface LaunchResults
Contains parsed results.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionReturns all test results, including hidden.Returns all attachments.<T> Optional<T>Returns extra info by given name.default <T> TShortcut forgetExtra(String).default Set<TestResult>Returns not hidden test results.
-
Method Details
-
getResults
Returns not hidden test results.- Returns:
- the results that are not hidden.
-
getAllResults
Set<TestResult> getAllResults()Returns all test results, including hidden.- Returns:
- all test results.
-
getAttachments
Map<Path,Attachment> getAttachments()Returns all attachments.- Returns:
- attachments.
-
getExtra
Returns extra info by given name.- Type Parameters:
T- the java type of extra block.- Parameters:
name- the name of extra block to return.- Returns:
- the found block or empty if not present.
-
getExtra
Shortcut forgetExtra(String). Returns default value instead of empty optional if block not present.- Type Parameters:
T- the java type of extra block.- Parameters:
name- the name of extra block to return.defaultValue- the supplier of default value.- Returns:
- the found block or default value.
-