start() public method

public start ( bool makeTcpRequestToPort = true ) : NUnitTests_Cassini_TeamMentor
makeTcpRequestToPort bool
return NUnitTests_Cassini_TeamMentor
        public void Call_Pages_From_TM_Started_With_Temp_Path_XmlDatabase()
        {
            var nUnitTests_Cassini = new NUnitTests_Cassini_TeamMentor();

            nUnitTests_Cassini.start                            (makeTcpRequestToPort : false)
                              .use_Temp_Path_XmlDatabase        ();

            var homePageUrl = nUnitTests_Cassini.apiCassini.url();

            //try via direct Http requests
            homePageUrl.append("")    .GET().assert_Not_Contains("Login");
            homePageUrl.append("TBot").GET().assert_Contains    ("Login");

            //try via browser requests
            var ie = "Call_Pages_From_TM_Started_With_Temp_Path_XmlDatabase".add_IE_Hidden_PopupWindow();
            ie.open(homePageUrl)
              .assert_Has_Links("About", "Login", "Help");

            ie.open(homePageUrl               ).waitForLink("About");ie.assert_Url_Is(homePageUrl.append("teamMentor"));
            ie.open(homePageUrl.append("Tbot")).assert_Url_Is(homePageUrl.append("Html_Pages/Gui/Pages/login.html?LoginReferer=/tbot"));

            ie.parentForm().Close();

            nUnitTests_Cassini.stop_And_Delete_Temp_XmlDatabase();
        }
        public void call_TM_StartUp_Application_Start()
        {
            var nUnitTests_Cassini = new NUnitTests_Cassini_TeamMentor();

            nUnitTests_Cassini.start                            (makeTcpRequestToPort : false)
                              .use_Temp_Path_XmlDatabase        ()
                              .call_TM_StartUp_Application_Start();
            nUnitTests_Cassini.tmProxy      ().get_Current<TM_FileStorage>().assert_Not_Null();
            nUnitTests_Cassini.tmFileStorage()                              .assert_Not_Null()
                              .Path_XmlDatabase.assert_Equals(nUnitTests_Cassini.tmProxy().get_Custom_Path_XmlDatabase());

            nUnitTests_Cassini.delete_Temp_Path_XmlDatabase();
        }
示例#3
0
        [Test] public void call_TM_StartUp_Application_Start()
        {
            var nUnitTests_Cassini = new NUnitTests_Cassini_TeamMentor();

            nUnitTests_Cassini.start(makeTcpRequestToPort: false)
            .use_Temp_Path_XmlDatabase()
            .call_TM_StartUp_Application_Start();
            nUnitTests_Cassini.tmProxy().get_Current <TM_FileStorage>().assert_Not_Null();
            nUnitTests_Cassini.tmFileStorage().assert_Not_Null()
            .Path_XmlDatabase.assert_Equals(nUnitTests_Cassini.tmProxy().get_Custom_Path_XmlDatabase());

            nUnitTests_Cassini.delete_Temp_Path_XmlDatabase();
        }
        public void start()
        {
            var nUnitTests_TeamMentor = new NUnitTests_Cassini_TeamMentor();

            nUnitTests_TeamMentor.start();

            nUnitTests_TeamMentor.port      .tcpClient().assert_Not_Null();
            var homePage_Html= nUnitTests_TeamMentor.apiCassini.url().GET();
            homePage_Html.assert_Contains("<html>","<head>","</head>","</html>")
                         .assert_Equal_To(nUnitTests_TeamMentor.webRoot.pathCombine("default.htm").fileContents());

            //            nUnitTests_TeamMentor.script_Me().waitForClose();

            nUnitTests_TeamMentor.stop();
            nUnitTests_TeamMentor.port      .tcpClient().assert_Null();
            nUnitTests_TeamMentor.webRoot.assert_Folder_Exists();
        }
示例#5
0
        [Test] public void start()
        {
            var nUnitTests_TeamMentor = new NUnitTests_Cassini_TeamMentor();

            nUnitTests_TeamMentor.start();

            nUnitTests_TeamMentor.port.tcpClient().assert_Not_Null();
            var homePage_Html = nUnitTests_TeamMentor.apiCassini.url().GET();

            homePage_Html.assert_Contains("<html>", "<head>", "</head>", "</html>")
            .assert_Equal_To(nUnitTests_TeamMentor.webRoot.pathCombine("default.htm").fileContents());

//            nUnitTests_TeamMentor.script_Me().waitForClose();

            nUnitTests_TeamMentor.stop();
            nUnitTests_TeamMentor.port.tcpClient().assert_Null();
            nUnitTests_TeamMentor.webRoot.assert_Folder_Exists();
        }
示例#6
0
        public void Check_That_New_UserData_Is_Git_REPO()
        {
            var nUnitTests_Cassini = new NUnitTests_Cassini_TeamMentor();
            nUnitTests_Cassini.start(true);

            nUnitTests_Cassini.siteUri.GET().assert_Contains("TeamMentor");

            var tmProxy = nUnitTests_Cassini.tmProxy_Refresh()
                                            .tmProxy;

            tmProxy.TmServer.assert_Not_Null()
                            .Git.UserData_Git_Enabled.assert_True();

            tmProxy.TmFileStorage.path_UserData()
                                 .isGitRepository().assert_Is_True();

            ////tmProxy.TmFileStorage.tmServer_Location().assert_Is("ad");
        }
 public void testFixtureSetUp()
 {
     nunitTests_Cassini = new NUnitTests_Cassini_TeamMentor();
     nunitTests_Cassini.start();
     tmProxy           = nunitTests_Cassini.teamMentor_Objects_Proxy();
 }
示例#8
0
 [TestFixtureSetUp] public void testFixtureSetUp()
 {
     nunitTests_Cassini = new NUnitTests_Cassini_TeamMentor();
     nunitTests_Cassini.start();
     tmProxy = nunitTests_Cassini.teamMentor_Objects_Proxy();
 }