Detecting connection leaks for your application

  • 19
    Dec

    Detecting connection leaks for your application

    Following program can be used to create bulk connections to a database.  By default as soon as connection is closed there should be no connection leakage. If your application...

    Read More
  • 19
    Dec

    Generating a Random number string for mobile no.

    JMeter allows creation of custom number of specific length. Put following code in “BeanShell PostProcessor” and use “Phone” variable in your JMeter.  This will generate a 10 digit random...

    Read More
  • 04
    Oct

    Switching between tabs in Selenium

    Switching between tabs in Selenium   //Get handle to Current window tab. String mainWindowHandle = driver.getWindowHandle(); //Perform action which opens a new tab window in browser. //Get the list...

    Read More
  • 04
    Oct

    Switching between windows during script run

    String winHandleBefore = driver.getWindowHandle(); // Perform GUI action which opens a new window, use following code to switch to pop-up window: for (String currentWindow : driver.getWindowHandles()) driver.switchTo().window(currentWindow); to revert...

    Read More
  • 04
    Oct

    Double click in Selenium

    Perform Double click in Selenium Selenium provides Actions class to allow end user perform double click on an object. Actions act = new Actions(driver); act.moveToElement(driver.findElement(By.xpath(“Element“))).doubleClick().build().perform();

    Read More
  • 03
    Oct

    Calling stored procedure from Java program

    In RDBMS, a stored procedure is set of sql statements which is complied and stored in a database to perform a special task. A stored procedure can have any...

    Read More
  • 03
    Oct

    Batch Statement in SQL

    Batch Statement in SQL The following examples show you how to perform a batch operation to insert bulk records into a relational database using the JDBC API. The “PreparedStatement#addBatch()”...

    Read More
  • 03
    Oct

    Save image file into database

    Saving Image file into Databases In this post, we will show you how to save a long binary string or image file into a BLOB (Binary Large Object) column...

    Read More
  • 03
    Oct

    Working with ResultSet metada

    Working with ResultSet metada A “ResultSetMetaData” object is used to get metadata (i.e. data about data) of the columns from query’s result. The “ResultSetMetaData” object provides the following information...

    Read More
  • 03
    Oct

    working with result sets of a “Stored Procedure” in JDBC

    Callablestatement + resultset example in JDBC This examples shows how to call a stored procedure from a java program using the JDBC API. Following example will demonstrate how to...

    Read More