private void StartTest() { //test czy występuje problem sesji 0 //System.Diagnostics.Process.Start(@"C:\Windows\System32\notepad.exe"); //return; testRunning = true; currentTestStart = DateTime.Now; QATestStuff.QATestStuffOptions stuffOptions = new QATestStuff.QATestStuffOptions(); stuffOptions.killDriver = true; //default true!! stuffOptions.minRow = 2; stuffOptions.maxRow = 1000000; currentTestStuff = new QATestStuff(stuffOptions); currentTestStuff.testManager = this; //tylko klasa test manager to robi, form1 zostawia null currentTestStuff.CreateDriver(); //a może testStuff.driver = ..? currentTestStuff.Init(); new QATestLauncher(this).Run(); }
private void StartTest() { DialogResult dialogResult = MessageBox.Show(Settings.message1, "Cześć!", MessageBoxButtons.OKCancel, MessageBoxIcon.Information); if (dialogResult != DialogResult.OK) { return; } QATestStuff.QATestStuffOptions stuffOptions = new QATestStuff.QATestStuffOptions(); stuffOptions.killDriver = checkBox1.Checked; stuffOptions.minRow = (int)numericUpDown1.Value; stuffOptions.maxRow = (int)numericUpDown2.Value; testStuff = new QATestStuff(stuffOptions); testStuff.CreateDriver(); //inna klasa można chcieć zrobić testStuff.driver = ... testStuff.Init(); new QATestLauncher(this).Run(); button2.Enabled = true; }