コード例 #1
0
 public void ProfilePage_UpdatePassword_WS_1334()
 {
     if (!DataParser.ReturnExecution("WS_1334"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1334.xml";
         string       password    = GeneralData.GetPassword(_file);
         MainHomePage home        = InitialPage.Go().Logon().ClickLogin();
         var          editProfile = home.EditProfile();
         editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit();
         Assert.AreEqual("Invalid Data - Password must have at least: 1 numeric characters, but only has: 0",
                         editProfile.GetErrorMsg(), "Error Msg is not show or its wrong");
     }
 }
コード例 #2
0
 public void Settings_UpdatePassword_WS_1347()
 {
     if (!DataParser.ReturnExecution("WS_1347"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1347.xml";
         string       password    = GeneralData.GetPassword(_file);
         MainHomePage home        = InitialPage.Go().Logon().ClickLogin();
         var          editProfile = home.EditProfile();
         editProfile.EnterPassword(password).EnterConfirmationPwd(password).ClickSubmit();
         Assert.AreEqual("Settings Successfully Saved!", editProfile.GetSuccessMsg(),
                         "Error Msg is not show or its wrong");
         home = editProfile.ClickOK().ClickSignOut().Logon().ClickLogin();
         Assert.AreEqual("Welcome Tester to the BAE Systems, IMPACT!", home.GetWelcomeTitle(),
                         "You are not in the Main Page");
     }
 }
コード例 #3
0
 public void Profile_UpdatePhotoAvatar_WS_1059()
 {
     if (!DataParser.ReturnExecution("WS_1059"))
     {
         Assert.Ignore();
     }
     else
     {
         _file = "Resources\\" + client + "\\TestsData\\WS_1059.xml";
         string       path = GeneralData.path(_file);
         int          width = GeneralData.width(_file), height = GeneralData.height(_file);
         MainHomePage home = InitialPage.Go().Logon().ClickLogin();
         var          a    = home.EditProfile();
         a.ClickUploadphoto();
         SendKeys.SendWait(path);
         SendKeys.SendWait("{ENTER}");
         int b = width * height;
         var c = a.getsizeuploadim();
         Assert.AreNotEqual(b, c, "The size is the same so,the image is not changed");
     }
 }