示例#1
0
        public override void PreWebTest(object sender, PreWebTestEventArgs e)
        {
            //loading the settings files

            WebTestSettings webTestSettings = new WebTestSettings();

            webTestSettings.ReadConfig("WebTestSettings.xml");

            //startig the web server
            WebServerHelper.StartWebServerIfNotStarted(webTestSettings.WebServerExePath);


            //setting up set-up data
            SqlClientScriptRunner.RunScript(webTestSettings.SqlConnectionString, @"..\..\..\..\Eisk.Database\Basic Scripts\Schema\Create-Schema.sql");
            SqlClientScriptRunner.RunScript(webTestSettings.SqlConnectionString, @"..\..\..\..\Eisk.Database\Basic Scripts\Data\Create-Data.sql");

            //message

            //MessageBox.Show("Web Test Starting ...");
        }
 public static void InitializeAssembly(TestContext ctx)
 {
     WebServerHelper.StartWebServerIfNotStarted();
     TestDataHelper.CreateDatabaseIfDoesNotExist();
     TestDataHelper.CreateSchema();
 }