Example #1
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();

        }
Example #2
0
 public Inmate(string xPath) : base(xPath)
 {
     Validate.Exists(getPath(), _searchTime);
     _toolbarInstance = this;
 }
Example #3
0
        public void NoNameBookingSmokeTest()
        {
            //•	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(inmateRecordA);
            namesTable.Close();

            //Test Step: Start a no-name booking. 
            toolbar.NoNameBooking();
            NoNameBooking startBooking = new NoNameBooking(NoNameBooking.getPath());
            startBooking.LocationTextBox.Click(); 
            startBooking.LocationTextBox.PressKeys("Block A Cell FJP1-1");
            startBooking.LocationTextBox.PressKeys("{enter}");
            startBooking.ProceedButton.Click();

            Validate.Exists(BookingChecklist.getPath(), _searchTime);
            BookingChecklist bookingChecklist = new BookingChecklist(BookingChecklist.getPath());
            bookingChecklist.InmateRecordLink.Click();

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

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

            bookingChecklist.Activate();

            //VALIDATE:The Juvenile Instructions dialog opens and shows the text you added in setup. 
            Assert.AreEqual(bookingChecklist.LastNameText.TextValue, inmateRecordA);
            bookingChecklist.Close();
            inmate.Close();
        }
Example #4
0
 public Inmate(string xPath) : base(xPath)
 {
     Validate.Exists(getPath(), _searchTime);
     _toolbarInstance = this;
 }