Esempio n. 1
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");
     }
 }
Esempio n. 2
0
 public void Admin_NoPermissionNoAccess_WS_1206()
 {
     if (!DataParser.ReturnExecution("WS_1206"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1206.xml";
         string       user  = AwardData.GetAwardUserName(_file);
         MainHomePage proxy = InitialPage.Go().Logon().ClickLogin().NavigateToAdminHomePageSpan().
                              ClickOptionProxy("Proxy").EnterUserNameProxySprint2(user).ProxyToMainHomePageSprint().ClosePopUp();
         Assert.AreEqual("You are proxied in as:" + user, proxy.GetProxyLoginMsgSprint(),
                         "The message of proxy login is not correct");
         Assert.AreEqual("Exit Proxy", proxy.GetExitMsg(), "The exit proxy link is not present");
         Assert.IsFalse(proxy.IsAdmLnkPresent(), "Admin link is present");
     }
 }
Esempio n. 3
0
 public void WS_1063()
 {
     if (!DataParser.ReturnExecution("WS_1063"))
     {
         Assert.Ignore();
     }
     else
     {
         _file    = "Resources\\" + client + "\\TestsData\\WS_1063.xml";
         username = ProxyData.GetProxyUserName(_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.IsFalse(home.IsAdmLnkPresent(), "Admin link is present");
     }
 }