Ejemplo n.º 1
0
  @Test
  public void testdatabase() throws ClassNotFoundException, SQLException {
    Common_Class.loadDBproperties();
    Map<String, Connection> connection = Common_Class.connectDB();

    Map<String, String> newmap = new HashMap<String, String>();
    List<String> map = Common_Class.getMAMaccountnumbers("504478", 2, connection);

    System.out.println("new map is=====" + map);
    // newmap=Common_Class.getaccinfo(connection);

  }
Ejemplo n.º 2
0
  @AfterClass
  /**
   * This function ends the test, calculates and logs the test results and terminates the automation
   *
   * <p>
   *
   * @author Parvat Patil
   */
  public static void tearDown() throws Exception {
    Common_Class.closedbconnection(conn);

    Common_Class.terminate();
  }
Ejemplo n.º 3
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);
    }
  }
Ejemplo n.º 4
0
  /**
   * @throws SQLException
   * @throws ClassNotFoundException
   */
  @BeforeClass
  public static void cc_Run() throws ClassNotFoundException, SQLException {

    Log.gsScriptName =
        Thread.currentThread()
            .getStackTrace()[1]
            .getClassName(); // this.getClass().getName().toString();
    Log.gsScriptDescription = "Test and verify Clientconsole Login Page";
    Log.gsScriptAuthor = "archana enturu";
    Log.gsScriptTestArea =
        FileIO.getParentPath(
            Platform.getCurrentProjectPath()
                + Log.gsScriptName.replace(".", Platform.getFileSeparator()));
    Common_Class_clientConsole.set_test_data_path();
    Log.initialize();
    Common_Class.loadDBproperties();
    conn = Common_Class.connectDB();
    Log.logBanner("Setup for Login For ClientConsole page");
  }