Пример #1
0
        public void CountNumberOfImagesOnPage()
        {
            test = extent.StartTest("LoginExtentReport");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().CountImages();
            Thread.Sleep(3000);
        }
Пример #2
0
        public void DisplayNFSLogo()
        {
            test = extent.StartTest("DisplayNFSLogo");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().ValidateLogo();
            Thread.Sleep(3000);
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "DisplayNFSLogo on Login Page");
        }
Пример #3
0
        public void DisplayForgotPasswordLink()
        {
            test = extent.StartTest("DisplayForgotPasswordLink");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().ForgotpasswordLINK();
            Thread.Sleep(3000);
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Forgot Password link is Enabled for User");
        }
Пример #4
0
        public void DemoReportPass()
        {
            test = extent.StartTest("DemoReportPass");

            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Login();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().CheckforloginSuccessful();
            //Assert.IsTrue(true);
            //test.Log(LogStatus.Pass, "Assert Pass as condition is True");
        }
Пример #5
0
        public void LoginExtentReport()
        {
            test = extent.StartTest("LoginExtentReport");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Login();
            TakeScreenshot();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().CheckforloginSuccessful();
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Login Is Successfull");
        }
Пример #6
0
        public void LoginMainPageLoginFailed()
        {
            test = extent.StartTest("LoginMainPageLoginFailed");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.LoginInvalidCredientials();
            TakeScreenshot();
            Thread.Sleep(3000);
            searchEngineMainPage.Validate().CheckForLoginFailure();
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Login failed for Invalid Username and Password");
        }
Пример #7
0
        public void MainPageTtitleVarification()
        {
            test = extent.StartTest("MainPageTtitleVarification");
            LoginMainPage searchEngineMainPage = new LoginMainPage(this.Driver);

            searchEngineMainPage.Navigate();
            searchEngineMainPage.Login();
            searchEngineMainPage.Validate().TitleVerification();
            TakeScreenshot();
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Your Login Is Successfull");
            Assert.IsTrue(true);
            test.Log(LogStatus.Pass, "Main Page Title Workspace Has verified successfully");
        }