示例#1
0
        public void RePlanLog()

        {
            PlanLogTab.Clicks();

            DprtmntSelect.WaitUntil();

            DprtmntSelect.SelectDropdown("Granite City - GrC");

            TeamSelect.WaitUntil();

            TeamSelect.SelectDropdown("Test Team");

            UserSelect.WaitUntil();

            UserSelect.SelectDropdown("Automation User 1");

            string timeStamp = DateTime.Now.ToString("M'/'d'/'yyyy");

            Assert.IsTrue(Date.GetText().Equals(timeStamp));
        }
示例#2
0
        public void PlanLog()
        {
            PlanLogTab.WaitUntil();

            PlanLogTab.Clicks();

            DprtmntSelect.WaitUntil();

            DprtmntSelect.SelectDropdown("Granite City - GrC");

            TeamSelect.WaitUntil();

            TeamSelect.SelectDropdown("Test Team");

            UserSelect.WaitUntil();

            UserSelect.SelectDropdown("Automation User 1");

            Console.WriteLine("The selected Department is " + DprtmntSelect.GetTextFromDdL());

            Console.WriteLine("The selected Team is " + TeamSelect.GetTextFromDdL());

            Console.WriteLine("The selected User is " + UserSelect.GetTextFromDdL());

            string timeStamp = DateTime.Now.ToString("M'/'d'/'yyyy");

            Console.WriteLine("PC Date " + timeStamp);

            Console.WriteLine("Plan/Log Date " + Date.GetText());

            Assert.IsTrue(PlanStatus("Not Started").Displayed);

            Assert.IsTrue(Date.GetText().Equals(timeStamp));

            /*Calender.Clicks();
             *
             * for (var i = 0; i < 11; i++)
             * {
             *
             *  PrevDate.WaitUntil();
             *
             *  PrevDate.Clicks();
             * }
             *
             * SelectDate(26).Clicks();
             *
             * while (true)
             * {
             *  if (PlanStatus.Text != "Not Started")
             *  {
             *      Calender.Clicks();
             *
             *      for (var j = 0; j < 10; j++)
             *      {
             *          _count++;
             *
             *          PrevDate.WaitUntil();
             *
             *          PrevDate.Clicks();
             *      }
             *
             *      SelectDate.Clicks();
             *  }
             *
             *  else
             *  {
             *      break;
             *  }
             * }*/
        }