Example #1
0
 //      [Fact(DisplayName = "Should Go to Right Find (Test) Home Page")]
 public void Should_Go_to_RightFind_Test_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_RightFind_Test_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.RightFindHomePage.Go(WebEnvironment.TestEnvironment);
     Assert.True(AbtPages.RightFindHomePage.IsAt());
 }
Example #2
0
 //   [Fact(DisplayName = "Should Go to Rep Cap Planner Production Home Page")]
 public void Should_Go_to_RepCapPlanner_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.RepCapPlannerPage.Go();
     Assert.True(AbtPages.RepCapPlannerPage.isUserLoggedIn());
 }
Example #3
0
 //  [Fact(DisplayName = "Should Go to Right Find Production Home Page")]
 public void Should_Go_to_RightFind_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.RemoteSofianesIE);
     AbtPages.RightFindHomePage.Go(WebEnvironment.ProductionEnvironment);
     Assert.True(AbtPages.RightFindHomePage.IsUserLoggedIn());
 }
Example #4
0
 //Wants to go Trough AGI???
 //  [Fact(DisplayName = "Should Go to AbtKnowledge Production Home Page")]
 public void Should_Go_to_AbtKnowledge_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.RemoteInitDavidsPc(Browser.IE);
     AbtPages.AbtKnowledgePage.Go();
     Assert.True(AbtPages.AbtKnowledgePage.IsUserLoggedIn());
 }
Example #5
0
 //   [Fact(DisplayName ="Should Go to  AGI")]
 public void Should_Go_To_AGI()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_AGI_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     Assert.True(AbtPages.AgiHomePage.isAt());
 }
Example #6
0
 public void Should_Go_To_SANS_Prod()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_SANS_Response_Time);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.SANSHomepage.Go();
     Assert.True(AbtPages.SANSHomepage.IsAt());
 }
        public WatcherNotifyTestDataAttribute([NotNull] string expectations)
        {
            List <WatcherNotifyTestLine> testLines = ParseLines(expectations).ToList();

            var generator = new TestCaseGenerator(testLines);

            testCases = generator.GenerateCases();
        }
Example #8
0
 // [Fact(DisplayName = "Should Go to Service Now Production Home Page")]
 public void Should_Go_to_ServiceNow_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_ServiceNow_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.ServiceNowHomepage.Go(WebEnvironment.ProductionEnvironment);
     Assert.True(AbtPages.ServiceNowHomepage.IsAt());
 }
Example #9
0
 //  [Fact(DisplayName = "Should Go to WebEx Production Home Page")]
 public void Should_Go_to_WebEx_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.WebExPage.Go(WebEnvironment.ProductionEnvironment);
     Assert.True(AbtPages.WebExPage.isAt());
 }
Example #10
0
 //  [Fact(DisplayName = "Should Go to Oracle Production Home Page")]
 public void Should_Go_to_Oracle_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.AgiHomePage.Go();
     //   AbtPages.AgiHomePage.QuickLinks.GoTo(quickLinks.Oracle);
     Assert.True(AbtPages.OraclePage.isAt());
 }
Example #11
0
 //  [Fact(DisplayName = "Should Go to Concur (prod) Home Page using Okta")]
 public void Should_Go_to_Concur_Testing_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Test_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.ConcurHomePage.Go();
     Assert.True(AbtPages.ConcurHomePage.IsAt());
     SeleniumDriver.Close();
 }
Example #12
0
 // [Fact(DisplayName = "Should Get Concur Home Page Response Time")] //new link
 public void Should_Get_Concur_HomePage_Response_Time_2()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.ToolsDropdown.GoTo_Concur();
     AbtPages.ConcurHomePage.IsAt();
 }
Example #13
0
 // [Fact(DisplayName = "Should Go to Success Factor (Test) Home Page")]
 public void Should_Go_to_SuccessFactor_Test_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_SuccessFactors_test_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.SuccessFactorHomePage.Go(WebEnvironment.TestEnvironment);
     Assert.True(AbtPages.SuccessFactorHomePage.isAt());
     SeleniumDriver.Close();
 }
