Exemplo n.º 1
0
 public Form1()
 {
     //for running processe/tests
     testrunnernostop = new TestrunnerNOstop();
     storedvalues = new List<string>();
     status = "unknown";
     error = ".";
     //test = ".";
     Serverreporter = new Report();
     CmdReader = new Readcmd();
     InitializeComponent();
     //tests = new Parameter();//I do not need this
     report1 = new Report();
     keepreporting = true;
     xmltestmanager = new XmlManager<Parameter>();
     // the the xmlfile the start off serialization
     //a instance of Parameter will be assigned to tests
     tests = xmltestmanager.Load("Content/rackparameterv2.xml");
     //Add the tests that does not have a quick test parameter in xml
     foreach (Parameter.Test t in tests.Tests())
     {
         /*saves all test name here so that it can be filtered later
         when the product selection is done*/
         storedvalues.Add(t.id);
     }
     textBox1.Focus();
 }
Exemplo n.º 2
0
 public Form1()
 {
     valuereport = "default";
     storedvalues = new List<string>();
     status = "unknown";
     error = ".";
     test = ".";
     Serverreporter = new Report();
     CmdReader = new Readcmd();
     InitializeComponent();
     xmltestmanager = new XmlManager<Parameter>();
     tests = new Parameter();
     report1 = new Report();
     keepreporting = true;
     tests = xmltestmanager.Load("Content/parameters.xml");// the the xmlfile the start off serialization
     foreach (Parameter.Test t in tests.tests)
     {
         //listBox1.Items.Add(t.id);
         storedvalues.Add(t.id);
     }
     textBox1.Focus();
 }