Beispiel #1
0
        private void btnShowCollectedData_Click(object sender, EventArgs e)
        {
            try
            {
                // Create Report info from inputted value on screen
                string[]   ignoreTestCase = txtIgnoreTestCase.Text.Split(new string[] { Environment.NewLine }, StringSplitOptions.RemoveEmptyEntries);
                ReportInfo report         = new ReportInfo()
                {
                    ResultPath         = txtPath.Text,
                    ReportType         = cbxReportType.SelectedValue.ToString(),
                    TestSuiteName      = txtTestSuite.Text,
                    IgnoreTestCaseList = ignoreTestCase,
                    FilterFile         = txtFilterFile.Text
                };

                // get data from reports
                var data = cldt.GetCollectedData(report);
                // show collected data into screen
                HistoryForm form = new HistoryForm(data);
                form.ShowDialog();
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }