コード例 #1
0
 public void Reportclick(DataTable dt, LowisMainWindow lw1, LReportPane lp1)
 {
     foreach (DataRow dr in dt.Rows)
     {
         string tcname = dr["TestCaseID"].ToString();
         string linkname = dr["Name"].ToString();
         string reptype = dr["Type"].ToString();
         string tindex = dr["TitleHTMLTableIndex"].ToString();
         string ttext = dr["TitleText"].ToString();
         string colindex = dr["ColumnNameHTMLTableIndex"].ToString();
         string colnametext = dr["ColumnNameText"].ToString();
         string tableType = dr["TableType"].ToString();
         // Verify
         lw1.lowisDwait();
         lp1.ClickHtmlLink(linkname);
         lw1.lowisDwait();
         lp1.VerifyReportPage(tcname, linkname, tableType, reptype, tindex, ttext, colindex, colnametext);
     }
 }
コード例 #2
0
        public void Reportclick2(DataTable dt, LowisMainWindow lw2, LReportPane lp2)
        {
            foreach (DataRow dr in dt.Rows)
            {
                string tcname = dr["TestCaseID"].ToString();
                string linkname = dr["Name"].ToString();
                string reptype = dr["Type"].ToString();
                string tindex = dr["TitleHTMLTableIndex"].ToString();
                string ttext = dr["TitleText"].ToString();
                string colindex = dr["ColumnNameHTMLTableIndex"].ToString();
                string colnametext = dr["ColumnNameText"].ToString();
                string tableType = dr["TableType"].ToString();
                // Verify
                lw2.lowisDwait();
                lp2.ClickHtmlLink(linkname);
                if (linkname == "Auto Welltest Evaluation Report")
                {
                    if (lp2.btnOKAutoReport.Exists)
                    {
                        lp2.btnOKAutoReport.Click();
                    }
                }
                else if (linkname == "Most Recent Coded Test Rpt (Wells)" || linkname == "Most Recent Coded Tests Rpt (Facility)")
                {
                    if (lp2.btnOKCodedReport.Exists)
                    {
                        lp2.btnOKCodedReport.Click();
                    }

                }

                lw2.lowisDwait();
                lp2.VerifyReportPage(tcname, linkname, tableType, reptype, tindex, ttext, colindex, colnametext);
            }
        }