Exemplo n.º 1
0
        public void SaveErrorImage(Ranorex.Core.RxPath myPath, Ranorex.Core.Element myElement)
        {
            if (myPath.ToString().Contains("Error Report") || myPath.ToString().Contains("KSMARTVisionApp") || myPath.ToString().Contains("KSmart connection disconn"))
            {
                crashFlag = true;
                //Automation_JobLoading.Module.VisionErrorWatch.Start(myPath);
                Log.LogWrite("Save Error(Crash) Image Completed!");
            }
            else if (myPath.ToString().Contains("Vision Error"))
            {
                //Automation_JobLoading.Module.VisionErrorWatch.Start(myPath);
                Log.LogWrite("Save Vision Error Image Completed!");
            }

            /*else if(myPath.ToString().Contains("Quantity"))
             * {
             *  Delay.Seconds(1);
             *  JobLoading_Repository.Instance.SPIGUI.InputProductionQuantity.ButtonOK.DoubleClick();
             *  Log.LogWrite("quantity창 종료버튼 클릭");
             *
             * }*/
            else
            {
                myElement.As <Form>().Click();
                Keyboard.Press(WinForms.Keys.Escape);
            }
        }
Exemplo n.º 2
0
        public static void ReportLog(string log, SQLdmReportLevel reportlevel, Ranorex.Core.Element element, string category)
        {
            System.Threading.Thread.Sleep(200);
            switch (reportlevel)
            {
            case SQLdmReportLevel.Fail:
                Ranorex.Report.Failure(category, log);
                Ranorex.Report.Screenshot(element);
                break;

            case SQLdmReportLevel.Info:
                Ranorex.Report.Info(category, log);
                break;

            case SQLdmReportLevel.Success:
                Ranorex.Report.Success(category, log);
                break;

            default:
                break;
            }
            System.Threading.Thread.Sleep(200);
        }
 public void CloseUpdateCheckDialog(Ranorex.Core.RxPath myPath, Ranorex.Core.Element myElement)
 {
     myElement.As <Ranorex.Button>().Click();
 }