コード例 #1
0
        public void checkScreenShotTest_Success1()
        {
            string strScreenshotPath;
            strScreenshotPath = "C:\\Git\\XMLReportValidationTool\\Sample\\Report_IL10_02006_FusionEMEA_CreditOrder_Eiffel_LH_AP_AR_IC_HPI_RunTime1_5-25-2015_9-15-55_AM\\snapshot\\NO1_LH_WE09_IDocDisplay.jpg";
            ReadReport RRTest = new ReadReport();

            // Expected
            //Boolean Expected = true;
            //  Actual
            Boolean result = RRTest.ScreenShotValidation(strScreenshotPath);

            Assert.IsTrue(result, "Screen Shot Validation");
        }
コード例 #2
0
        public void checkScreenShotTest_Fail1()
        {
            string strScreenshotPath;
            strScreenshotPath = "C:\\Git\\XMLReportValidationTool\\Sample\\Report_IL10_02006_FusionEMEA_CreditOrder_Eiffel_LH_AP_AR_IC_HPI_RunTime1_5-25-2015_9-15-55_AM\\snapshot\\NO2_VA02_SalesDocument.jpg";
            ReadReport RRTest = new ReadReport();

            // Expected
            //Boolean Expected = true;
            //  Actual
            Boolean result = RRTest.ScreenShotValidation(strScreenshotPath);
            if (result == false)
            {
                result = true;
            }
            else
            {
                result = false;
            }
            Assert.IsTrue(result, "Screen Shot Validation");
        }