Example #1
0
 public void Profile_UpdatingFields_WS_175()
 {
     if (!DataParser.ReturnExecution("WS_175"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_175.xml";
         string          preferredName = RegisterData.GetRegisterPreferedName(_file);
         EditProfilePage profilePage   = InitialPage.Go().Logon().ClickLogin().EditProfile();
         Assert.AreEqual("Profile Settings", profilePage.GetTitleName("Profile Settings"),
                         "Title is now well spell");
         profilePage.EnterPreferedName(preferredName).ClickSubmit();
         Assert.AreEqual(preferredName, profilePage.GetShowName(preferredName), "Prefered Name is now well spell");
         MainHomePage mainPage = profilePage.NavigateToHomePage();
         Assert.AreEqual("Welcome " + preferredName + " to the BAE Systems, IMPACT!", mainPage.GetWelcomeTitle(),
                         "Welcome Ttile is now well spell");
     }
 }
Example #2
0
 public void WS_1064()
 {
     if (!DataParser.ReturnExecution("WS_1064"))
     {
         Assert.Ignore();
     }
     else
     {
         _file    = "Resources\\" + client + "\\TestsData\\WS_1064.xml";
         username = ProxyData.GetProxyUserName(_file);
         string        username2 = ProxyData.GetProxySecondUserName(_file), preferedName = RegisterData.GetRegisterPreferedName(_file);
         MainHomePage  home      = InitialPage.Go().Logon().ClickLogin();
         ProxyHomePage proxyPage = home.NavigateToAdminHomePage().LoginProxyAsuser();
         proxyPage.EnterUserName(username);
         home = proxyPage.ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in under: " + username, home.GetProxyLoginMsg(),
                         "The message of proxy login is not correct");
         Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present");
         Assert.IsTrue(home.IsAdmLnkPresent(), "Admin link is present");
         ProxyHomePage adminPage = home.NavigateToAdminHomePage().LoginProxyAsuser();
         proxyPage.EnterUserName(username2);
         home = proxyPage.ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in under: " + username2, home.GetProxyLoginMsg(),
                         "The message of proxy login is not correct");
         Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present");
         Assert.IsFalse(home.IsAdmLnkPresent(), "Admin link is present");
         adminPage = home.ExitProxy();
         Assert.IsTrue(adminPage.IsAdminLoginUsernameLevel(preferedName), "You are not in the login leveled like support,admin or proxy");
     }
 }