Selenium Webdriver Chrome
directly InHow to do the Database Testing using Selenium WebDriver. As we are aware that WebDriver API is only good to test a web application using various web browsers, therefore, in order to include database testing i.e. Storing or retrieving test data from the database we need to use the JDBC Connection. We cannot perform database testing using selenium webdriver but we can use language (java/python.) APIs to automate the database in selenium. Selenium does not provide any utility to do database testing, You will have to utilize feature available in the programming language. When using Selenium to automate UI testing, we need to make sure any user data entered from the UI should be captured in the database. We can use database retrieve statement to retrieve data and then use the data to verify what is entered by the user. Considering the example of a user registration.
Then we shall use the text function to create a customized xpath. The findElements method returns a list of elements. We shall use the size method to verify if list size is greater than 0. Suppose we want to verify if the below text exists in the page. Code Implementation with findElements.
MySql data table and then you wants to verify same thing In UI then you can do It very easily.DOWNLOAD UpdateRecordInDB.zip folder. You will get UpdateRecordInDB.java test script file In zip folder when extract It. Import It In your eclipse and then execute
At the end of execution, It will show you databse table records In console as shown In above Image. You can see In Image that records with id = 5 Is updated with name = 'Danial'. Now If you have website UI then you can check same thing there using selenium webdriver.
<< PREVIOUS || NEXT >>
I want to do database testing using selenium webdriver. here i have small doubt after geting database ResultSet data
how to verify on user interface content.
for example:-
I am getting ResultSet data from Student table by using jdbc code.this data can be displayed on userinterface table like
Students Details:-
Sno sname address
1 mahi HYD
2 subbu KNL
3 madhu Guntur
Here i want to do verify Student ResultSet data with UserInterface StudentDetails content.
Here i want to examine this data is coming from database or not.
Database Validation Using Selenium Webdriver
This is my urgent requirement. i am waiting for your response.
Database Verification Using Selenium Webdriver Maven
Thanks,Malappa.
--
You received this message because you are subscribed to the Google Groups 'webdriver' group.
To unsubscribe from this group and stop receiving emails from it, send an email to webdriver+unsubscribe@googlegroups.com.
Selenium Webdriver Api
To post to this group, send email to webdriver@googlegroups.com.Visit this group at http://groups.google.com/group/webdriver?hl=en.