Esempio n. 1
0
 public void tc_57265_As_an_Admin_Create_an_evaluation_with_Pass_Fail_to_No_default_setting()
 {
     CommonSection.CreateLink.Evaluation();
     Assert.IsTrue(Driver.Instance.Title.Equals("Evaluation"));
     Assert.IsTrue(EvaluationPage.Type.isEvaluationSelected());
     Assert.IsTrue(EvaluationPage.Evaluatormustmarkaspassfail.Defectvalue("No"));
     EvaluationPage.Title(EvaluationTitle + "TC57265").Keywors("test").Create();
     Assert.IsTrue(EvaluationPage.EvaluationTileis(EvaluationTitle + "TC57265"));
 }
Esempio n. 2
0
        public void tc_61736_As_an_Admin_Cant_choose_to_display_in_Catalog_in_Edit_Evaluation()
        {
            CommonSection.Logout();
            LoginPage.LoginAs("").WithPassword("").Login();
            CommonSection.Manage.SurveysAndEvaluations();
            SurveycosolePage.Create.Evaluation();

            Assert.IsFalse(EvaluationPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is not Display");
            EvaluationPage.Title(EvaluationTitle + "TC61736").Keywors("test").Create();

            CommonSection.Manage.SurveysAndEvaluations(); //New Eval-1903
            SurveycosolePage.ItemTab.search("Evaluation", EvaluationTitle + "TC58492");
            SurveycosolePage.ItemTab.ResultTable.clickEvalustionTitle(EvaluationTitle + "TC58492");
            ContentDetailsPage.Summary.ClickEditButton();
            Assert.IsFalse(EvaluationPage.AvailableinCatalog.isAvailableinCatalogOptionisDisplay());
            _test.Log(Status.Pass, "Verifed Available in Catalog Option is not Display");
        }
Esempio n. 3
0
        public void tc_58492_As_an_admin_Include_evaluation_to_Training_Assignment_content()
        {
            CommonSection.Manage.SurveysAndEvaluations();
            SurveycosolePage.Create.Evaluation();
            EvaluationPage.ClickCanbeaddedtocontainersortrainingassignments();
            EvaluationPage.Title(EvaluationTitle + "TC58492").Keywors("test").Create();
            SurveyPage.Click_Publish();
            CommonSection.Manage.Training();
            _test.Log(Status.Info, "Navigate to Manage >> Training Page");
            TrainingPage.TrainingAssignments.Click_CreateTrainingAssignment();
            _test.Log(Status.Info, "Click Create Training Assignment link from training assignment portlet");
            CreateTrainingAssignmentPage.Create(TATitle + "TC58492");
            _test.Log(Status.Info, "A new training assignement created as draft");
            CreateTrainingAssignmentPage.ContentTab.ClickAddContent();
            _test.Log(Status.Info, "Click Add Content");

            _test.Log(Status.Info, "Click Add Content");
            CreateTrainingAssignmentPage.ContentTab.AddContentModal.AddContent(EvaluationTitle + "TC58492");
            _test.Log(Status.Info, "Content added to training assignment");
            CreateTrainingAssignmentPage.AssignessTab.ClickAddAssignees();
            _test.Log(Status.Info, "Click Add Assignees button in Assignees tab");
            CreateTrainingAssignmentPage.AssignessTab.AddAssignessModal.AddAssigne("learner 101");
            _test.Log(Status.Info, "A user added to training assignment");
            CreateTrainingAssignmentPage.DueDateTab.ClickChage();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            string previousCompletions = CreateTrainingAssignmentPage.DueDateTab.AssignmentDueDateModal.SetPreviousCompletionsYesandRecurringNo("days");

            _test.Log(Status.Info, "Set Previous Completions count and save for Non recurring assignement");
            CreateTrainingAssignmentPage.ClickDueDateTab();
            _test.Log(Status.Info, "Click Chage button in Due Date tab");
            Assert.IsTrue(CreateTrainingAssignmentPage.DueDateTab.VerifyPreviousComplistion(previousCompletions));
            _test.Log(Status.Pass, "Verify Copletion count saved properly");
            CreateTrainingAssignmentPage.clickAssignButton();

            CommonSection.Logout();
            LoginPage.LoginAs("srlearner101").WithPassword("").Login();
            CommonSection.Learn.CurrentTraining();
            CurrentTrainingPage.allContenttypefilter.selectEvaluation();
            Assert.IsTrue(CurrentTrainingPage.ContentList.isContentTypeDisplay("Evaluation"));
            TC60869 = true;
        }