Selenium Database Testing

Suppose in a database i have 100 records,I want the Database to select a random number from the database and get its respective records, and print it onto the web page.(i.e Registration Page,Database should find a random number from database, and print its further details like name,address onto the web page).All that i want to be under a selenium Script.Can you guys please help me out with the right approach to do that.

Default Asked on February 23, 2017 in Selenium WebDriver.
Add Comment
  • 1 Answer(s)

    You can use java ibatis framework, just follow below link for sample project

    http://toolsqa.com/ibatis/ibatis-tutorial/

     

    Above framework executes and store result in List for query like select regNo,Registration_Page, name,address  from table 1;

    then u can used them in any way in your program.

    Supporter Answered on February 24, 2017.
    Add Comment
  • Your Answer

    By posting your answer, you agree to the privacy policy and terms of service.