23 ErrorEx(
"TestAutotest already running!");
30 set<string> enabledSuites =
new set<string>();
42 for (
int i = 0; i < numSuites; ++i)
45 bool isEnabled = enabledSuites.Find(suite.GetName()) != -1 && suite.IsEnabled();
46 suite.SetEnabled(isEnabled);
98 void CustomResult(
bool success,
string text =
"User provided error!",
string kind =
"Failure")
class AutotestRunner m_Success
void CustomResult(bool success, string text="User provided error!", string kind="Failure")
static void LogRPT(string message)
static void SetWorldName()
static bool SaveXMLReport(string data, out string errorMessage)
static set< string > GetSuites()
static void Update(float deltaTime)
proto static native bool Finished()
Returns true when all tests and suites finished.
proto static native TestSuite GetSuite(int handle)
Returns a test suite.
proto static native void End()
Finalizes the testing process.
proto static native int GetNSuites()
Returns number of test suites.
static proto string Report()
Generates a xml report.
proto static native bool Run()
proto static native void Begin()
Starts up the testing process and initializes the structures.
Collection and main interface of the Testing framework.
string FailureText()
Text used for xml report output.
TestBase Managed Failure()
Return true of the result means failure.
static proto string Format(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)
Gets n-th character from string.