public void TestUserStory10() { try { const String INPUT_FILE = "User.xml"; const String COMMENT = "HEheheh"; const string SUBJECT = "Covor Sierpinski"; const string CATEGORY = "Fractali Turtle"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); Panel.Galerie_Click(); ForumClass.NavigateToCategory(CATEGORY); ForumClass.NavigateToSubject(SUBJECT); ForumClass.AddComment(COMMENT); ForumClass.DeleteComment(COMMENT); } catch (Exception e) { Logger.LogException("", e); Assert.Fail(e.Message); } }
public void TestUserStory8() { try { const String INPUT_FILE = "User.xml"; const String AUTOR = "Alex"; const String CONTINUT = "Foarte"; const string SUBJECT = "Covor Sierpinski"; const string CATEGORY = "Fractali Turtle"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); Panel.Galerie_Click(); ForumClass.NavigateToCategory(CATEGORY); ForumClass.NavigateToSubject(SUBJECT); ForumClass.SearchAutor(AUTOR); Sincronize.Wait(7500); ForumClass.SearchContent(CONTINUT); } catch (Exception e) { Logger.LogException("", e); Assert.Fail(e.Message); } }
public void TestUserStory2() { try { PropertiesCollection.OpenURL(Constants.START_URL); Panel.Galerie_Click(); Sincronize.Wait(5000); } catch (Exception e) { Logger.LogException("", e); Assert.Fail(e.Message); } }
public void TestUserStory1() { try { const String INPUT_FILE = "SignUpTest.xml"; SignUpUser user = XML.DeserializeObject <SignUpUser>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); SeleniumGetMethods.GetWebElementInnerHTML("Inregistrati-va").Click(); Authentication.SignUp(user); } catch (Exception ex) { Logger.LogException("", ex); Assert.Fail(ex.Message); } }
public void TestUserStory9() { try { const String INPUT_FILE = "User.xml"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); UserPanel.Contact_Click(); } catch (Exception ex) { Assert.Fail(); Logger.LogException("", ex); } }
public void TestUserStory3() { Logger.LogInfo("Test Login:"******"User.xml"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); // ForumTest.ProjectComponent.Authentication.LogOff(); } catch (Exception ex) { Assert.Fail(); Logger.LogException("", ex); } }
public void TestUserStory5() { try { const String INPUT_FILE = "User.xml"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); Panel.Galerie_Click(); Sincronize.Wait(5000); } catch (Exception e) { Logger.LogException("", e); Assert.Fail(e.Message); } }
public void TestUserStory11() { try { const String INPUT_FILE = "Admin.xml"; const String USER_ROLE_FILE = "UserRole.xml"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(INPUT_FILE)); UserRole userRole = XML.DeserializeObject <UserRole>(FileUtils.CreateInputPath(USER_ROLE_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); AdminPanel.ProfilulMeu_Click(); AdminPanel.Administrare_Click(); Administration.GetRole(userRole); } catch (Exception ex) { Assert.Fail(); Logger.LogException("", ex); } }
public void TestUserStory4() { try { const string INPUT_FILE = "UserProfile.xml"; const string USER_CREDENTIAL_FILE = "User.xml"; User user = XML.DeserializeObject <User>(FileUtils.CreateInputPath(USER_CREDENTIAL_FILE)); UserProfile userProfile = XML.DeserializeObject <UserProfile>(FileUtils.CreateInputPath(INPUT_FILE)); PropertiesCollection.OpenURL(Constants.START_URL); Panel.Log_Click(); Authentication.Login(user); UserPanel.ProfilulMeu_Click(); var editButton = SeleniumGetMethods.GetWebElementById("MainContent_EditProfileButton"); editButton.Click(); // SeleniumGetMethods.GetWebElementInnerHTML("Editeaza").Click(); Authentication.EditeProfile(userProfile); } catch (Exception e) { Logger.LogException("", e); Assert.Fail(e.Message); } }