DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Start()

static void AutotestRunner::Start ( )
inlinestaticprivate

См. определение в файле AutotestRunner.c строка 19

20 {
21 if (m_IsRunning)
22 {
23 ErrorEx("TestAutotest already running!");
24 return;
25 }
26
27 AutoTestFixture.SetWorldName();
28
29 // Enabled suites from JSON config provided on CLI (autotest param)
30 set<string> enabledSuites = new set<string>();
31 enabledSuites = AutotestConfigHandler.GetSuites();
32
33 // Iterate through all suites and activate 'enabled' ones (list to be provided by config?)
34 int numSuites = TestHarness.GetNSuites();
35 if (numSuites == 0)
36 {
37 AutoTestFixture.LogRPT("No TestSuites to run.");
38 m_IsDone = true;
39 return;
40 }
41
42 for (int i = 0; i < numSuites; ++i)
43 {
44 TestSuite suite = TestHarness.GetSuite(i);
45 bool isEnabled = enabledSuites.Find(suite.GetName()) != -1 && suite.IsEnabled();
46 suite.SetEnabled(isEnabled);
47 //AutoTestFixture.LogRPT(string.Format("Suite '%1' activation state set to: %2", suite.GetName(), isEnabled));
48 }
49
50 // Start running active TestSuite
51 m_IsRunning = true;
52 TestHarness.Begin();
53 }
static bool m_IsRunning
Определения AutotestRunner.c:6
static bool m_IsDone
Определения AutotestRunner.c:7
enum ShapeType ErrorEx

Перекрестные ссылки TestHarness::Begin(), ErrorEx, TestHarness::GetNSuites(), TestHarness::GetSuite(), AutotestConfigHandler::GetSuites(), AutoTestFixture::LogRPT(), m_IsDone, m_IsRunning и AutoTestFixture::SetWorldName().

Используется в MissionBase::TickScheduler().