예제 #1
0
파일: Awards.cs 프로젝트: Pablito-mdq/Test
 public void Awards_MultipleRecipients_WS_1438()
 {
     if (!DataParser.ReturnExecution("WS_1438"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1438.xml";
         string        proxy_name = ProxyData.GetProxyUserName(_file);
         MainHomePage  home       = InitialPage.Go().Logon().ClickLogin();
         ProxyHomePage proxyPage  = home.NavigateToAdminHomePage().LoginProxyAsuser();
         proxyPage.EnterUserName(proxy_name);
         home = proxyPage.ProxyToMainHomePage();
         Assert.AreEqual("You are proxied in under: " + proxy_name, home.GetProxyLoginMsg(),
                         "The message of proxy login is not correct");
         Assert.AreEqual("Exit Proxy", home.GetExitMsg(), "The exit proxy link is not present");
         NominationHomePage nominationHome = home.NavigateToNomination().ClickMultipleRecipients();
         nominationHome.SearchEmployeeFoundMultiple("Brian Walters")
         .SearchEmployeeFoundMultiple("Aaron Ashing")
         .ClickNextGeneric();
         Assert.AreEqual("Rave", nominationHome.GetFirstAwardName(), "the only Award name is not Rave");
     }
 }