private void PopulateCases(string input) { if (input == null) { OutputWindowScript.m_Instance.AddNewLine("No test case file specified"); m_TestCases = new string[1, 1]; return; } try { m_TestCases = TsvIo.TsvToTable(input); for (int c = 0; c < m_TestCases.GetLength(1); c++) { if (m_TestCases[0, c].Contains("Summary")) { m_SummaryIndex = c; } else if (m_TestCases[0, c].Contains("Steps")) { m_StepsIndex = c; } else if (m_TestCases[0, c].Contains("Expected")) { m_ExpectedResultIndex = c; } } AddResultsColumn(); } catch (FileNotFoundException) { OutputWindowScript.m_Instance.AddNewLine("{0} not found!", input); Debug.Log(input + " not found!"); m_TestCases = new string[1, 1]; } }
void OnApplicationQuit() { TsvIo.WriteResults(OutputFilePath, m_TestCases); }