// Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. using System; namespace Calculator.UIAutomationLibrary { public class Constants { /// /// The path to the certificate file. /// public const string CertificateFileName = @"Calculator.cer"; /// /// The path to the appxbundle file. /// public const string PackageFileName = @"Calculator.appxbundle"; /// /// The path to the appxbundle file. /// public const string VCLibsPackageFileName = @"Microsoft.VCLibs.appx"; /// /// The path to the appxbundle file. /// public const string WinUIPackageFileName = @"Microsoft.UI.Xaml.appx"; /// /// Name of the CoreWindow. /// public const string AppWindowName = "Calculator"; /// /// Name of the process executable. /// public const string ProcessName = "Calculator.exe"; /// /// The package name. /// public const string PackageName = "Microsoft.WindowsCalculator"; /// /// The package family name for the app to test. /// public const string PackageFamilyName = PackageName + "_8wekyb3d8bbwe"; /// /// The package App User Model Id. /// public const string PackageAppUserModelId = PackageFamilyName + "!App"; /// /// AutomationId for the top level UI element. /// public const string TopLevelWindowAutomationId = "CalculatorWindow"; /// /// Event fired when the first page is loaded. /// public const string AppLaunchEndETWEventName = "AppLaunchEnd"; /// /// App Provider GUID for ETW Events /// public static readonly Guid CalculatorETWProviderGUID = new Guid("0905CA09-610E-401E-B650-2F212980B9E0"); /// /// Event fired when a calculator mode change is complete. /// public const string AppModeChangeEndETWEventName = "ModeChangeEnd"; /// /// Event fired when the History panel is opened by flyout or by changing pivot tabs. /// public const string HistoryBodyOpenedETWEventName = "HistoryBodyOpened"; /// /// Event fired when the Memory panel is opened by flyout or by changing pivot tabs. /// public const string MemoryBodyOpenedETWEventName = "MemoryBodyOpened"; /// /// Event fired when the About flyout control is loaded. /// public const string AboutFlyoutOpenedETWEventName = "AboutFlyoutOpened"; /// /// Event fired when the Nav Bar control is opened. /// public const string NavBarOpenedETWEventName = "NavBarOpened"; /// /// Margin used to click in the gutter beneath the History and Memory lists /// public const int ClickMargin = 10; } }