Beispiel #1
0
        public void Verify_Logout()
        {
            //---- Pre-condition -> user must be logged in -----//
            EntryPO  entry  = new EntryPO();
            SearchPO search = entry.Login(EntryValidationField.Complete, "email".GetData(), "password".GetData());

            //---- Perform task -----//
            search.Logout();
            Assert.Contains("validation".GetSectionData("loginFormHeader"), entry.entryHeaderText.GetText());
        }
Beispiel #2
0
        public void Verify_Login()
        {
            EntryPO  entry  = new EntryPO();
            SearchPO search = entry.Login(EntryValidationField.Complete, "email".GetData(), "password".GetData());

            Assert.Contains("validation".GetSectionData("successfulLogin"), search.welcomeText.GetText());

            //---- clean up -> for other tests ----//
            search.Logout();
            Assert.Contains("validation".GetSectionData("loginFormHeader"), entry.entryHeaderText.GetText());
        }
Beispiel #3
0
        public void Verify_RunValuation_Details()
        {
            //---- Pre-condition -> user must be logged in -----//
            EntryPO  entry  = new EntryPO();
            SearchPO search = entry.Login(EntryValidationField.Complete, "email".GetData(), "password".GetData());

            Assert.Contains("validation".GetSectionData("successfulLogin"), search.welcomeText.GetText());
            //---- Perform task -----//
            search.RunValuation("address".GetData(), "netOperatingIncome".GetData(), "numberOfUnits".GetData(), "yearOfConstruction".GetData());
            search.CheckHeaderTexts();
            Assert.True(search.ValidateValuationDetails("netOperatingIncome".GetData(), "numberOfUnits".GetData(), "yearOfConstruction".GetData()));

            //clean up - for other tests
            search.Logout();
            Assert.Contains("validation".GetSectionData("loginFormHeader"), entry.entryHeaderText.GetText());
        }