Example #1
0
 public static void DeleteAllFlows()
 {
     try
     {
         var flowList = FlowList.GetInternalElement().FindElementsById("browser_element_name");
         while (flowList.Count > 0)
         {
             string flowName = flowList[0].Text;
             flowList[0].Click();
             ConsoleMessage.Pass(String.Format("{0}. Click on flow with name: {1}",
                                               ActivityName, flowName));
             FlowActivity.DeleteFlow.Tap();
             FlowDeleteDialog.Delete.Tap();
             flowList = FlowList.GetInternalElement().FindElementsById("browser_element_name");
         }
         ConsoleMessage.Pass(String.Format("{0}. Delete all flow in current assay",
                                           ActivityName));
     }
     catch (Exception ex)
     {
         ConsoleMessage.Fail(String.Format("{0}. Can't delete all flow in current assay",
                                           ActivityName), ex);
         throw;
     }
 }
Example #2
0
 public static void VerifyFlowNotExist(string flowName)
 {
     try
     {
         Assert.True(FlowList.GetInternalElement().FindElementsByName(flowName).Count == 0,
                     String.Format("Flow with name: {0} still exist", flowName));
         ConsoleMessage.Pass(String.Format("{0}. Verify, flow with name: {1} not exist",
                                           ActivityName, flowName));
     }
     catch (Exception ex)
     {
         ConsoleMessage.Fail(String.Format("{0}. Can't verify. Flow with name: {1}  exist",
                                           ActivityName, flowName), ex);
         throw;
     }
 }