// [Fact(DisplayName = "Edit Word Document Online on KM Workspace")]
 public void Should_Open_Word_Doc_Online_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.RemoteDavidIE);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocumentOnline(MS2013documents.QA_ReadinessChecklist_v4, documentType.Word);
     AbtPages.WordOnlinePage.Edit();
     SeleniumDriver.Close();
 }
 //  [Fact(DisplayName =  "Edit Excel Document Online on KM Workspace")]
 public void Should_Open_Excel_Doc_Online_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.RemoteDavidIE);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocumentOnline(MS2013documents.ITMetrics, documentType.Excel);
     AbtPages.ExcelOnlinePage.Edit();
     SeleniumDriver.Close();
 }
Exemple #3
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();
 }
Exemple #4
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();
 }
Exemple #5
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();
 }
 //  [Fact(DisplayName = "Open Word Document for Reading on KM Workspace")]
 public void Should_Open_Word_Doc_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.QA_ReadinessChecklist_v4);
     AutoITDriver.init();
     AutoITDriver.OpenDocumentForReading(); //If have problem running AUtoIT remember that you need to register the dll with cmd
     SeleniumDriver.Close();
 }
 // [Fact(DisplayName = "Open Excel Document for Reading on KM Workspace")]
 public void Should_Open_Excel_Doc_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.ITMetrics);
     AutoITDriver.init();
     AutoITDriver.OpenDocumentForReading();
     SeleniumDriver.Close();
 }
Exemple #8
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();
 }
Exemple #9
0
 public void Initial_Test_For_Knowledge_Hub()
 {
     SeleniumDriver.init(Browser.IE);
     AbtPages.KnowledgeHubLandingPage.Go();
     AbtPages.KnowledgeHubLandingPage.AttemptToLogin();
     //validates if we have reached the knowledge hub or not.
     Assert.True(AbtPages.KnowledgeHubLandingPage.isAt());
     SeleniumDriver.Close();
 }
Exemple #10
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();
 }
 //   [Fact(DisplayName = "Edit PowerPoint Document on KM Workspace")]
 public void Should_Edit_PPT_Doc_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.RemoteQALaptop);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.SampleAVMetrics);
     AutoITDriver.init();
     AutoITDriver.EditPowerPointFile(); //If have problem running AUtoIT remember that you need to register the dll with cmd
     AutoITDriver.SavePPTFile();
     AutoITDriver.ClosePPTFile();
     SeleniumDriver.Close();
 }
 //  [Fact(DisplayName = "Edit Word Document on KM Workspace")]
 public void Should_Edit_Word_Doc_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.RemoteQALaptop);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.QA_ReadinessChecklist_v4);
     AutoITDriver.init();
     AutoITDriver.EditWordFile(); //If have problem running AUtoIT remember that you need to register the dll with cmd
     AutoITDriver.SaveWordFile();
     AutoITDriver.CloseWordFile();
     SeleniumDriver.Close();
 }
Exemple #13
0
 // [Fact(DisplayName = "Edit Excel Document on KM Workspace with Excel 2010")]
 public void Should_Edit_Excel_Doc_KM_WorkSpace()
 {
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.KmWorkSpacePage.Go();
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.ITMetrics);
     AutoITDriver.init();
     Assert.True(AutoITDriver.EditExcelFile()); //If have problem running AUtoIT remember that you need to register the dll with cmd
     Assert.True(AutoITDriver.SaveExcelFile());
     Assert.True(AutoITDriver.CloseExcelFile());
     SeleniumDriver.Close();
 }
        public static void TearDown(bool passedTest)
        {
            // For saucelabs only, if its a sauce test we have to close the browsing session
            // also send the result for the sauce labs dashboard.
            // add in browser.close only if we remove the main close from this tear down.
            if (ApplicationSettings.GetSauceLabTestRunner)
            {
                SeleniumDriver.SetPassFailOfTest(passedTest);
            }

            SeleniumDriver.Close();
        }
Exemple #15
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();
        }
 //  [Fact(DisplayName = "Co-Authoring Should open PowerPoint Document for reading On PowerPoint Desktop Client App")]
 public void Should_Open_PPTDoc_For_Reading_On_ClientApp()
 {
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.Goto(homelinks.Projects);
     AbtPages.ProjectsPage.Goto(projectslinks.MS2013upgrade);
     AbtPages.SharePointDocumentNavigation.Goto(MS2013Links.Testing);
     AbtPages.SharePointDocumentNavigation.Goto(MS2013Links.QA_AuthoringIssueReplication);
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.SampleAVMetrics);
     AutoITDriver.init();
     AutoITDriver.OpenDocumentForReading(); //If have problem running AUtoIT remember that you need to register the dll with cmd
     SeleniumDriver.Close();
 }
 //   [Fact(DisplayName = "Co-Authoring Should open Word Document for editing from inside Word Desktop Client App")]
 public void Should_Open_WordDoc_For_Editing_From_Inside_ClientApp()
 {
     SeleniumDriver.init(Browser.IENoNativeEvents);
     AbtPages.AgiHomePage.Go();
     AbtPages.AgiTopNavigation.Goto(homelinks.Projects);
     AbtPages.ProjectsPage.Goto(projectslinks.MS2013upgrade);
     AbtPages.SharePointDocumentNavigation.Goto(MS2013Links.Testing);
     AbtPages.SharePointDocumentNavigation.Goto(MS2013Links.QA_AuthoringIssueReplication);
     AbtPages.SharePointDocumentNavigation.OpenDocument(MS2013documents.QA_ReadinessChecklist_v4);
     AutoITDriver.init();
     AutoITDriver.OpenDocumentForReading(); //If have problem running AUtoIT remember that you need to register the dll with cmd
     AutoITDriver.EditWordFileFromInsideApp();
     SeleniumDriver.Close();
 }
