/// <summary> /// Translates List<DataType.TestCase> to DataType.TestCasesSummary string /// </summary> /// <param name="resultFolder">Test result folder, in which log is stored as txt</param> /// <param name="captureFolder">The path to the capture files need to be placed</param> /// <param name="results">The dictionary containing all the test case results</param> /// <returns>Returns detailed test cases information</returns> public string TestCasesString(string resultFolder, string captureFolder, ConcurrentDictionary <string, DataType.TestCaseDetail> results) { List <DataType.TestCase> testCaseList = GetTestCaseList(resultFolder, captureFolder, results); DataType.TestCasesSummary rs = new DataType.TestCasesSummary() { TestCases = testCaseList, TestCasesCategories = GetTestCaseCategortyList(testCaseList), TestCasesClasses = GetTestCaseClassList(testCaseList) }; return(serializer.Serialize(rs)); }
/// <summary> /// Translates List<DataType.TestCase> to DataType.TestCasesSummary string /// </summary> /// <param name="resultFolder">Test result folder, in which log is stored as txt</param> /// <param name="captureFolder">The path to the capture files need to be placed</param> /// <returns>Returns detailed test cases information</returns> public string TestCasesString(string resultFolder, string captureFolder) { List <DataType.TestCase> testCaseList = GetTestCaseList(resultFolder, captureFolder); DataType.TestCasesSummary rs = new DataType.TestCasesSummary() { TestCases = testCaseList, TestCasesCategories = GetTestCaseCategortyList(testCaseList), TestCasesClasses = GetTestCaseClassList(testCaseList) }; return(serializer.Serialize(rs)); }
/// <summary> /// Translates List<DataType.TestCase> to DataType.TestCasesSummary string /// </summary> /// <param name="resultFolder">Test result folder, in which log is stored as txt</param> /// <param name="captureFolder">The path to the capture files need to be placed</param> /// <returns>Returns detailed test cases information</returns> public string TestCasesString(string resultFolder, string captureFolder) { List<DataType.TestCase> testCaseList = GetTestCaseList(resultFolder, captureFolder); DataType.TestCasesSummary rs = new DataType.TestCasesSummary() { TestCases = testCaseList, TestCasesCategories = GetTestCaseCategortyList(testCaseList), TestCasesClasses = GetTestCaseClassList(testCaseList) }; return (serializer.Serialize(rs)); }