Exemple #1
0
 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);
 }
Exemple #2
0
        [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;
        }
Exemple #3
0
 [SetUp] public void setup()
 {
     ieUnitTest = new IE_UnitTest();
 }
Exemple #4
0
 public static IE_UnitTest open_ASync(this IE_UnitTest tbot, string virtualPath)
 {
     O2Thread.mtaThread(() => tbot.open_Page(virtualPath));
     return(tbot);
 }
Exemple #5
0
 public static string fullPath(this IE_UnitTest tbot, string virtualPath)
 {
     return(tbot.TargetServer.uri().append(virtualPath).str());
 }
Exemple #6
0
 public static IE_UnitTest open_Page(this IE_UnitTest tbot, string virtualPath)
 {
     tbot.ie.open(tbot.fullPath(virtualPath));
     return(tbot);
 }
Exemple #7
0
 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));
 }
Exemple #8
0
 public static IE_UnitTest assert_Admin(this IE_UnitTest tBot)
 {
     return(null);
 }
Exemple #9
0
 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);
 }
Exemple #10
0
 public static IE_UnitTest page_Login(this IE_UnitTest tBot)
 {
     return(tBot.page_Login(""));
 }