Ejemplo n.º 1
0
        public void CopyPlan()
        {
            WaitforIt(Properties.InactivePhase); TaskResourceView.WaitUntil();

            TaskResourceView.SelectDropdown("Task");

            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Volume");

            VolumeTimePerformance.WaitUntil();

            SelectDateDropdown.SelectIndex(3);

            AddBtn.Clicks();

            ExistingPlan.WaitUntil();

            ExistingPlan.Clicks();

            CopyPlanClick.WaitUntil();

            CopyPlanClick.Clicks();

            AddBtn.WaitUntil();

            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Equals("2"));

                Assert.That(TotalPlanV1.Text.Equals("1600"));

                Assert.That(SavedElement, Is.Not.Null);
            }

                             ));
        }
Ejemplo n.º 2
0
        /* public void AddActual()
         *
         * {
         *   AddBtn.WaitUntil();
         *
         *   AddBtn.Clicks();
         *
         *   AddActuals.WaitUntil();
         *
         *   AddActuals.Clicks();
         *
         *   AddtoDSC.WaitUntil();
         *
         *   AddtoDSC.Clicks();
         * }*/



        public void ViewChecking()

        {
            TaskResourceView.WaitUntil(); TaskResourceView.SelectDropdown("Resource");

            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Volume");

            VolumeTimePerformance.WaitUntil(); WaitforIt(Properties.InactivePhase);


            Assert.Multiple((() =>
            {
                Assert.That(ResourceVolumePerformance(0).Text.Contains("200%"));

                Assert.That(ResourceVolumePerformance(2).Text.Contains("200%"));

                Assert.That(ResourceVolumePerformance(3).Text.Contains("200%"));

                Assert.That(ResourceVolumePerformance(4).Text.Contains("200%"));

                Assert.That(ResourceVolumePerformance(5).Text.Contains("100%"));

                Assert.That(ResourceVolumePerformance(9).Text.Contains("300%"));

                Assert.That(ResourceVolumePerformance(10).Text.Contains("300%"));

                Assert.That(ResourceVolumePerformance(11).Text.Contains("200%"));

                Assert.That(ResourceVolumePerformance(12).Text.Contains("200%"));

                Assert.That(ResourceVolumeTotalP.Text.Contains("225%"));

                Assert.That(ResourceVolumeCollumnP1.Text.Contains("700"));
            }

                             ));


            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Time");

            VolumeTimePerformance.WaitUntil(); WaitforIt(Properties.InactivePhase);


            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Contains("2"));

                Assert.That(TotalPlanV1.Text.Contains("1600"));

                Assert.That(TotalActT1.Text.Contains("2"));

                Assert.That(TotalActV1.Text.Contains("1300"));

                Assert.That(ResourceVolumeCollumnP1.Text.Contains("1"));

                Assert.That(ResourceVolumeTotalP.Text.Contains("225%"));
            }

                             ));


            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Performance");

            VolumeTimePerformance.WaitUntil(); WaitforIt(Properties.InactivePhase);

            Assert.Multiple((() =>
            {
                Assert.That(ResourcePerformanceTa.Text.Contains("4.5/2 225%"));

                Assert.That(ResourcePerformanceT0.Text.Contains("1/0.5 200%"));
            }

                             ));


            TaskResourceView.WaitUntil();

            TaskResourceView.SelectDropdown("Task");

            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Time");

            VolumeTimePerformance.WaitUntil(); WaitforIt(Properties.InactivePhase);


            Assert.Multiple((() =>
            {
                Assert.That(TotalPLanT1.Text.Contains("2"));

                Assert.That(TotalPlanV1.Text.Contains("1600"));

                Assert.That(TotalActT1.Text.Contains("2"));

                Assert.That(TotalActV1.Text.Contains("1300"));

                Assert.That(ResourceVolumeCollumnP1.Text.Contains("1"));

                Assert.That(ResourceVolumeTotalP.Text.Contains("225%"));
            }

                             ));


            VolumeTimePerformance.WaitUntil();

            VolumeTimePerformance.SelectDropdown("Performance");

            VolumeTimePerformance.WaitUntil(); WaitforIt(Properties.InactivePhase);


            Assert.Multiple((() =>
            {
                Assert.That(ResourcePerformanceT0.Text.Contains("1/0.5 200%"));
            }

                             ));
        }