Exemple #18
0
        static void Main(string[] args)
        {
            SeleniumDriver.Open(@"https://codepen.io/jshlfts32/full/bjambP/");

            Page page = new Page();

            SeleniumDriver.Driver.SwitchTo().Frame("result");

            //Validate play key funtional
            page.textbox().Click();
            page.textbox().SetValue("3");
            page.playbutton().Click();
            page.a1().Click();
            page.b1().Click();
            page.a2().Click();
            page.b2().Click();
            page.a3().Click();
            page.endgame().IsElementVisible();
            SeleniumDriver.Close();

            SeleniumDriver.Open(@"https://codepen.io/jshlfts32/full/bjambP/");

            //Validate Love (Heart) icon Visble
            page.lovebutton().IsElementVisible();
            SeleniumDriver.Close();

            SeleniumDriver.Open(@"https://codepen.io/jshlfts32/full/bjambP/");

            //Validate Fork screen display
            page.forkbutton().Click();
            page.htmlsign().IsElementVisible();
            SeleniumDriver.Close();


            SeleniumDriver.Open(@"https://codepen.io/jshlfts32/full/bjambP/");

            //Validate Edit/View mode
            page.changebutton().Click();
            page.editview().Click();

            // Will add the rest of the clicks and setting values
            SeleniumDriver.Close();
        }
Exemple #19
0
 public static void AfterAll()
 {
     SeleniumDriver.Close();
 }
Exemple #20
0
 public void Close()
 => SeleniumDriver.Close();
        public override async Task DoAction()
        {
            /*string address = Config.Instance.GetSection("Adress").Value + "api/accounts";
             * Log.Debug(address);
             * var addressUri = new Uri(address);
             * using (HttpClient client = new HttpClient())
             * {
             *  using (HttpResponseMessage response = await client.GetAsync(addressUri))
             *  {
             *      response.EnsureSuccessStatusCode();
             *      JToken jsonResponse = JToken.Parse(await response.Content.ReadAsStringAsync());
             *      ;
             *      if (jsonResponse.Value<int>("count") > 0)
             *      {
             *
             *      }
             *      Log.Debug(jsonResponse.ToString());
             *  }
             * }*/

            SeleniumDriver.Navigate().GoToUrl("https://www.facebook.com");
            Progress.Set("website", 60);

            // Zamykanie modala z cookies
            Wait.Until(driver => driver.FindElement(By.XPath("//button[@data-testid='cookie-policy-banner-accept']")).Displayed);
            SeleniumDriver.FindElement(By.XPath("//button[@data-testid='cookie-policy-banner-accept']")).Click();
            Progress.Set("website", 65);

            // email input
            Wait.Until(driver => driver.FindElement(By.Id("email")).Displayed);
            SeleniumDriver.FindElement(By.Id("email")).SendKeys("*****@*****.**");

            // password input
            Wait.Until(driver => driver.FindElement(By.Id("pass")).Displayed);
            SeleniumDriver.FindElement(By.Id("pass")).SendKeys("8JEFRgUS7qHfiA2!49#");

            // login btn
            Wait.Until(driver => driver.FindElement(By.XPath("//button[@name='login']")).Displayed);
            SeleniumDriver.FindElement(By.XPath("//button[@name='login']")).Click();
            Progress.Set("website", 70);

            // Sprawdzamy czy strona sie zalogowala jezeli tak to przenonisimy na profil
            Wait.Until(driver => driver.FindElement(By.XPath("//div[@id='toolbarContainer']")));
            SeleniumDriver.Navigate().GoToUrl(Url);
            Progress.Set("website", 75);

            // Klikamy w przycisk napisz wiadomosc
            Wait.Until(driver => driver.FindElement(By.XPath("//a[@data-loggable='ProfileHighQualityLogger']")).Displayed);
            SeleniumDriver.FindElement(By.XPath("//a[@data-loggable='ProfileHighQualityLogger']")).Click();
            Progress.Set("website", 80);

            // Klikamy w pole do pisania
            Wait.Until(driver => driver.FindElement(By.XPath("//div[@style='min-height: 16px;']")).Displayed);
            SeleniumDriver.FindElement(By.XPath("//div[@style='min-height: 16px;']")).Click();
            Progress.Set("website", 85);

            string[] messages = { "Siema", "Co robisz?", "Chuju odpisz", "jan pawel 2 gwalcil male dzieci", "Jebać cie", "chcesz cos z ivonu?" };
            var      random   = new Random();

            // Piszemy i wysylamy
            for (int i = 0; i < 10; i++)
            {
                int msgIndex = random.Next(messages.Length);
                Send(messages[msgIndex]);
                Thread.Sleep(2000);
            }

            Progress.Set("website", 90);
            Thread.Sleep(5000);
            SeleniumDriver.Close();
            Progress.Set("website", 95);
        }
Exemple #22
0
 public void Dispose()
 {
     SeleniumDriver.Close();
 }