Beispiel #1
0
        public void ViewSelectDescription()
        {
            //Login
            FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(new[] { "NewMarksheet" }, FeatureBee.FeatureBeeLogin.iSIMSUserType.TestUser);

            //Going to desired path

            AutomationSugar.NavigateMenu("Tasks", "Assessment", "Manage Templates");
            WaitUntillAjaxRequestCompleted();
            //Create page object of marksheet home
            CreateMarksheetTypeSelectionPage marksheetTypeMenuPage = new CreateMarksheetTypeSelectionPage();
            CreateMarksheet createMarksheet = (CreateMarksheet)marksheetTypeMenuPage.MarksheetTypeSelection("New Template(Blank)");

            WaitUntillAjaxRequestCompleted();
            CurriculumMarksheetMaintainance curriculummarksheetmaintainance = new CurriculumMarksheetMaintainance();
            string TemplateName        = curriculummarksheetmaintainance.GenerateRandomString(10);
            string TemplateDescription = curriculummarksheetmaintainance.GenerateRandomString(20);

            createMarksheet.FillTemplateDetails(TemplateName, TemplateDescription);
            Thread.Sleep(500);
            curriculummarksheetmaintainance = curriculummarksheetmaintainance.SelectCurriculum();

            int[] checkedboxIndex = { 5, 6, 7 };
            foreach (var index in checkedboxIndex)
            {
                curriculummarksheetmaintainance = curriculummarksheetmaintainance.CheckStatement(index);
            }

            int SelectedTextCount = curriculummarksheetmaintainance.GetSelectedCount();
            int GetCheckedCount   = curriculummarksheetmaintainance.GetCheckedCount();

            Assert.AreEqual(SelectedTextCount, GetCheckedCount);
        }
Beispiel #2
0
        public void SaveTemplate()
        {
            //Login
            FeatureBee.FeatureBeeLogin.LoginWithFeatureBee(new[] { "NewMarksheet" }, FeatureBee.FeatureBeeLogin.iSIMSUserType.TestUser);

            //Going to desired path
            AutomationSugar.NavigateMenu("Tasks", "Assessment", "Manage Templates");
            WaitUntillAjaxRequestCompleted();
            //Create page object of marksheet home
            CreateMarksheetTypeSelectionPage marksheetTypeMenuPage = new CreateMarksheetTypeSelectionPage();
            CreateMarksheet createMarksheet = (CreateMarksheet)marksheetTypeMenuPage.MarksheetTypeSelection("New Template(Blank)");

            WaitUntillAjaxRequestCompleted();
            CurriculumMarksheetMaintainance curriculummarksheetmaintainance = new CurriculumMarksheetMaintainance();
            string TemplateName        = curriculummarksheetmaintainance.GenerateRandomString(10);
            string TemplateDescription = curriculummarksheetmaintainance.GenerateRandomString(20);

            createMarksheet.FillTemplateDetails(TemplateName, TemplateDescription);

            curriculummarksheetmaintainance = curriculummarksheetmaintainance.SelectCurriculum();
            curriculummarksheetmaintainance.SelectStatement();
            // Add Selected Columns
            curriculummarksheetmaintainance = curriculummarksheetmaintainance.AddSelectedColumns();
            Thread.Sleep(500);

            curriculummarksheetmaintainance = curriculummarksheetmaintainance.Save();
            Thread.Sleep(2000);
        }