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); } }