コード例 #1
0
 public void VerifySuccessfulLogin()
 {
     using (loginAutomationAgent = new AutomationAgent("ID:1 - Verifying successful Login with strings"))
     {
         try
         {
             LoginActions.Login(loginAutomationAgent, "company", "company");
             DashboardActions.ClickLogout(loginAutomationAgent);
         }
         catch (Exception ex)
         {
             loginAutomationAgent.Sleep(2000);
             loginAutomationAgent.AddSteptoSeeTestReport(ex.Message, false);
             loginAutomationAgent.ApplicationClose();
             loginAutomationAgent.GenerateReportAndReleaseClient();
             throw;
         }
     }
 }
コード例 #2
0
 public void VerifyLoginObject()
 {
     using (loginAutomationAgent = new AutomationAgent("ID:2 - Verifying successful Login with Login Object"))
     {
         try
         {
             LoginActions.Login(loginAutomationAgent, Login.GetLogin("DefaultUser"));
             DashboardActions.ClickLogout(loginAutomationAgent);
         }
         catch (Exception ex)
         {
             loginAutomationAgent.Sleep(2000);
             loginAutomationAgent.AddSteptoSeeTestReport(ex.Message, false);
             loginAutomationAgent.ApplicationClose();
             loginAutomationAgent.GenerateReportAndReleaseClient();
             throw;
         }
     }
 }