Esempio n. 1
0
        public void Create_Packages()
        {
            int rowIndex = 1;

            WF_QaRcrdCtrl_QaDIR.LoginToDirPage(UserType.DIRMgrQA);
            QaRcrdCtrl_QaDIR.ClickTab_Create_Packages();
            GridHelper.SortColumnAscending(PackagesColumnNameType.Week_Start); //sort to have oldest Week Start date on top
            string weekStart = QaRcrdCtrl_QaDIR.GetDirPackageWeekStartFromRow(rowIndex).Trim();

            string[] newDIRs = QaRcrdCtrl_QaDIR.GetDirPackageDirNumbersFromRow(PackagesColumnNameType.New_DIRs, rowIndex);

            GridHelper.ClickCreateBtnForRow(rowIndex);

            bool pkgIsCreated = QaRcrdCtrl_QaDIR.Verify_Package_Created(weekStart, newDIRs);

            AddAssertionToList(pkgIsCreated, "Verify DIR Package Created Successfully");
            WF_QaRcrdCtrl_QaDIR.VerifyDbCleanupForCreatePackages(pkgIsCreated, weekStart, newDIRs);
            AssertAll();
        }