コード例 #1
0
        public void DadoReportSemSummary()
        {
            ////arrange
            var loginPO = new LoginPO(driver);

            loginPO.Visitar();
            loginPO.LoginValido();

            var dashboardPO = new DashboardPO(driver);

            dashboardPO.ClicarLinkReportIssues();

            var projetoPO = new SelecionarProjetoDoErroPO(driver);

            projetoPO.SelecionaProjeto("Ana Lima´s Project");
            projetoPO.SubmeteFormulario();

            var reportErroPO = new ReportarErroPO(driver);

            reportErroPO.PreencherFormulario("[All Projects] General", "", "ana7");

            //act
            reportErroPO.SubmeteFormulario();

            //assert
            Assert.Contains("A necessary field \"Summary\" was empty.", driver.PageSource);
        }
コード例 #2
0
        public void DadoReportComCamposValidos()
        {
            //arrange
            var loginPO = new LoginPO(driver);

            loginPO.Visitar();
            loginPO.LoginValido();

            var dashboardPO = new DashboardPO(driver);

            dashboardPO.ClicarLinkReportIssues();

            var projetoPO = new SelecionarProjetoDoErroPO(driver);

            projetoPO.SelecionaProjeto("Ana Lima´s Project");
            projetoPO.SubmeteFormulario();

            var reportErroPO = new ReportarErroPO(driver);

            reportErroPO.PreencherFormulario("[All Projects] General", "ana7", "ana7");

            //act
            reportErroPO.SubmeteFormulario();

            //assert
            Assert.Contains("Operation successful", driver.PageSource);
        }