示例#1
0
        public void AddAdGroup_AdCenter()
        {
            OrderedTestFirstStep(() =>
                {
                    AdCenterUIMaps.AdGroupsClasses.AdGroups adversiementUI = Get<AdCenterUIMaps.AdGroupsClasses.AdGroups>();
                    adversiementUI.ClickAddAdGroupButton();

                    CommonUIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload uploadWindow = Get<UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload>();
                    string adGroupName = AdCenterFramework.Object.AdGroup.NextAdName(this.RandomData);
                    AdGroupBVT.Advertisement = TestHelper.AddAdGroup(adGroupName, uploadWindow.VerifyUploadOneAdCenterAdvertisement);
                }
            );
        }
示例#2
0
 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.StartDate, other.StartDate, StringComparison.OrdinalIgnoreCase))
     {
         return false;
     }
     if (!string.Equals(this.EndDate, other.EndDate, StringComparison.OrdinalIgnoreCase))
     {
         return false;
     }
     if (!string.Equals(this.SearchBid, other.SearchBid, StringComparison.OrdinalIgnoreCase))
     {
         return false;
     }
     if (!string.Equals(this.ContentBid, other.ContentBid, 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;
 }
示例#3
0
 public static AdGroup Parse(WinRow row)
 {
     if (row.Cells.Count != 18)
     {
         throw new Exception("The count of cell in ad group grid should be equal to 18!");
     }
     AdGroup ad = new AdGroup
     {
         CampaignName = GridViewUtilities.GetValueProperty(row.Cells[2]),
         Name = GridViewUtilities.GetValueProperty(row.Cells[3]),
         Status = GridViewUtilities.GetValueProperty(row.Cells[4]),
         StartDate = GridViewUtilities.GetValueProperty(row.Cells[5]),
         EndDate = GridViewUtilities.GetValueProperty(row.Cells[6]),
         SearchBid = GridViewUtilities.GetValueProperty(row.Cells[7]),
         ContentBid = GridViewUtilities.GetValueProperty(row.Cells[8]),
         Performance = Performance.Parse(row, 9),
     };
     return ad;
 }
示例#4
0
 public override void OnTestInitialize()
 {
     base.OnTestInitialize();
     CampaignBVT.OnTestInitialize();
     campaign = TestHelper.AddCampaignForInit(this.RandomData);
     UIMaps.MainWindowClasses.MainWindow mainWindow = Get<UIMaps.MainWindowClasses.MainWindow>();
     mainWindow.ExpandAdCenterAccountTreeView();
     adGroup = TestHelper.AddAdGroupForInit(this.RandomData);
     mainWindow.ExpandAdCenterAccountTreeView();
     textAd = TestHelper.AddTextAdforInit(this.RandomData);
     mainWindow.ExpandAdCenterAccountTreeView();
 }
示例#5
0
        public void EditAdGroup_AdCenter()
        {
            OrderedTestInProgress(() =>
                {
                    Advertisement.Name = AdCenterFramework.Object.AdGroup.NextAdName(CampaignBVT.RandomData);

                    CommonUIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload uploadWindow = Get<UIMaps.DetailedInfoForUploadClasses.DetailedInfoForUpload>();
                    AdGroupBVT.Advertisement = TestHelper.AddAdGroup(
                        Advertisement.Name,
                        uploadWindow.VerifyUpdateOneAdvertisementForAdCenter);
                    UIMaps.MainWindowClasses.MainWindow mainWindow = Get<UIMaps.MainWindowClasses.MainWindow>();
                    mainWindow.ExpandAdCenterAccountTreeView();
                }
            );
        }