UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FAutomationExpectedMessage Struct Reference

#include <AutomationTest.h>

Public Member Functions

 FAutomationExpectedMessage (FString &InMessagePattern, ELogVerbosity::Type InVerbosity, EAutomationExpectedMessageFlags::MatchType InCompareType, int32 InExpectedNumberOfOccurrences=1, bool IsRegex=true)
 
 FAutomationExpectedMessage (FString &InMessagePattern, ELogVerbosity::Type InVerbosity, int32 InExpectedNumberOfOccurrences)
 
bool IsRegex () const
 
bool IsExactCompareType () const
 
bool Matches (const FString &Message)
 Look if Message matches the expected message and increment internal counter if true.
 
bool operator== (const FAutomationExpectedMessage &Other) const
 
bool operator< (const FAutomationExpectedMessage &Other) const
 

Public Attributes

FString MessagePatternString
 
TOptional< FRegexPatternMessagePatternRegex
 
EAutomationExpectedMessageFlags::MatchType CompareType
 
int32 ExpectedNumberOfOccurrences
 
int32 ActualNumberOfOccurrences
 
ELogVerbosity::Type Verbosity
 

Constructor & Destructor Documentation

◆ FAutomationExpectedMessage() [1/2]

FAutomationExpectedMessage::FAutomationExpectedMessage ( FString &  InMessagePattern,
ELogVerbosity::Type  InVerbosity,
EAutomationExpectedMessageFlags::MatchType  InCompareType,
int32  InExpectedNumberOfOccurrences = 1,
bool  IsRegex = true 
)
inline

Constructor

◆ FAutomationExpectedMessage() [2/2]

FAutomationExpectedMessage::FAutomationExpectedMessage ( FString &  InMessagePattern,
ELogVerbosity::Type  InVerbosity,
int32  InExpectedNumberOfOccurrences 
)
inline

Member Function Documentation

◆ IsExactCompareType()

bool FAutomationExpectedMessage::IsExactCompareType ( ) const
inline

◆ IsRegex()

bool FAutomationExpectedMessage::IsRegex ( ) const
inline

◆ Matches()

bool FAutomationExpectedMessage::Matches ( const FString &  Message)
inline

Look if Message matches the expected message and increment internal counter if true.

Parameters
Message
Returns

◆ operator<()

bool FAutomationExpectedMessage::operator< ( const FAutomationExpectedMessage Other) const
inline

◆ operator==()

bool FAutomationExpectedMessage::operator== ( const FAutomationExpectedMessage Other) const
inline

Member Data Documentation

◆ ActualNumberOfOccurrences

int32 FAutomationExpectedMessage::ActualNumberOfOccurrences

◆ CompareType

EAutomationExpectedMessageFlags::MatchType FAutomationExpectedMessage::CompareType

◆ ExpectedNumberOfOccurrences

int32 FAutomationExpectedMessage::ExpectedNumberOfOccurrences

Number of occurrences expected for message. If set greater than 0, it will cause the test to fail if the exact number of occurrences expected is not matched. If set to 0, it will cause the test to fail if there were no occurrences at all. If negative, it will suppress all matching messages.

◆ MessagePatternRegex

TOptional<FRegexPattern> FAutomationExpectedMessage::MessagePatternRegex

◆ MessagePatternString

FString FAutomationExpectedMessage::MessagePatternString

◆ Verbosity

ELogVerbosity::Type FAutomationExpectedMessage::Verbosity

The documentation for this struct was generated from the following file: