public static void PreBeforeTestRun() { var app = new Bellatrix.Mobile.IOSApp(); app.UseExceptionLogger(); app.UseMsTestSettings(); app.UseAppBehavior(); app.UseLogExecutionBehavior(); app.UseFFmpegVideoRecorder(); app.UseScreenshotsOnFail(); app.UseElementsBddLogging(); app.UseValidateExtensionsBddLogging(); app.UseLayoutAssertionExtensionsBddLogging(); app.StartAppiumLocalService(); app.Initialize(); InitializeTestExecutionBehaviorObservers(TestExecutionProvider); // 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(); }
public static void PreBeforeTestRun() { var app = new Bellatrix.Mobile.IOSApp(); app.UseExceptionLogger(); app.UseMsTestSettings(); app.UseAppBehavior(); app.UseLogExecutionBehavior(); app.UseFFmpegVideoRecorder(); app.UseScreenshotsOnFail(); app.UseElementsBddLogging(); app.UseValidateExtensionsBddLogging(); app.UseLayoutAssertionExtensionsBddLogging(); app.StartAppiumLocalService(); InitializeTestExecutionBehaviorObservers(TestExecutionProvider); }