Exemplo n.º 1
0
        public void AssemblyInitialize()
        {
            var app = new IOSApp();

            app.UseExceptionLogger();
            app.UseNUnitSettings();
            app.UseAppBehavior();
            app.UseLogExecutionBehavior();
            app.UseLogExecutionBehavior();
            app.UseFFmpegVideoRecorder();
            app.UseIOSDriverScreenshotsOnFail();
            app.UseElementsBddLogging();
            app.UseValidateExtensionsBddLogging();
            app.UseLayoutAssertionExtensionsBddLogging();
            app.StartAppiumLocalService();
            app.Initialize();

            // Software machine automation module helps you to install the required software to the developer's machine
            // such as a specific version of the browsers, browser extensions, and any other required software.
            // You can configure it from BELLATRIX configuration file testFrameworkSettings.json
            //  "machineAutomationSettings": {
            //      "isEnabled": "true",
            //      "packagesToBeInstalled": [ "googlechrome", "firefox --version=65.0.2", "opera" ]
            //  }
            //
            // You need to specify the packages to be installed in the packagesToBeInstalled array. You can search for packages in the
            // public community repository- https://chocolatey.org/
            //
            // To use the service you need to start Visual Studio in Administrative Mode. The service supports currently only Windows.
            // In the future BELLATRIX releases we will support OSX and Linux as well.
            //
            // To use the machine automation setup- install Bellatrix.MachineAutomation NuGet package.
            // SoftwareAutomationService.InstallRequiredSoftware();
        }
Exemplo n.º 2
0
        public static void AssemblyInitialize(TestContext testContext)
        {
            var app = new IOSApp();

            app.UseMsTestSettings();
            app.UseAppBehavior();
            app.UseLogExecutionBehavior();
            app.UseLogExecutionBehavior();
            app.UseFFmpegVideoRecorder();
            app.UseIOSDriverScreenshotsOnFail();
            app.UseElementsBddLogging();
            app.UseValidateExtensionsBddLogging();
            app.UseLayoutAssertionExtensionsBddLogging();
            app.StartAppiumLocalService();
            app.UseAllure();
        }
Exemplo n.º 3
0
        public App Create(string filepath)
        {
            string filename = Path.GetFileName(filepath);
            string extension = Path.GetExtension(filepath);

            App app;

            switch (extension.ToLowerInvariant())
            {
                case ".ipa":
                case ".plist":
                    app = new IOSApp();
                    app.ManifestFilename = Path.ChangeExtension(filename, IOSApp.ManifestFileExtension);

                    break;
                default:
                    app = new App();
                    break;
            }

            app.Filename = filename;

            return app;
        }
Exemplo n.º 4
0
 public static void AssemblyInitialize(TestContext testContext)
 {
     IOSApp.StartAppiumLocalService();
 }
Exemplo n.º 5
0
 public static void AssemblyInitialize(TestContext testContext)
 {
     AllurePlugin.Add();
     IOSApp.StartAppiumLocalService();
 }
 static IOSBaseSpecFlowHooks()
 {
     App = new IOSApp();
 }
Exemplo n.º 7
0
 static IOSSteps()
 {
     App = new IOSApp();
 }
Exemplo n.º 8
0
 public static void AssemblyInitialize()
 {
     IOSApp.StartAppiumLocalService();
 }
Exemplo n.º 9
0
 static IOSHooks()
 {
     App = new IOSApp();
 }