public void AddAdGroup_Google() { OrderedTestFirstStep(() => { GoogleUIMaps.AdvertisementClasses.AdGroup adversiementUI = Get<GoogleUIMaps.AdvertisementClasses.AdGroup>(); adversiementUI.ClickAddAdGroupButton(); CommonUIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload uploadWindow = Get<UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload>(); AdGroupBVT.Advertisement = TestHelper.AddAdGroup( GoogleFramework.Object.AdGroup.NextAdName(CampaignBVT.RandomData), "10.00", uploadWindow.VerifyUploadOneGoogleAdvertisement); } ); }
public bool Equals(AdGroup other, bool campareBetweenEditPanelAndGridView) { if (other == null) { return false; } if (!string.Equals(this.Name, other.Name, StringComparison.OrdinalIgnoreCase)) { return false; } if (!string.Equals(this.Status, other.Status, StringComparison.OrdinalIgnoreCase)) { return false; } if (!string.Equals(this.DefaultMaxCPCBid, other.DefaultMaxCPCBid, StringComparison.OrdinalIgnoreCase)) { return false; } if (!string.Equals(this.MaxCPMBid, other.MaxCPMBid, StringComparison.OrdinalIgnoreCase)) { return false; } if (!string.Equals(this.DisplaytNetworkMaxCPCBid, other.DisplaytNetworkMaxCPCBid, StringComparison.OrdinalIgnoreCase)) { return false; } if (!string.Equals(this.CPABid, other.CPABid, StringComparison.OrdinalIgnoreCase)) { return false; } if (!campareBetweenEditPanelAndGridView) { if (!string.Equals(this.CampaignName, other.CampaignName, StringComparison.OrdinalIgnoreCase)) { return false; } if (!Performance.Equals(other.Performance)) { return false; } } return true; }
public static AdGroup Parse(WinRow row) { if (row.Cells.Count != 19) { throw new Exception("The count of cell in ad group grid should be equal to 19!"); } AdGroup ad = new AdGroup { CampaignName = GridViewUtilities.GetValueProperty(row.Cells[2]), Name = GridViewUtilities.GetValueProperty(row.Cells[3]), Status = GridViewUtilities.GetValueProperty(row.Cells[4]), DefaultMaxCPCBid = GridViewUtilities.GetValueProperty(row.Cells[5]), DisplaytNetworkMaxCPCBid = GridViewUtilities.GetValueProperty(row.Cells[6]), MaxCPMBid = GridViewUtilities.GetValueProperty(row.Cells[7]), CPABid = GridViewUtilities.GetValueProperty(row.Cells[8]), Performance = Performance.Parse(row, 9, true), }; return ad; }
public void EditAdGroup_Google() { OrderedTestInProgress(() => { Advertisement.Name = GoogleFramework.Object.AdGroup.NextAdName(CampaignBVT.RandomData); Advertisement.MaxCPMBid = "9.00"; CommonUIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload uploadWindow = Get<UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload>(); AdGroupBVT.Advertisement = TestHelper.AddAdGroup( Advertisement.Name, Advertisement.MaxCPMBid, uploadWindow.VerifyUpdateOneAdvertisementForGoogle); UIMaps.MainWindowClasses.MainWindow mainWindow = Get<UIMaps.MainWindowClasses.MainWindow>(); mainWindow.ExpandGoogleAccountTreeView(); } ); }
public override void OnTestInitialize() { base.OnTestInitialize(); CampaignBVT.OnTestInitialize(); campaign = TestHelper.AddCampaignForInit(this.RandomData); UIMaps.MainWindowClasses.MainWindow mainWindow = Get<UIMaps.MainWindowClasses.MainWindow>(); mainWindow.ExpandGoogleAccountTreeView(); adGroup = TestHelper.AddAdGroupForInit(this.RandomData); mainWindow.ExpandGoogleAccountTreeView(); textAd = TestHelper.AddTextAdForInit(this.RandomData); mainWindow.ExpandGoogleAccountTreeView(); }