Ejemplo n.º 1
0
        static SampleControlUITestBase()
        {
            AppInitializer.TestEnvironment.AndroidAppName        = Constants.AndroidAppName;
            AppInitializer.TestEnvironment.WebAssemblyDefaultUri = Constants.WebAssemblyDefaultUri;
            AppInitializer.TestEnvironment.iOSAppName            = Constants.iOSAppName;
            AppInitializer.TestEnvironment.AndroidAppName        = Constants.AndroidAppName;
            AppInitializer.TestEnvironment.iOSDeviceNameOrId     = Constants.iOSDeviceNameOrId;
            AppInitializer.TestEnvironment.CurrentPlatform       = Constants.CurrentPlatform;

#if DEBUG
            AppInitializer.TestEnvironment.WebAssemblyHeadless = false;
#endif

            // Start the app only once, so the tests runs don't restart it
            // and gain some time for the tests.
            AppInitializer.ColdStartApp();
        }
Ejemplo n.º 2
0
        static SampleControlUITestBase()
        {
            AppInitializer.TestEnvironment.AndroidAppName        = Constants.AndroidAppName;
            AppInitializer.TestEnvironment.WebAssemblyDefaultUri = Constants.WebAssemblyDefaultUri;
            AppInitializer.TestEnvironment.iOSAppName            = Constants.iOSAppName;
            AppInitializer.TestEnvironment.AndroidAppName        = Constants.AndroidAppName;
            AppInitializer.TestEnvironment.iOSDeviceNameOrId     = Constants.iOSDeviceNameOrId;
            AppInitializer.TestEnvironment.CurrentPlatform       = Constants.CurrentPlatform;

#if DEBUG
            Console.WriteLine("*** WARNING Running Chrome with a head, this will fail when running in CI ***");
            AppInitializer.TestEnvironment.WebAssemblyHeadless = false;
#endif

            // Start the app only once, so the tests runs don't restart it
            // and gain some time for the tests.
            AppInitializer.ColdStartApp();
        }
Ejemplo n.º 3
0
        public PointerDeviceType CurrentPointerType => DefaultPointerType;         // We cannot change pointer type on this platform

        public void ValidateAppMode()
        {
            if (GetCurrentFixtureAttributes <TestAppModeAttribute>().FirstOrDefault() is TestAppModeAttribute testAppMode)
            {
                if (
                    _totalTestFixtureCount != 0 &&
                    testAppMode.CleanEnvironment &&
                    testAppMode.Platform == AppInitializer.GetLocalPlatform()
                    )
                {
                    // If this is not the first run, and the fixture requested a clean environment, request a cold start.
                    // If this is the first run, as the app is cold-started during the type constructor, we can skip this.
                    _app = AppInitializer.ColdStartApp();
                }
            }

            _totalTestFixtureCount++;
        }
Ejemplo n.º 4
0
 static SampleControlUITestBase()
 {
     // Start the app only once, so the tests runs don't restart it
     // and gain some time for the tests.
     AppInitializer.ColdStartApp();
 }