コード例 #1
0
        public void TestMethod1()
        {
            JobsearchPage.Go();
            JobsearchPage.ClickACurrentJob();

            JobsPage.FillApplyNowForm("name", "last name", "N", "*****@*****.**", "809-555-555", "Bartolome Colon", "Santiago de los Caballeros", "51000");
        }
コード例 #2
0
 public Tests(Platform platform)
 {
     this.platform        = platform;
     this.loginPage       = new LoginPage();
     this.jobsPage        = new JobsPage();
     this.jobsDetailsPage = new JobsDetailsPage();
 }
コード例 #3
0
 public static void Init()
 {
     Login       = new LoginPage();
     Dashboard   = new DashboardPage();
     Profile     = new ProfilePage();
     ExploreJobs = new ExploreJobsPage();
     Jobs        = new JobsPage();
 }
コード例 #4
0
        public void TC_SelectCustomer()
        {
            JobsPage.WaitForIndicatorElementReady();

            JobsPage.SelectCustomer("My Customers", "bycustomer");
            Assert.IsTrue(JobsPage.Table.DoesRowExists("lpv01"));

            JobsPage.CustomerList().SelectByText("Color Customers");
            Assert.IsTrue(JobsPage.Table.DoesRowExists("444"));
        }
コード例 #5
0
        public void NavbarTitle()
        {
            JobsPage page = Dashboard.GoToJobsPage();

            // Verify title
            Link title = page.Navbar.TitleLink;

            Assert.True(title.IsUserAccesible);
            Assert.Equal("Microsoft Azure WebJobs", title.Text);
            Assert.Equal(Dashboard.BuildFullUrl(JobsPage.RelativePath), title.Href);
        }
コード例 #6
0
        public MainWindow()
        {
            InitializeComponent();

            jobsPage             = new JobsPage();
            panelContent.Content = jobsPage;
            officesPage          = new OfficesPage();

            sbUser.Content     = Environment.UserName;
            sbComputer.Content = Environment.MachineName;
        }
コード例 #7
0
        public void TC_DeleteJob()
        {
            string jobToDelete = "by_002";

            JobsPage.WaitForIndicatorElementReady();
            JobsPage.DeleteJob(jobToDelete);

            WebDriverWait wait = new WebDriverWait(DriverManager.Driver, TimeSpan.FromSeconds(60));

            Assert.IsTrue(wait.Until(driver => driver.FindElements(By.XPath(string.Format("//div[@class='jobMainItemBody']//div[@class='name jobMainItemCol']/u[text()='{0}']", jobToDelete))).Count == 0));
        }
コード例 #8
0
        public void TC_IPP9_Example()
        {
            const string jobName  = "lpv01";
            const string pageName = "Alta Vista Destinations Cook Book_70p.p19.pdf";

            JobsPage.WaitForIndicatorElementReady();
            JobsPage.Table.MarkRow(jobName);
            JobsPage.Table.SelectRow(jobName);

            JobPage.Table.MarkRow(pageName);
        }
コード例 #9
0
        public void JobsPage_DiscoveryPollerIsFilteredOut()
        {
            var mock1 = new MicrowaveBackgroundService <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >(null,
                                                                                                                 new PollingInterval <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >());
            var mock2    = new MicrowaveBackgroundService <DiscoveryPoller>(null, new PollingInterval <DiscoveryPoller>());
            var jobsPage = new JobsPage(
                new MicrowaveWebApiConfiguration(),
                new List <IMicrowaveBackgroundService> {
                mock1, mock2
            });

            Assert.AreEqual(1, jobsPage.Jobs.Count());
        }
コード例 #10
0
        public void Navbar_Buttons()
        {
            JobsPage page = Dashboard.GoToJobsPage();

            // Verify navbar
            IEnumerable <Link> links = page.Navbar.NavLinks;

            Assert.Equal(1, links.Count());

            Link functionLink = links.First();

            Assert.True(functionLink.IsUserAccesible);
            Assert.Equal("Functions", functionLink.Text);
            Assert.Equal(Dashboard.BuildFullUrl(FunctionsPage.RelativePath), functionLink.Href);
        }
