Exemple #1
0
        public void Web_EasyTest()
        {
            var webAdapter      = new WebAdapter();
            var testApplication = webAdapter.RunWebApplication($@"{AppDomain.CurrentDomain.ApplicationPath()}\..\TestWebApplication\", "65377");

            var commandAdapter = webAdapter.CreateCommandAdapter();

            var autoTestCommand = new AutoTestCommand();

            autoTestCommand.Execute(commandAdapter);
            webAdapter.KillApplication(testApplication, KillApplicationContext.TestNormalEnded);
        }
        public override void Dispose()
        {
            var urlParams = GetUrlOptions();

            webAdapter.WebBrowser.Navigate(testWebApplicationRootUrl + urlParams + (urlParams.Contains("?") ? "&" : "?") + "Reset=true");
            webAdapter.WebBrowser.Close();
            try
            {
                webAdapter.KillApplication(application, KillApplicationContext.TestNormalEnded);
            }
            catch { }
        }
 public void Web_EasyTest()
 {
     using (var webAdapter = new WebAdapter()){
         var testApplication = webAdapter.RunWebApplication($@"{AppDomain.CurrentDomain.ApplicationPath()}\..\TestWebApplication\", 65377);
         try{
             var commandAdapter = webAdapter.CreateCommandAdapter();
             commandAdapter.TestLookupCascade();
         }
         finally{
             webAdapter.KillApplication(testApplication, KillApplicationContext.TestNormalEnded);
         }
     }
 }
 public async Task Web_EasyTest()
 {
     using (var webAdapter = new WebAdapter()){
         var testApplication = webAdapter.RunWebApplication($@"{AppDomain.CurrentDomain.ApplicationPath()}\..\TestWebApplication\", 65477);
         try{
             var commandAdapter = webAdapter.CreateCommandAdapter();
             commandAdapter.Execute(new LoginCommand());
             commandAdapter.TestLookupCascade();
             await commandAdapter.TestMicrosoftService(() => Observable.Start(() => commandAdapter.TestMicrosoftTodoService()));
         }
         finally{
             webAdapter.KillApplication(testApplication, KillApplicationContext.TestNormalEnded);
         }
     }
 }
 public override void TearDownFixture()
 {
     webAdapter.WebBrowser.Close();
     webAdapter.KillApplication(application, KillApplicationContext.TestAborted);
 }