Arma Reforger Script API
Loading...
Searching...
No Matches
SCR_AutotestCaseBase Interface Reference

Base game test class. More...

Inheritance diagram for SCR_AutotestCaseBase:
SCR_TEST_Example1Subject_Counter_CountsToFive SCR_TEST_Example1Subject_GetFive_ReturnsFive SCR_TEST_Example1Subject_NoResultExample SCR_TEST_Example1Subject_TimeoutExample

Public Member Functions

TestResultBase AssertTrue (bool expression, string msg)
 Asserts that a boolean expression is true.
 
TestSuite GetSuite ()
 Get suite that owns the test.
 
void Print (string msg, LogLevel level=LogLevel.NORMAL)
 Prints content of variable to console/log and autotest/log.
 
void PrintFormat (string fmt, string param1="", string param2="", string param3="", LogLevel level=LogLevel.NORMAL)
 Prints formated text to console/log and autotest/log.
 
void PrintOnce (string msg, LogLevel level=LogLevel.NORMAL)
 Prints content of variable to console/log and autotest/log.
 

Detailed Description

Base game test class.

Provides integration with test specific logger for improved output.

Member Function Documentation

◆ AssertTrue()

TestResultBase SCR_AutotestCaseBase.AssertTrue ( bool expression,
string msg )

Asserts that a boolean expression is true.

Will set the test as failed with provided message otherwise. If the test is already failed the current result will be used.

◆ GetSuite()

TestSuite SCR_AutotestCaseBase.GetSuite ( )

Get suite that owns the test.

◆ Print()

void SCR_AutotestCaseBase.Print ( string msg,
LogLevel level = LogLevel::NORMAL )

Prints content of variable to console/log and autotest/log.

Shadows global Print to force the logs to go through SCR_AutotestPrinter.

◆ PrintFormat()

void SCR_AutotestCaseBase.PrintFormat ( string fmt,
string param1 = "",
string param2 = "",
string param3 = "",
LogLevel level = LogLevel::NORMAL )

Prints formated text to console/log and autotest/log.

Shadows global PrintFormat to force the logs to go through SCR_AutotestPrinter.

◆ PrintOnce()

void SCR_AutotestCaseBase.PrintOnce ( string msg,
LogLevel level = LogLevel::NORMAL )

Prints content of variable to console/log and autotest/log.

Repeated prints of the same message will be replaced with "collected" variant indicating how many times it was printed.


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