Exemple #1
0
        public void BookingWithoutGenderSmokeTest()
        {
            //•	Record A - A new name record.Make sure DOB and Gender are not set.
            Toolbar toolbar = new Toolbar(Toolbar.getPath());

            toolbar.WaitUntilLoads();
            toolbar.OpenNames();

            NamesTable namesTable = new NamesTable(NamesTable.getPath());

            namesTable.AddInmate(inmateRecordA);
            namesTable.Close();

            // Test Step: Open Start Booking using any method. Search for and select Record A.
            toolbar.StartBooking();

            NameQuickSearch inmateNameQuickSearch = new NameQuickSearch(NameQuickSearch.getPath());

            inmateNameQuickSearch.LastNameQuickSearchTextBox.TextValue = inmateRecordA;
            inmateNameQuickSearch.SearchButton.Click();
            inmateNameQuickSearch.FindCell(inmateRecordA).Click();
            inmateNameQuickSearch.SelectNameButton.Click();

            // VALIDATE:The information Required dialog opens asking for DOB and gender.
            CreateInmatePrerequisites createInmatePrerequisites = new CreateInmatePrerequisites(CreateInmatePrerequisites.getPath());

            Assert.That(createInmatePrerequisites.DOBTextBox.Visible);
            createInmatePrerequisites.AddGender("Male");
            createInmatePrerequisites.AddDOB("10101987");

            Assert.That(createInmatePrerequisites.SubmitButton.Visible);
            createInmatePrerequisites.SubmitButton.Click();

            // VALIDATE: The Start Booking screen is open and includes the name information.
            StartBooking startBooking = new StartBooking(StartBooking.getPath());

            Assert.That(startBooking.LastNameTextBox.Visible);
            Assert.That(startBooking.LastNameTextBox.Enabled);
            Assert.AreEqual(startBooking.LastNameTextBox.TextValue, inmateRecordA);
            startBooking.Close();
        }
Exemple #2
0
        public void TwoInmatesBookingSmokeTest()
        {
            //•	Record D - A name record with two inmate records. (Use the Add option on the inmate screen) neither inmate ID should have an open booking.
            Toolbar toolbar = new Toolbar(Toolbar.getPath());

            toolbar.WaitUntilLoads();
            toolbar.OpenNames();

            NamesTable namesTable = new NamesTable(NamesTable.getPath());

            namesTable.AddInmate(inmateRecordD, "10101987", "M", out inmateTempRecord);
            namesTable.Close();

            toolbar.OpenInmates();

            Inmate inmate = new Inmate(Inmate.getPath());

            inmate.AddInmate(inmateTempRecord);
            inmate.AddInmate(inmateTempRecord);
            inmate.Close();

            toolbar.StartBooking();
            NameQuickSearch inmateNameQuickSearch = new NameQuickSearch(NameQuickSearch.getPath());

            inmateNameQuickSearch.LastNameQuickSearchTextBox.TextValue = inmateRecordD;
            inmateNameQuickSearch.SearchButton.Click();
            inmateNameQuickSearch.FindCell(inmateRecordD).Click();
            inmateNameQuickSearch.SelectNameButton.Click();

            InmateSelector inmateSelector = new InmateSelector(InmateSelector.getPath());

            inmateSelector.SelectInmateButton.Click();

            StartBooking startBooking = new StartBooking(StartBooking.getPath());

            Assert.AreEqual(startBooking.LastNameTextBox.TextValue, inmateRecordD);
            startBooking.Close();
        }
Exemple #3
0
        public void BookingJuvenileSmokeTest()
        {
            //•	Record B - A name record where the DOB places the individual under the Module.Jail.adultAge setting (18)
            Toolbar toolbar = new Toolbar(Toolbar.getPath());

            toolbar.WaitUntilLoads();
            toolbar.OpenNames();

            NamesTable namesTable = new NamesTable(NamesTable.getPath());

            namesTable.AddInmate(inmateRecordB, "10102005", "M");
            namesTable.Close();

            //Test Step: Start a new booking for Record B.
            toolbar.StartBooking();

            Validate.Exists(NameQuickSearch.getPath(), _searchTime);
            NameQuickSearch inmateNameQuickSearch = new NameQuickSearch(NameQuickSearch.getPath());

            inmateNameQuickSearch.LastNameQuickSearchTextBox.TextValue = inmateRecordB;
            inmateNameQuickSearch.SearchButton.Click();
            inmateNameQuickSearch.FindCell(inmateRecordB).Click();
            inmateNameQuickSearch.SelectNameButton.Click();

            StartBooking startBooking = new StartBooking(StartBooking.getPath());

            startBooking.StartNewButton.Click();

            //VALIDATE:The Juvenile Instructions dialog opens and shows the text you added in setup.
            SpillmanMessageBox msgBox = new SpillmanMessageBox(SpillmanMessageBox.getPath());

            Assert.IsTrue(msgBox.Visible);
            Assert.IsTrue(msgBox.HasText("This person is a juvenile"));

            msgBox.Close();
            startBooking.Close();
        }