/// <summary> /// The Wind Tunnel Point of interest (POI) allows mobile teams to pin point real user specific issues around performance, /// functionality and more. By using POI users can get a detailed dashboard with view into the actual error for a specific transaction. /// This functions adds a Point of interest to the Wind Tunnel report. /// Example: string pointOfInterest = PointOfInterest(driver, "Page load", PointOfInterestStatus.SUCCESS); /// </summary> /// <param name="driver">RemoteWebDriver entity</param> /// <param name="name">Name of point of interest</param> /// <param name="status">Defined point of interest status</param> /// <returns>The command response contains basic details about the completion status and relevant timers. It may also include additional data that is specific for the command.</returns> public static string PointOfInterest(RemoteWebDriver driver, string name, PointOfInterestStatus status) { var parameters = new Dictionary <string, object>(); parameters.Add(POINT_OF_INTEREST_DESCRIPTION, name); parameters.Add(POINT_OF_INTEREST_STATUS, status.ToString().ToLower()); return(driver.ExecuteScript(MOBILE_STATUS_EVENT_COMMAND, parameters).ToString()); }
protected void SetPointOfInterestIfPossible(AppiumDriver <IWebElement> driver, string pointOfInterestText, PointOfInterestStatus status) { //WindTunnel support coming later this year for desktop browsers - for now, ignore if (CurrentDevice.DeviceDetails.IsDesktopBrowser) { return; } WindTunnelUtils.PointOfInterest(driver, pointOfInterestText, status); }