Exemplo n.º 1
0
        static TestBase()
        {
            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

            AppInitializer.ColdStartApp();
        }
        static TestBase()
        {
            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.PlatformUnderTest;

#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();
        }