コード例 #11
0
        public void JobsPage_HandlerLists()
        {
            var mock1 = new MicrowaveBackgroundService <ReadModelEventHandler <TestIdQuery> >(null,
                                                                                              new PollingInterval <ReadModelEventHandler <TestIdQuery> >());
            var mock3 = new MicrowaveBackgroundService <QueryEventHandler <QueryTest, TestDomainEvent1> >(null,
                                                                                                          new PollingInterval <QueryEventHandler <QueryTest, TestDomainEvent1> >());
            var mock2 = new MicrowaveBackgroundService <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >(null,
                                                                                                                 new PollingInterval <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >());
            var jobsPage = new JobsPage(
                new MicrowaveWebApiConfiguration(),
                new List <IMicrowaveBackgroundService> {
                mock1, mock2, mock3
            });

            Assert.AreEqual(1, jobsPage.AsyncHandlers.Count());
            Assert.AreEqual(1, jobsPage.QueryHandlers.Count());
            Assert.AreEqual(1, jobsPage.ReadModelHandlers.Count());
        }
コード例 #12
0
        public void JobsPage()
        {
            var mock1 = new MicrowaveBackgroundService <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >(null,
                                                                                                                 new PollingInterval <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >());
            var mock2 = new MicrowaveBackgroundService <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >(null,
                                                                                                                 new PollingInterval <AsyncEventHandler <TestEventHandler, TestDomainEvent1> >());
            var jobsPage = new JobsPage(
                new MicrowaveWebApiConfiguration(),
                new List <IMicrowaveBackgroundService> {
                mock1, mock2
            });

            Assert.IsNotNull(jobsPage.Jobs);

            var onPostAsync = jobsPage.OnPostAsync(1);

            Assert.IsNotNull(onPostAsync);
            Assert.AreEqual(2, jobsPage.Jobs.Count());
        }
コード例 #13
0
        public void JobsPage_NoJobs()
        {
            JobsPage page = Dashboard.GoToJobsPage();

            Header header = page.JobsSection.Title;

            Assert.True(header.IsUserAccesible);
            Assert.Equal("WebJobs", header.Text);

            IEnumerable <TableRow> rows = page.JobsSection.Table.BodyRows;

            Assert.Equal(1, rows.Count());
            TableRow noJobsRow = rows.First();

            IEnumerable <TableCell> cells = noJobsRow.Cells;

            Assert.Equal(1, cells.Count());
            TableCell noJobsCell = cells.First();

            Assert.Equal(3, noJobsCell.ColSpan);
            Assert.Equal("There are no WebJobs in this website. See this article about using WebJobs.", noJobsCell.RawElement.Text);
        }
コード例 #14
0
        public void Navbar_Buttons()
        {
            JobsPage page = Dashboard.GoToJobsPage();

            Navbar navbar = page.Navbar;

            // Verify title
            Link title = navbar.TitleLink;

            Assert.True(title.IsUserAccesible);
            Assert.Equal("Microsoft Azure WebJobs", title.Text);
            Assert.Equal(Dashboard.BuildFullUrl(JobsPage.RelativePath), title.Href);

            // Verify navbar
            IEnumerable <Link> links = navbar.NavLinks;

            Assert.Equal(3, links.Count());

            Link functionLink = links.ElementAt(0);

            Assert.True(functionLink.IsUserAccesible);
            Assert.Equal("Functions", functionLink.Text);
            Assert.Equal(Dashboard.BuildFullUrl(FunctionsPage.RelativePath), functionLink.Href);

            Link searchLink = links.ElementAt(1);

            Assert.True(searchLink.IsUserAccesible);
            Assert.Equal("Search Blobs", searchLink.Text);
            Assert.Equal(Dashboard.BuildFullUrl(SearchBlobPage.RelativePath), searchLink.Href);

            Link aboutLink = links.ElementAt(2);

            Assert.True(functionLink.IsUserAccesible);
            Assert.Equal("About", aboutLink.Text);
            Assert.Equal(Dashboard.BuildFullUrl(AboutPage.RelativePath), aboutLink.Href);
        }
コード例 #15
0
 public void TestSetup()
 {
     LoginPage.Login("administrator", "Kodak");
     JobsPage.WaitForIndicatorElementReady();
 }
コード例 #16
0
        public void WhenIOpenJobsPageFromCareerSectionInMainMenu()
        {
            var moreMenu = _mainPage.MainMenu().OpenMoreSubmenu();

            _jobsPage = moreMenu.OpenJobsPage();
        }
コード例 #17
0
 public void TC_CreateJob()
 {
     JobsPage.CreateJob("by_002");
 }