private void EditCasebody_Load(object sender, EventArgs e) { myOwner = (AutoRunner)this.Owner; //tb_ow_waittime.Text = (myOwner.SleepTime).ToString(); if (myOwner.nowCaseActionActuator != null) { tb_ow_waittime.Text = (myOwner.nowCaseActionActuator.ExecutiveThinkTime).ToString(); } else { tb_ow_waittime.Text = "未加载CASE"; tb_ow_waittime.Enabled = false; } tb_ow_maxline.Text = myOwner.MaxLine.ToString(); bt_ow_other.Text = "can not set"; try { cb_ow_postDes.SelectedIndex = myOwner.postDataDes; } catch (Exception ex) { cb_ow_postDes.SelectedIndex = 0; ErrorLog.PutInLog(ex.Message); } }
private static void Main(string[] args) { using (var auto = new AutoRunner()) { auto.Run(); auto.ReportToHtml(); } }
public static void StartAutoRunner() { using (AutoRunner auto = new AutoRunner()) { auto.Run(); auto.ReportToHtml(); } }
static void Main() { List <Result> results = AutoRunner.Run(); foreach (Result result in results) { Console.WriteLine(result); } }
public static void Main() { using (AutoRunner runner = new AutoRunner()) { runner.Load(); runner.Run(); runner.ReportToHtml(); } }
public static void Main(string[] args) { List <Result> results = AutoRunner.Run(); foreach (Result result in results) { Console.WriteLine(result); Activator. } }
private void MyMessageListWindow_Load(object sender, EventArgs e) { lb_windowInfo.Text = windowName; this.TopMost = false; myParentWindow = (AutoRunner)this.Owner; refreshlistView_MyMessageListWindow(); myUpdataTime.Interval = 1000; myUpdataTime.Tick += new EventHandler(myUpdataTime_Tick); myUpdataTime.Enabled = isAutoRefresh; }
static int Main(string[] args) { using (AutoRunner runner = new AutoRunner()) { runner.Load(); runner.Run(); runner.ReportToHtml(); int runnerExitCode = runner.ExitCode; return(runnerExitCode); } }
public static void Main(string[] args) { using (AutoRunner auto = new AutoRunner()) { //string reportName = String.Format("{0}.xml", auto.GetReportName()); // reportName = Path.GetFullPath(reportName); // FailureRunPipeFilter filter = new FailureRunPipeFilter(reportName); // auto.Domain.RunPipeFilter = filter; auto.Domain.Filter = FixtureFilters.Current; auto.Run(); auto.ReportToHtml(); auto.ReportToXml(); } Console.ReadLine(); }
static void Main(string[] args_) { // run unit test AutoRunner auto = new AutoRunner(); auto.Load(); auto.Run(); HtmlReport report = new HtmlReport(); string fileName; // generate report results fileName = report.Render(auto.Result); // launch results in user's browser System.Diagnostics.Process.Start(fileName); }
public static void UpdateUI() { if (MainForm == null) { return; } try { AutoRunner runner = new AutoRunner(); runner.XMLConfigFilePath = ConfigFileName; runner.Start(); } catch (Exception ex) { System.Diagnostics.Trace.WriteLine(ex); } }
private void myCaseParameter_Load(object sender, EventArgs e) { this.TopMost = false; myParentWindow = (AutoRunner)this.Owner; pictureBox_next.Visible = pictureBox_set.Visible = false; if (myParentWindow.nowCaseActionActuator != null) { myParentWindow.nowCaseActionActuator.OnActuatorParameterListChanged += nowCaseActionActuator_OnActuatorParameterListChanged; updatalistView_CaseParameter(); myUpdataTime.Interval = 20000; myUpdataTime.Tick += new EventHandler(myUpdataTime_Tick); myUpdataTime.Start(); } else { MessageBox.Show("未发现执行数据源"); this.Close(); } }
private void EditCasebody_Load(object sender, EventArgs e) { myOwner = (AutoRunner)this.Owner; XmlNode tempNode = ((CaseCell)myTreeNode.Tag).CaseXmlNode["Content"]; string tempStr; if (tempNode != null) { MyCommonHelper.MyCommonTool.FormatXmlString(tempNode.OuterXml, out tempStr); rtb_CaseContent.AppendText(tempStr); } tempNode = ((CaseCell)myTreeNode.Tag).CaseXmlNode["Expect"]; if (tempNode != null) { MyCommonHelper.MyCommonTool.FormatXmlString(tempNode.OuterXml, out tempStr); rtb_CaseContent.AppendText("\n"); rtb_CaseContent.AppendText(tempStr); } tempNode = ((CaseCell)myTreeNode.Tag).CaseXmlNode["Action"]; if (tempNode != null) { MyCommonHelper.MyCommonTool.FormatXmlString(tempNode.OuterXml, out tempStr); rtb_CaseContent.AppendText("\n"); rtb_CaseContent.AppendText(tempStr); } tempNode = ((CaseCell)myTreeNode.Tag).CaseXmlNode["Attribute"]; if (tempNode != null) { MyCommonHelper.MyCommonTool.FormatXmlString(tempNode.OuterXml, out tempStr); rtb_CaseContent.AppendText("\n"); rtb_CaseContent.AppendText(tempStr); } tb_dw2_Id.Text = ((CaseCell)myTreeNode.Tag).CaseRunData.id.ToString(); tb_dw2_Target.Text = ((CaseCell)myTreeNode.Tag).CaseRunData.contentProtocol.ToString(); return; }
private void EditProjiectHead_Load(object sender, EventArgs e) { myOwner = (AutoRunner)this.Owner; tb_dw1_ProjectName.Text = myOwner.showNode.Attributes[0].Value; rtb_dw1_ProjectRemark.Text = myOwner.showNode.Attributes[1].Value; }
private void AddRunner_Load(object sender, EventArgs e) { FreezeAdd(); myOwner = (AutoRunner)this.Owner; }