public static IE_UnitTest page_Login(this IE_UnitTest tBot, string loginReferer) { tBot.open_Page(loginReferer.valid() ? "login?LoginReferer={0}".format(loginReferer) : "login"); return(tBot); }
[TestFixtureSetUp] public void testFixtureSetUp() { TmQAConfig = new TM_QA_Config_Loader().load(); if (TmQAConfig.serverOffline()) { Assert.Fail("[TestFixture_WebServices]TM server is offline: {0}".info(WebSite_Url)); } tbot = new IE_UnitTest { TargetServer = TmQAConfig.Url_Target_TM_Site }; ie = tbot.ie; }
[SetUp] public void setup() { ieUnitTest = new IE_UnitTest(); }
public static IE_UnitTest open_ASync(this IE_UnitTest tbot, string virtualPath) { O2Thread.mtaThread(() => tbot.open_Page(virtualPath)); return(tbot); }
public static string fullPath(this IE_UnitTest tbot, string virtualPath) { return(tbot.TargetServer.uri().append(virtualPath).str()); }
public static IE_UnitTest open_Page(this IE_UnitTest tbot, string virtualPath) { tbot.ie.open(tbot.fullPath(virtualPath)); return(tbot); }
public static IE_UnitTest open(this IE_UnitTest ieUnitTest, string virtualPath) // can't use generics here in order to have simpler method calls: tbot.open("...."); vs tbot.open<API_IE_TBot>("..."); { return(ieUnitTest.open_Page(virtualPath)); }
public static IE_UnitTest assert_Admin(this IE_UnitTest tBot) { return(null); }
public static IE_UnitTest login_As_Admin(this IE_UnitTest tBot) { tBot.open_Page("rest/login/{0}/{1}".format(Tests_Consts.DEFAULT_ADMIN_USERNAME, Tests_Consts.DEFAULT_ADMIN_PASSWORD)); return(tBot); }
public static IE_UnitTest page_Login(this IE_UnitTest tBot) { return(tBot.page_Login("")); }