4sealed
class SCR_Example1Subject
16 override ResourceName GetWorldFile()
18 return SCR_AutotestHelper.GetDefaultWorld();
22[
Test(suite: SCR_TEST_Example1SubjectSuite)]
29 int m_iExecutedTimes = 0;
48 SetResult(SCR_AutotestResult.AsSuccess());
56 PrintFormat(
"TearDown: %1, was executed %2 times since game start",
GetName(), m_iExecutedTimes.ToString());
60[
Test(suite: SCR_TEST_Example1SubjectSuite)]
66 SCR_Example1Subject subject =
new SCR_Example1Subject();
67 int result = subject.GetFive();
69 Print(
"Lets see if GetFive() returns five...");
73 SetResult(SCR_AutotestResult.AsSuccess());
77 SetResult(SCR_AutotestResult.AsFailure(
"Expected 5, got %1", result.ToString()));
82 AssertTrue(result == 5,
"Result is five");
88[
Test(suite: SCR_TEST_Example1SubjectSuite, timeoutMs: 10)]
94 PrintOnce(
"Waiting for timeout");
99[
Test(suite: SCR_TEST_Example1SubjectSuite)]
bool Execute(notnull SCR_AIGroupUtilityComponent groupUtility, vector targetPosition, SCR_AIActivitySmokeCoverFeatureProperties smokeCoverProperties, notnull array< AIAgent > avoidAgents, notnull array< AIAgent > excludeAgents, int maxPositionCount=1, SCR_AIActivityBase contextActivity=null)
Attribute used for tests annotation and assignment to Suites.
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
proto void PrintFormat(string fmt, void param1=NULL, void param2=NULL, void param3=NULL, void param4=NULL, void param5=NULL, void param6=NULL, void param7=NULL, void param8=NULL, void param9=NULL, LogLevel level=LogLevel.NORMAL)