Exemple #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="activeTest"></param>
        /// <param name="log"></param>
        void RunCodeTest(LayoutTest activeTest, TestLog log)
        {
            try
            {
                //create window
                ((CodeTest)activeTest).CreateWindow();
                CommonFunctionality.FlushDispatcher();

                //load test info..
                ((CodeTest)activeTest).WindowSetup();
                CommonFunctionality.FlushDispatcher();

                //call test actions..
                ((CodeTest)activeTest).TestActions();
                CommonFunctionality.FlushDispatcher();

                ////call verify..
                ((CodeTest)activeTest).TestVerify();
                CommonFunctionality.FlushDispatcher();

                ((CodeTest)activeTest).CloseWindow();
                CommonFunctionality.FlushDispatcher();
            }
            catch (Exception ex)
            {
                GlobalLog.LogEvidence(ex);
                activeTest.Result = false;
            }
        }
Exemple #2
0
        /// <summary>
        /// Runs Property Dump Test.
        /// </summary>
        public void DumpAndCompare()
        {
            if (windowHasContent)
            {
                PropertyDumpHelper propdump = new PropertyDumpHelper(this.window.Content as Visual);
                CommonFunctionality.FlushDispatcher();

                this.Result = propdump.CompareLogShow(Arguments);
                CommonFunctionality.FlushDispatcher();
            }
            else
            {
                this.Result = false;
            }
        }
Exemple #3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="activeTest"></param>
        /// <param name="log"></param>
        void RunVisualScanTest(LayoutTest activeTest, TestLog log)
        {
            try
            {
                //create window
                ((VisualScanTest)activeTest).CreateWindow();
                CommonFunctionality.FlushDispatcher();

                ((VisualScanTest)activeTest).WindowSetup();
                CommonFunctionality.FlushDispatcher();

                ((VisualScanTest)activeTest).CaptureAndCompare();
                CommonFunctionality.FlushDispatcher();

                ((VisualScanTest)activeTest).CloseWindow();
                CommonFunctionality.FlushDispatcher();
            }
            catch (Exception ex)
            {
                GlobalLog.LogEvidence(ex);
                activeTest.Result = false;
            }
        }