Example #14
0
 //  [Fact(DisplayName = "Should Go to Success Factor Production Home Page")]
 public void Should_Go_to_SuccessFactor_Production_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.RemoteSofianesIE);
     AbtPages.SuccessFactorHomePage.Go(WebEnvironment.ProductionEnvironment);
     Assert.True(AbtPages.SuccessFactorHomePage.isAt());
     SeleniumDriver.Close();
 }
Example #15
0
 //
 // [Fact(DisplayName = "Should Go to WeSpire (Production) Home Page using Simieo")]
 public void Should_Go_to_WeSpire_Production_HomePage() //Done
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.RemoteInit();
     AbtPages.WeSpireHomePage.Go(WebEnvironment.ProductionEnvironment);
     Assert.True(AbtPages.WeSpireHomePage.isAt());
     SeleniumDriver.Close();
 }
Example #16
0
 //   [Fact(DisplayName="Should Go To Ebsco Production Through AGI")]
 public void Should_Go_To_Ebsco_Production_Through_AGI()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Ebsco_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.ToolsDropdown.GoTo_AbtResearchLibrary();
     AbtPages.AgiAbtResearch.GoToEbscoDS();
     Assert.True(AbtPages.EbscoHomePage.isAt());
 }
Example #17
0
 // [Fact(DisplayName = "Should Go to Ebsco (Test) Home Page")]
 public void Should_Go_to_Ebsco_Test_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Ebsco_Test_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.EbscoHomePage.Go(WebEnvironment.TestEnvironment);
     Assert.True(AbtPages.EbscoHomePage.isAt());
     //AbtPages.EbscoHomePage.GoToMyAccount();
     // Assert.True(AbtPages.EbscoMyAccountPage.IsUserLoggedIn());
 }
Example #18
0
 //   [Fact(DisplayName ="Should Go to Right Find Production Through AGI")]
 public void Should_Go_RightFind_Prod_AGI()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_RightFindProd_Throug_AGI);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.ToolsDropdown.GoTo_AbtResearchLibrary();
     AbtPages.AgiAbtResearch.GoToRightFind();
     Assert.True(AbtPages.RightFindHomePage.IsAt());
 }
Example #19
0
 //  [Fact(DisplayName ="Should Go to Success Factor (Production) Through AGI")]
 public void Should_Go_SuccessFactor_Through_Agi()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_SuccessFactors_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.ToolsDropdown.GoToAtlas();
     Assert.True(AbtPages.SuccessFactorHomePage.isAt());
     SeleniumDriver.CloseAll();
 }
Example #20
0
 //    [Fact(DisplayName = "Should Go to WeSpire (Prod) Home Page using Okta")] //Goes through AGI
 public void Should_Go_to_WeSpire_Prod_HomePage()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_WeSpireHomePageResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.ToolsDropdown.GoToAbtExchange();
     Assert.True(AbtPages.WeSpireHomePage.isAt());
     SeleniumDriver.Close();
 }
Example #21
0
        /// <exception cref="System.Exception"/>
        protected internal override void InitFromParameters()
        {
            base.InitFromParameters();
            _effort = 0;
            string cases      = GetParam("test-cases", true);
            string casesClass = GetParam("test-case-class", true);

            if (cases == null && casesClass == null)
            {
                throw new Exception("No acceptable test-case parameter.");
            }
            if (casesClass != null)
            {
                // Get test cases from the TestCasesClass.
                Type   iclass  = Type.GetType(casesClass);
                object iObject = System.Activator.CreateInstance(iclass);
                if (!(iObject is TestCaseGenerator))
                {
                    throw (new Exception("test-case-class must inherit from class TestCaseGenerator"));
                }
                TestCaseGenerator testCaseGenerator = (TestCaseGenerator)iObject;
                int numTestCases = testCaseGenerator.TestCaseCount();
                for (int i = 0; i < numTestCases; i++)
                {
                    ObjectPair testCase = testCaseGenerator.TestCase(i);
                    float      @in      = (float)testCase._first;
                    float      @out     = (float)testCase._second;
                    Print(";; Fitness case #" + i + " input: " + @in + " output: " + @out + "\n");
                    _testCases.Add(new GATestCase(@in, @out));
                }
            }
            else
            {
                // Get test cases from test-cases.
                Program caselist = new Program(cases);
                for (int i = 0; i < caselist.Size(); i++)
                {
                    Program p = (Program)caselist.DeepPeek(i);
                    if (p.Size() < 2)
                    {
                        throw new Exception("Not enough elements for fitness case \"" + p + "\"");
                    }
                    float @in  = System.Convert.ToSingle(p.DeepPeek(0).ToString());
                    float @out = System.Convert.ToSingle(p.DeepPeek(1).ToString());
                    Print(";; Fitness case #" + i + " input: " + @in + " output: " + @out + "\n");
                    _testCases.Add(new GATestCase(@in, @out));
                }
            }
            // Create and initialize predictors
            _predictorEffortPercent = GetFloatParam("PREDICTOR-effort-percent", true);
            _predictorGA            = PredictionGA.PredictionGAWithParameters(this, GetPredictorParameters(_parameters));
        }
