Esempio n. 1
0
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                game.TakeScreenshot();

                /*
                [Raycasting.RaycastingScript]: Info: X:0.3304687 Y:0.6055555
                [Raycasting.RaycastingScript]: Info: X:0.496875 Y:0.4125
                [Raycasting.RaycastingScript]: Info: X:0.659375 Y:0.5319445
                */

                game.Tap(new Vector2(0.3304687f, 0.6055555f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.496875f, 0.4125f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.659375f, 0.5319445f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.Wait(TimeSpan.FromMilliseconds(1000));
            }
        }
Esempio n. 2
0
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                game.TakeScreenshot();

                /*
                [GameMenu.MainScript]: Info: X:0.4765625 Y:0.8389084
                [GameMenu.MainScript]: Info: X:0.6609375 Y:0.7315141
                [GameMenu.MainScript]: Info: X:0.6609375 Y:0.7315141
                [GameMenu.MainScript]: Info: X:0.5390625 Y:0.7764084
                [GameMenu.MainScript]: Info: X:0.5390625 Y:0.7764084
                */

                game.Tap(new Vector2(0.4765625f, 0.8389084f), TimeSpan.FromMilliseconds(250));
                game.Wait(TimeSpan.FromMilliseconds(250));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.6609375f, 0.7315141f), TimeSpan.FromMilliseconds(250));
                game.Wait(TimeSpan.FromMilliseconds(250));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.5390625f, 0.7764084f), TimeSpan.FromMilliseconds(250));
                game.Wait(TimeSpan.FromMilliseconds(250));
                game.TakeScreenshot();

                game.Wait(TimeSpan.FromMilliseconds(2000));
            }
        }
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                game.TakeScreenshot();

		// TODO Simulate taps

                game.Tap(new Vector2(179f / 600f, 235f / 600f), TimeSpan.FromMilliseconds(150));
                game.Wait(TimeSpan.FromMilliseconds(250));
                game.TakeScreenshot();

                game.Tap(new Vector2(360f / 600f, 328f / 600f), TimeSpan.FromMilliseconds(150));
                game.Wait(TimeSpan.FromMilliseconds(1250));
                game.TakeScreenshot();

                game.Tap(new Vector2(179f / 600f, 235f / 600f), TimeSpan.FromMilliseconds(150));
                game.Wait(TimeSpan.FromMilliseconds(250));
                game.TakeScreenshot();

                game.Wait(TimeSpan.FromMilliseconds(2000));
            }
        }
 public void TestInputs()
 {
     using (var game = new GameTestingClient(Path, TestPlatform))
     {
         game.Wait(TimeSpan.FromMilliseconds(2000));
         game.TakeScreenshot();
         game.Tap(new Vector2(0.496875f, 0.8010563f), TimeSpan.FromMilliseconds(250));
         game.Wait(TimeSpan.FromMilliseconds(1000));
         game.TakeScreenshot();
         game.KeyPress(Keys.Space, TimeSpan.FromMilliseconds(500));
         game.Wait(TimeSpan.FromMilliseconds(500));
         game.TakeScreenshot();
         game.Wait(TimeSpan.FromMilliseconds(500));
     }
 }
Esempio n. 5
0
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                game.TakeScreenshot();

                game.KeyPress(Keys.Right, TimeSpan.FromMilliseconds(500));

                game.Wait(TimeSpan.FromMilliseconds(1000));

                game.TakeScreenshot();

                game.Wait(TimeSpan.FromMilliseconds(500));
            }
        }
Esempio n. 6
0
 public void TestInputs()
 {
     using (var game = new GameTestingClient(Path, TestPlatform))
     {
         game.Wait(TimeSpan.FromMilliseconds(2000));
         game.TakeScreenshot();
         game.Tap(new Vector2(0.067f, 0.344f), TimeSpan.FromMilliseconds(500));
         game.Wait(TimeSpan.FromMilliseconds(500));
         game.TakeScreenshot();
         game.Tap(new Vector2(0.067f, 0.344f), TimeSpan.FromMilliseconds(500));
         game.Wait(TimeSpan.FromMilliseconds(500));
         game.Tap(new Vector2(0.039f, 0.38f), TimeSpan.FromMilliseconds(500));
         game.Wait(TimeSpan.FromMilliseconds(500));
         game.TakeScreenshot();
         game.Wait(TimeSpan.FromMilliseconds(2000));
     }
 }
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene

                game.Wait(TimeSpan.FromMilliseconds(500));
            }
        }
