コード例 #1
0
        private void TFSDefs_DropDown(object sender, EventArgs e)
        {
            TFSDefs.DataBindings.Clear();
            TFSDefs.Text = "";
            SortedDictionary <string, string> iBuilds = TFSFunctions.GetBuildDetails();

            TFSDefs.DataSource    = new BindingSource(iBuilds, null);
            TFSDefs.DisplayMember = "Key";
            TFSDefs.ValueMember   = "Value";
        }
コード例 #2
0
        private void TestStngs_DropDown(object sender, EventArgs e)
        {
            TestStngs.DataBindings.Clear();
            TestStngs.Text = "";
            SortedDictionary <string, string> tSettings = TFSFunctions.GetTestSettings();

            TestStngs.DataSource    = new BindingSource(tSettings, null);
            TestStngs.DisplayMember = "Key";
            TestStngs.ValueMember   = "Value";
        }
コード例 #3
0
        private void Builds_DropDown(object sender, EventArgs e)
        {
            Builds.DataBindings.Clear();
            Builds.Text = "";
            KeyValuePair <string, string>     tmpDict = (KeyValuePair <string, string>)TFSDefs.SelectedItem;
            SortedDictionary <string, string> iBuilds = TFSFunctions.GetBuilds(TFSProj.SelectedItem.ToString(), tmpDict.Key);

            Builds.DataSource    = new BindingSource(iBuilds, null);
            Builds.DisplayMember = "Key";
            Builds.ValueMember   = "Value";
        }
コード例 #4
0
        private void ExecuteSuite_Click(object sender, EventArgs e)
        {
            TCMParameters tcmParams = new TCMParameters();

            tcmParams.projectName = TFSProj.SelectedItem.ToString().Trim();
            tcmParams.definition  = GetKeyFromKeyValuePair(TFSDefs);
            tcmParams.collection  = XML.GetCollectionURL(TFSColls.SelectedItem.ToString().Trim());
            tcmParams.configId    = GetValueFromKeyValuePair(ConfigID);
            tcmParams.buildPath   = TFSFunctions.GetBuildPath(GetKeyFromKeyValuePair(Builds), tcmParams.projectName, tcmParams.definition);
            tcmParams.suiteId     = SuiteTextBox.Text.ToString().Trim();
            tcmParams.planId      = GetKeyFromKeyValuePair(TFSPln);
            tcmParams.runTitle    = "TCM Executor Suite/s Run " + DateTime.Now.ToString("MM-dd-yyyy hh:mm:ss tt");
            TCMFunctions.TCMSuiteExecutionCreateAndExecute(tcmParams);
        }
コード例 #5
0
 private void TFSPln_DropDown(object sender, EventArgs e)
 {
     TFSPln.DataBindings.Clear();
     TFSPln.Text = "";
     if (TFSColls.SelectedItem == null || TFSProj.SelectedItem == null)
     {
         TFSPln.Text = "Select Collection/Project";
     }
     else
     {
         TFSPln.DataSource = new BindingSource(TFSFunctions.GetTestPlans(TFSColls.SelectedItem.ToString(),
                                                                         TFSProj.SelectedItem.ToString()), null);
         TFSPln.DisplayMember = "Value";
         TFSPln.ValueMember   = "Key";
     }
 }
コード例 #6
0
 private void ConfigID_DropDown(object sender, EventArgs e)
 {
     ConfigID.DataBindings.Clear();
     if (TFSProj.SelectedItem == null || TFSProj.SelectedItem.ToString().Contains("Collection"))
     {
         ConfigID.Text = "Select the Project first";
     }
     else
     {
         ConfigID.DataSource = null;
         ConfigID.Text       = "";
         SortedDictionary <string, string> Configs = TFSFunctions.GetConfigurations();
         ConfigID.DataSource    = new BindingSource(Configs, null);
         ConfigID.DisplayMember = "Key";
         ConfigID.ValueMember   = "Value";
     }
 }
コード例 #7
0
 private void TFSProj_DropDown(object sender, EventArgs e)
 {
     TFSProj.Items.Clear();
     TFSProj.Text = "";
     if (TFSColls.SelectedItem == null)
     {
         TFSProj.Items.Add("Select Collection");
     }
     else
     {
         List <ProjectInfo> lPInfo = TFSFunctions.GetProjects(TFSColls.SelectedItem.ToString().Trim()).ToList();
         foreach (ProjectInfo prjInfo in lPInfo)
         {
             TFSProj.Items.Add(prjInfo.Name);
         }
     }
 }
コード例 #8
0
        private void SuiteViewer_Click(object sender, EventArgs e)
        {
            try
            {
                KeyValuePair <string, string> tmpDict1 = (KeyValuePair <string, string>)TFSPln.SelectedItem;
                //KeyValuePair<string, int> tmpDict2 = (KeyValuePair<string, int>)ConfigID.SelectedItem;
                SortedDictionary <string, string> sViewer = new SortedDictionary <string, string>();
                sViewer = TFSFunctions.GetAllSuites(tmpDict1.Key.ToString());//, tmpDict2.Value.ToString()

                sTable = new SuiteTable(sViewer, this);

                sTable.ShowDialog();
                SuiteTextBox.Text = sTable.MyString;
            }
            catch
            {
                MessageBox.Show("Please select mandatory values. Check for the combination of values.");
            }
        }
コード例 #9
0
        private void TestCaseViewer_Click(object sender, EventArgs e)
        {
            if (string.IsNullOrWhiteSpace(SuiteTextBox.Text))
            {
                MessageBox.Show("Please select Suites from where the Test Case is referred. " +
                                "Suite ID is neccessary to execute the test case and report to MTM accordingly");
            }
            else
            {
                KeyValuePair <string, string> tmpDict2 = (KeyValuePair <string, string>)TFSPln.SelectedItem;
                string suiteTB = SuiteTextBox.Text;

                SortedDictionary <string, string> tViewer = new SortedDictionary <string, string>();
                tViewer = TFSFunctions.GetAllTestCases(suiteTB, tmpDict2.Key.ToString());

                tTable = new TestCaseTable(tViewer, this);

                tTable.ShowDialog();

                TestCaseTextBox.Text = tTable.MyString;
            }
        }