Example #1
0
  @Test
  public void NoN_MaMLoginCC() {
    if (Common_Class.V4prop.get("NON_MAM_ACH_Types").toString().contains("NA")) {

      throw new SkipException("No Non MAM Details Present");
    }
    try {

      List<String> list;
      size = 0;
      Map<String, String> accountinfo = null;

      String[] getmamdivdid = Common_Class.V4prop.get("NON_MAM_ACH_Types").toString().split(",");

      accountinfo = Common_Class.getaccinfo(conn);

      for (int i = 0; i <= getmamdivdid.length - 1; i++) {
        try {

          String[] getid = getmamdivdid[i].toString().split("-");

          Log.startTestCase(
              "Started Executing Non MAM Login for " + getid[0] + " division business id ");

          String ID = getid[0];
          list = Common_Class.gen_num_acc_num(ID, conn);

          Baseclass_otp.getNonMamaccount(ID, list.get(i), accountinfo, conn);

          String Accountinfotext = OTP_FundingInfo_Page.accNumVisibleText();

          Common_Class.altVerify(list.get(i), Accountinfotext, true);

        } catch (Exception e) {
          Log.errorHandler("Error occurred during MAM LOGIN Testcase.", e);

          Browser.close();
        }
      }
      if (size <= getmamdivdid.length) {
        Browser.close();
      }
    } catch (Exception e) {
      Log.errorHandler("Error occurred during MAM LOGIN Testcase.", e);
    }
  }
Example #2
0
  @Test
  public void MAMLoginCC() {
    if (Common_Class.V4prop.get("MAM_ACH_Types").toString().contains("NA")) {

      throw new SkipException("No MAM Details Present");
    }
    try {
      Common_Class_clientConsole.client_console_login(conn);
      Browser.close();

    } catch (Exception e) {
      Log.errorHandler("Error occurred during MAM LOGIN Testcase .", e);
    }
  }