예제 #1
0
        public void TestInitialize()
        {
            BrowserStateManager.RefreshState();
            HomePageHelper.OpenSandboxPage();
            //HomePageHelper.DeleteAllElementsLocally();
            TourHelper.DeleteToursIfExist("webdriverTour");

            #region create timeline

            _newTimeline = new Timeline
            {
                FromYear = -6061670000,
                ToYear   = -5808809999,
                Title    = "WebDriverApiTitle"
            };
            Guid newTimelineId = ApiHelper.CreateTimelineByApi(_newTimeline);
            _newTimeline.Id = newTimelineId;

            #endregion

            #region create exhibit

            var contentItems = new Collection <ContentItem>();
            var contentItem  = new ContentItem()
            {
                Title = "WebDriverApi", MediaType = "image", Uri = @"http://yandex.st/www/1.609/yaru/i/logo.png", Caption = "", Order = 0, Attribution = "", MediaSource = ""
            };
            contentItems.Add(contentItem);

            _newExhibit = new Exhibit()
            {
                Timeline_ID  = newTimelineId,
                Title        = "WebDriverApiExhibit",
                Year         = -8596430000,
                ContentItems = contentItems
            };
            _newExhibit.Id = new Guid(ApiHelper.CreateExhibitByApi(_newExhibit).ExhibitId);

            #endregion

            #region init new tour

            _newTour             = new Tour();
            _newTour.Name        = "webdriverTour";
            _newTour.Description = "webdriver description";
            Bookmark exhibitBookmark = new Bookmark {
                Name = "WebDriverApiExhibitBookmark", Id = _newExhibit.Id, Type = "exhibit"
            };
            Bookmark timelineBookmark = new Bookmark {
                Name = "WebDriverApiTimelineBookmark", Id = _newTimeline.Id, Type = "timeline"
            };
            Collection <Chronozoom.Entities.Bookmark> bookmarks = new Collection <Chronozoom.Entities.Bookmark> {
                exhibitBookmark, timelineBookmark
            };
            _newTour.Bookmarks = bookmarks;

            #endregion

            HomePageHelper.OpenSandboxPage();
        }
예제 #2
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     SearchHelper.InitSearchWindow();
 }
예제 #3
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     WelcomeScreenHelper.CloseWelcomePopup();
     AuthorizationHelper.OpenLoginPage();
 }
 public static void ClassInitialize(TestContext testContext)
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenSandboxPage();
     HomePageHelper.DeleteAllElementsLocally();
     ExhibitHelper.AddExhibitWithContentItem(Exhibit);
     _newExhibit = ExhibitHelper.GetNewExhibit();
 }
예제 #5
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
     AuthorizationHelper.AuthenticateAsExistedGoogleUser();
     HomePageHelper.DeleteAllElementsLocally();
 }
예제 #6
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     if (AuthorizationHelper.IsUserNamePresented())
     {
         AuthorizationHelper.OpenLoginPage();
         AuthorizationHelper.AuthenticateAsMicrosoftUser();
     }
 }
예제 #7
0
        public static void ClassInitialize(TestContext testContext)
        {
            BrowserStateManager.RefreshState();
            HomePageHelper.OpenSandboxPage();

            _timeline = new Timeline {
                Title = "WebdriverTitle"
            };
            HomePageHelper.DeleteAllElementsLocally();
            TimelineHelper.AddTimeline(_timeline);
            _newTimeline = TimelineHelper.GetLastTimeline();
        }
예제 #8
0
        public static void ClassInitialize(TestContext testContext)
        {
            BrowserStateManager.RefreshState();
            HomePageHelper.OpenSandboxPage();

            _timeline = new Timeline {
                Title = RandomString.GetRandomString(1, 200, isUsingSpecChars: true)
            };
            HomePageHelper.DeleteAllElementsLocally();
            TimelineHelper.AddTimeline(_timeline);
            _newTimeline = TimelineHelper.GetLastTimeline();
        }
예제 #9
0
        public void TestInitialize()
        {
            BrowserStateManager.RefreshState();
            HomePageHelper.OpenPage();
            AuthorizationHelper.OpenLoginPage();
            AuthorizationHelper.AuthenticateAsMicrosoftUser(); //authenticate as existing cz user
            HomePageHelper.DeleteAllElementsLocally();
            var exhibit = new Exhibit {
                Title = "WebdriverExhibitWithContent"
            };

            ExhibitHelper.AddExhibitWithoutFormClosing(exhibit);
            ExhibitHelper.ClickByAddArtifact();
        }
예제 #10
0
        public void TestInitialize()
        {
            BrowserStateManager.RefreshState();
            #region create exhibit

            var contentItems = new Collection <ContentItem>();
            var contentItem  = new ContentItem {
                Title = "WebDriverApi", MediaType = "image", Uri = @"http://yandex.st/www/1.609/yaru/i/logo.png", Caption = "", Order = 0, Attribution = "AttributionApI", MediaSource = "https://trello.com/board/development/510a91105420848638003cda"
            };
            contentItems.Add(contentItem);

            _newExhibit = new Exhibit
            {
                Timeline_ID  = new Guid("bdc1ceff-76f8-4df4-ba72-96b353991314"),
                Title        = "WebDriverApiExhibitAlexey",
                Year         = -8596430000,
                ContentItems = contentItems
            };
            _newExhibit.Id = new Guid(ApiHelper.CreateExhibitByApi(_newExhibit).ExhibitId);

            #endregion
            HomePageHelper.OpenSandboxPage();
        }
예제 #11
0
 public static void ClassInitialize(TestContext testContext)
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     _homePageTitle = HomePageHelper.GetTitle();
 }
예제 #12
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
 }
예제 #13
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenSandboxPage();
     HomePageHelper.DeleteAllElementsLocally();
 }
예제 #14
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     SearchHelper.InitSearchWindow();
 }
예제 #15
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     NavigationHelper.OpenHomePage();
 }
예제 #16
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     WelcomeScreenHelper.ResetPopupState();
     HomePageHelper.OpenPage();
 }
예제 #17
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
 }
예제 #18
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     HomePageHelper.OpenPage();
     AuthorizationHelper.OpenLoginPage();
 }
예제 #19
0
 public void TestInitialize()
 {
     BrowserStateManager.RefreshState();
     NavigationHelper.OpenHomePage();
     WelcomeScreenHelper.CloseWelcomePopup();
 }