??????????????????????
???????????? ???????[ 2012/9/12 9:13:14 ] ????????
???????????У??????????Post???????????Settings??????????????????????????????????—???????赱???????????????????????????????????????????????????????????????????PostSettings?????????TestLibrary?? ?????????Selenium-RC????????????????????????????????????
public class TestLibrary
{
public UserHelper UserHelper { get; private set; }
public BlogHelper BlogHelper { get; private set; }
public CommentHelper CommentHelper { get; private set; }
public Blog DefaultBlog { get; private set; }
public Post DefaultPost { get; private set; }
public ISelenium Selenium { get; private set; }
public string SiteUrl { get; private set; }
public class Consts
{
public const string TimeToWaitForPageToLoad = "30000";
public const string AdminUserName = "administrator";
public const string AdminPassword = "0123456";
}
public TestLibrary(ISelenium selenium)
{
this.UserHelper = new UserHelper(this);
this.BlogHelper = new BlogHelper(this);
this.CommentHelper = new CommentHelper(this);
Selenium = selenium;
InitialDefaultSiteDate();
}
private void InitialDefaultSiteDate()
{
DefaultBlog = new Blog(this?? "Default Test Blog"?? "default-test-blog"?? "Default Test Blog"?? Consts.AdminUserName);
DefaultPost = new Post(this?? new PostSettings()
{
Title = "Default Test Post"??
Permalink = "default-test-post"??
Body = "This is for web site testing purpose."??
Tags = "Test"??
PublishSetting = PostSettings.PublishSettings.PublishNow
}??
DefaultBlog);
}
}
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11