Beispiel #1
0
        public void VerifyResetButton()
        {
            //Arrange
            string firstEmotion = FaceOffPage.Emotion;
            string secondEmotion;

            //Act
            if (App is AndroidApp)
            {
                return;
            }

            FaceOffPage.TapTakePhoto1Button();
            FaceOffPage.TapOK();

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            FaceOffPage.WaitForPhotoImage1();
            FaceOffPage.TapResetButton();

            //Assert
            secondEmotion = FaceOffPage.Emotion;
            Assert.AreNotEqual(firstEmotion, secondEmotion);
            Assert.IsFalse(FaceOffPage.IsScoreButton1Visible);
            Assert.IsFalse(FaceOffPage.IsScoreButton2Visible);
            Assert.IsFalse(FaceOffPage.IsPhotoImage1Visible);
            Assert.IsFalse(FaceOffPage.IsPhotoImage2Visible);
        }
Beispiel #2
0
        public void VerifyResetButton()
        {
            //Arrange
            string firstEmotion = FaceOffPage.Emotion;
            string secondEmotion;

            //Act
            if (Platform == Platform.Android)
            {
                return;
            }

            FaceOffPage.TapTakePhoto1Button();
            FaceOffPage.TapOK();

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            FaceOffPage.WaitForPhotoImage1();
            FaceOffPage.TapResetButton();

            //Assert
            secondEmotion = FaceOffPage.Emotion;
            Assert.AreNotEqual(firstEmotion, secondEmotion);
        }
Beispiel #3
0
        public virtual void TestSetup()
        {
            app = AppInitializer.StartApp(platform);

            PicturePage = new PicturePage(app, platform);
            CameraPage  = new CameraPage(app, platform);
            WelcomePage = new WelcomePage(app, platform);

            WelcomePage.WaitForPageToLoad();

            app.Screenshot("App Launched");
        }
Beispiel #4
0
        public void TakePictureTwo()
        {
            //Arrange

            //Act
            FaceOffPage.TapTakePhoto2Button();
            FaceOffPage.TapOK();

            if (Platform == Platform.Android)
            {
                return;
            }

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            //Assert
            Assert.IsTrue(FaceOffPage.IsScoreButton2Visible);
        }
        public void TakePictureOne()
        {
            //Arrange

            //Act
            FaceOffPage.TapTakePhoto1Button();
            FaceOffPage.TapOK();

            if (App is AndroidApp)
            {
                return;
            }

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            //Assert
            Assert.IsTrue(FaceOffPage.IsScoreButton1Visible);
        }
Beispiel #6
0
        public void TakePictureOne()
        {
            //Arrange

            //Act
            PicturePage.TapTakePhoto1Button();
            PicturePage.TapOK();

            if (platform == Platform.Android)
            {
                return;
            }

            CameraPage.TapPhotoCaptureButton();
            CameraPage.TapUsePhotoButton();

            //Assert
            Assert.IsTrue(PicturePage.IsScoreButton1Visible);
        }