public void CollectCapacityForAllEnvironments() { string sessionId = Guid.NewGuid().ToString(); using (var powerPlatformClient = new Microsoft.PowerPlatform.UIAutomation.Api.PowerPlatformAdminCenterBrowser(TestSettings.Options, new Helpers.AppInsightsLogger(_azureKey, sessionId), sessionId)) { powerPlatformClient.OnlineLogin.Login(new Uri("https://admin.powerplatform.microsoft.com"), _username.ToSecureString(), _password.ToSecureString()); powerPlatformClient.Capacity.OpenCapacity(); string strFileName = String.Format("CapacitySummaryOn_{0}.{1}", DateTime.Now.ToString("yyyy_MM_dd_HH_mm_ss"), ScreenshotImageFormat.Png); powerPlatformClient.Browser.ThinkTime(1000); powerPlatformClient.Browser.TakeWindowScreenShot(strFileName, ScreenshotImageFormat.Png); powerPlatformClient.Capacity.ChangeTab("Storage capacity"); powerPlatformClient.Capacity.GetAllEnvironments(); } }
public Analytics(PowerPlatformAdminCenterBrowser browser) : base() { _client = browser; }
public T GetPage <T>(PowerPlatformAdminCenterBrowser client) where T : BrowserPage { return((T)Activator.CreateInstance(typeof(T), new object[] { client })); }
public Capacity(PowerPlatformAdminCenterBrowser browser) : base() { _client = browser; }
public OnlineLogin(PowerPlatformAdminCenterBrowser browser) : base() { this.OnlineDomains = Constants.Xrm.XrmDomains; _client = browser; }