Example #22
0
 public void Should_create_IRR()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.ServiceNowCreateIRR);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.Chrome);
     AbtPages.ServiceNowHomepage.Go(WebEnvironment.TestEnvironment);
     AbtPages.ServiceNowHomepage.ImpersonateUser("Stella Laidoson");
     AbtPages.ServiceNowHomepage.OpenIRRSection();
     AbtPages.ServiceNowTaskBar.New();
     AbtPages.ServiceNowIRRForm.FillWithDefaultValues();
     AbtPages.ServiceNowTaskBar.Submit();
     //  Assert.True(AbtPages.ServiceNowIRRTable.NewIRRExists());
 }
Example #23
0
        // [Fact(DisplayName = "Should Go to Concur Production Home Page ")]
        public void Should_Go_to_Concur_Production_HomePage()
        {
            TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
            TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
            SeleniumDriver.init(Browser.IE);
            AbtPages.AgiHomePage.Go();
            AbtPages.AgiTopNavigation.HoverOverTools();
            AbtPages.AbtTravelPage.HoverOverAbtTravelOnline();
            AbtPages.AbtTravelPage.AbtTravelOnlineDropdown.BookOrSearchUsTravel();

            Assert.True(AbtPages.ConcurHomePage.isUserLoggedIn());
            SeleniumDriver.Close();
        }
Example #24
0
 // [Fact(DisplayName = "Test Generator")]
 public void Should_Test_Generator()
 {
     //TestCase test;
     TestCaseGenerator.SetTestCase(AbtTestCases.Get_Concur_Prod_ResponseTime);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     TestCaseGenerator.PrintTestCaseSteps();
     SeleniumDriver.init(Browser.IE);
     AbtPages.AgiHomePage.Go();
     // if (TestCaseGenerator.CurrentTestCase.StepExist("GotoAgi");
     // TestCase.CurrentTestCase.Step("GotoAGI").MarkAsDone(); //if statement is completed
     // TestCase.CurrentTestCase.Step("GOToAGI").MarkasFailed(); // if i can handle the exeption
     //
 }
Example #25
0
 //[Fact(DisplayName = "ESS User Should Place an Office Request - Then Manager Closes The Request ")]
 public void Should_Place_Office_Request_ESS()
 {
     TestCaseGenerator.SetTestCase(AbtTestCases.SN_PlaceOfficeRequest);
     TestCaseGenerator.SetTestCaseTemplate(AbtTemplates.DetailedReport);
     SeleniumDriver.init(Browser.RemoteDavidIENoNativeEvents);
     AbtPages.ServiceNowHomepage.Go(WebEnvironment.TestEnvironment);
     AbtPages.ServiceNowHomepage.ImpersonateUser("David Acuna");
     AbtPages.ServiceNowHomepage.GoTo(ServicenowLinks.ServiceHub);
     AbtPages.ServiceHubHomepage.GoTo(ServiceHubLinks.New_OS_Request);
     AbtPages.OfficeServiceRequestpage.NewOfficeRequest("Bethesda, MD", "Office Space", "Shelving", "Short description-3", "Notes/Comments");
     AbtPages.ServiceNowHomepage.Go(WebEnvironment.TestEnvironment);
     AbtPages.ServiceNowHomepage.ImpersonateUser("Steve Hunt");
     AbtPages.ServiceNowHomepage.FacilityRequests();
     AbtPages.ServiceNowHomepage.CloseOfficeRequest("Short description-3", "work notes", "Steve Hunt");
 }