Beispiel #1
0
        private void Checkpoint()
        {
            if (mEyes == null)
            {
                mAct.Error  = "Applitools Eyes is not opened";
                mAct.ExInfo = "You require to add Eyes.Open Action on step before.";
                return;
            }

            SetEyesMatchLevel();
            AppImage response = mEyes.CheckImage(mDriver.GetScreenShot());

            mAct.AddOrUpdateReturnParamActual("ExactMatches", response.IsMatch.ToString());

            bool FailActionOnMistmach = Boolean.Parse(mAct.GetInputParamValue(ApplitoolsAnalyzer.FailActionOnMistmach));

            if (response.IsMatch == true || !FailActionOnMistmach)
            {
                mAct.Status = Amdocs.Ginger.CoreNET.Execution.eRunStatus.Passed;
                if (!FailActionOnMistmach)
                {
                    mAct.ExInfo = "Created new baseline in Applitools or Mismatch between saved baseline and target checkpoint image";
                }
            }
            else if (response.IsMatch == false)
            {
                mAct.Error = "Created new baseline in Applitools or Mismatch between saved baseline and target checkpoint image";
            }
        }
Beispiel #2
0
        public static void CheckImage(Bitmap image, string tag)
        {
            if (image == null)
            {
                throw new ArgumentNullException("image");
            }

            eyes.CheckImage(image, tag);
        }
Beispiel #3
0
        private void Checkpoint()
        {
            if (mEyes == null)
            {
                mAct.Error  = "Applitools Eyes is not opened";
                mAct.ExInfo = "You require to add Eyes.Open Action on step before.";
                return;
            }

            SetEyesMatchLevel();
            AppImage response = mEyes.CheckImage(mDriver.GetScreenShot());

            mAct.Status = Amdocs.Ginger.CoreNET.Execution.eRunStatus.Passed;
        }