public void AfterClass()
        {
            try
            {
                ConsoleMessage.StartTest("Share flow with user: Clean up", "ShareFlow");
                Appium.Instance.Driver.LaunchApp();
                LoginActivity.LoginStep(_user1, _timeout);
                BrowserActivity.AssayList.FindAndTap(_assay);
                BrowserActivity.DeleteAllFlows();
                BrowserActivity.DeleteAssay.Tap();
                AssayDeleteDialog.Delete.Tap();
                //delete team
                TabMenu.Teams.Tap();
                TeamActivity.TeamList.FindAndTap(_team);
                TeamActivity.Dismiss.Tap();
                TeamDeleteDialog.Delete.Tap();
                CommonOperation.Delay(5);
                TabMenu.Logout.Tap();

                LoginActivity.LoginStep(_user2, _timeout);
                BrowserActivity.AssayList.FindAndTap(_assayRec);
                BrowserActivity.DeleteAllFlows();
                BrowserActivity.DeleteAssay.Tap();
                AssayDeleteDialog.Delete.Tap();
            }
            finally
            {
                Appium.Instance.Driver.CloseApp();
                ConsoleMessage.EndTest();
            }
        }
示例#2
0
 public void AfterClass()
 {
     try
     {
         ConsoleMessage.StartTest("Jit Test: Clean up", "Jit");
         Appium.Instance.Driver.LaunchApp();
         LoginActivity.LoginStep(_user, _timeout);
         BrowserActivity.AssayList.FindAndTap(_assay);
         BrowserActivity.DeleteAllFlows();
         BrowserActivity.DeleteAssay.Tap();
         AssayDeleteDialog.Delete.Tap();
     }
     finally
     {
         Appium.Instance.Driver.CloseApp();
         ConsoleMessage.EndTest();
     }
 }