Esempio n. 8
0
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                //Turn on all shadows first
                game.Tap(new Vector2(0.07f, 0.09f), TimeSpan.FromMilliseconds(500));
                game.Tap(new Vector2(0.07f, 0.2f), TimeSpan.FromMilliseconds(500));
                game.Tap(new Vector2(0.07f, 0.4f), TimeSpan.FromMilliseconds(500));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));

                //Turn off some lights
                game.Tap(new Vector2(0.07f, 0.15f), TimeSpan.FromMilliseconds(500));
                game.Tap(new Vector2(0.07f, 0.27f), TimeSpan.FromMilliseconds(500));
                game.Tap(new Vector2(0.07f, 0.32f), TimeSpan.FromMilliseconds(500));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));

                //Turn off some lights
                game.Tap(new Vector2(0.07f, 0.03f), TimeSpan.FromMilliseconds(500)); //tuns off top
                game.Tap(new Vector2(0.07f, 0.15f), TimeSpan.FromMilliseconds(500)); //turns on
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));

                //Turn off some lights
                game.Tap(new Vector2(0.07f, 0.15f), TimeSpan.FromMilliseconds(500)); //tuns off top
                game.Tap(new Vector2(0.07f, 0.27f), TimeSpan.FromMilliseconds(500)); //turns on
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));

                //Turn off some lights
                game.Tap(new Vector2(0.07f, 0.27f), TimeSpan.FromMilliseconds(500)); //tuns off top
                game.Tap(new Vector2(0.07f, 0.32f), TimeSpan.FromMilliseconds(500)); //turns on
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));
            }
        }
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                //Play Idle anim and take screenshot
                game.Tap(new Vector2(0.83f, 0.05f), TimeSpan.FromMilliseconds(500));
                game.Wait(TimeSpan.FromMilliseconds(2000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));

                //Play Run anim and take screenshot
                game.Tap(new Vector2(0.83f, 0.15f), TimeSpan.FromMilliseconds(500));
                game.Wait(TimeSpan.FromMilliseconds(2000));
                game.TakeScreenshot();
                game.Wait(TimeSpan.FromMilliseconds(500));
            }
        }
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                game.Wait(TimeSpan.FromMilliseconds(500));
                game.TakeScreenshot();

                game.Drag(new Vector2(0.5f, 0.5f), new Vector2(0.01f, 0.5f), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(500));

                game.Wait(TimeSpan.FromMilliseconds(500));
                game.TakeScreenshot();

                game.Drag(new Vector2(0.5f, 0.5f), new Vector2(0.9f, 0.5f), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(500));
                game.Drag(new Vector2(0.5f, 0.5f), new Vector2(0.9f, 0.5f), TimeSpan.FromMilliseconds(100), TimeSpan.FromMilliseconds(500));

                game.Wait(TimeSpan.FromMilliseconds(500));
                game.TakeScreenshot();

                game.Wait(TimeSpan.FromMilliseconds(2000));
            }
        }
        public void TestInputs()
        {
            using (var game = new GameTestingClient(Path, TestPlatform))
            {
                game.Wait(TimeSpan.FromMilliseconds(2000));

                // X:0.8367187 Y:0.9375

                // Constraints
                game.TakeScreenshot();

                game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.83f, 0.93f), TimeSpan.FromMilliseconds(200));
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                // VolumeTrigger
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                // Raycasting
                game.Tap(new Vector2(0.95f, 0.5f), TimeSpan.FromMilliseconds(200)); // Transition to the next scene
                game.Wait(TimeSpan.FromMilliseconds(1000));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.3304687f, 0.6055555f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.496875f, 0.4125f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.Tap(new Vector2(0.659375f, 0.5319445f), TimeSpan.FromMilliseconds(200));
                game.TakeScreenshot();

                game.KeyPress(Keys.Right, TimeSpan.FromMilliseconds(500));              
                game.Wait(TimeSpan.FromMilliseconds(500));
            }
        }