Selenium webdriver: Data Driven Framework using JDBC/ADODB - jdbc

I am using selenium webdriver to automate websites.How can I extract data from Oracle database using JDBC connection in a hashtable and use it in a data driven framework to pass on parameters?

Using JDBC/ADODB has nothing to do with Webdriver. Google for JDBC tutorial and you will get enough material on how to connect to a DB, get data and use that data. Some database drivers provide option to get retrieve data from tables into arrays. If you want to get data into hashtable, you will have to create your own logic and then use in your selenium tests.

Related

How to generate big data volume to perform load test using JMeter?

We need to perform load test using JMeter, but the test database has few records. As you know we need a dataset which is similar to the production dataset which is huge. But there is no option to get the large data volume. We are using Oracle as database.
Does there any option in JMeter to simulate the large data volume?
What are the options do we have to perform a load test to meet the above criteria?
You can create a database dump, if necessary anonymize it removing the sensitive data and import it into your "empty" database, see Moving Data Using Data Pump and Export/Import for more details
If point it is not achievable for any reason you can use JMeter's JDBC Request sampler to directly add some fake data into the database using INSERT Statements
If point 2 cannot be implemented as well there are some aspects which you still can test against a scaled-down environment like:
system(s) integration under the load
load allocation
monitoring the backend using profiling tools
running a soak test

Neo4j to Oracle real time data sync

In one of the use cases in my application there is a requirement to publish neo4j transaction data to oracle database in real time. I did google on it, but couldn't find a tool or plug-in which can help. Everywhere on internet talks about rdbms to neo4j sync. So I am planning to do this by manually invoking jdbc commands.
Can you please suggest something?
Had to write my own jdbc code.

dataflow output to neo4j using jdbcIO vs java driver

I'm currently working on a setup that uses Google Cloud Dataflow to transform data and save into a Neo4j Database hosted on a Compute Engine VM. The current setup uses a JdbcIO to write to Neo4j by running a prepared statement, but it seems also possible to use a Neo4j driver directly in Java, which allows more flexibility on creating the query dynamically.
I wonder if anyone had compared the 2 approaches and notice any differences? I would guess the Jdbc approach would be more efficient since it only need to run the prepared statement, but that is just my guess.
Update
I'm going to post my findings as I experiment more with the two methods
One difference I found was that when using JdbcIO, I run into a deadlock when multiple transaction is trying to write to the same node at the same time. However that issue did not occur when using Neo4j driver directly.

How can I do Database testing with Selenium RC?

How do i start database testing with selenium and SQL SERVER, kinldy let me know which all jar's do i have to download and start .
Thanks,
PK
Selenium RC is meant to test html pages, using javascript, which is wrapped into client drivers for several languages. If you need anything from database it doesn't relate to selenium, just include your DB client libs and access it independently to Selenium.
Selenium is used mostly for web application testing.
You can use java features for database testing.
See the example given in the link below. You can use sql queries in java program to fetch results from database and validate them in the java program itself.
click here

Fetch DB results from TOAD for DB2 using Ruby

How to fetch DB results from TOAD for DB2 using Ruby/capybara
Are you asking about TOAD, the DB client app? If so, Capybara is not the tool you should use as it only works for web apps (browser or headless browser tests). If you want to check the contents of a DB2 database using ruby then you could connect to it with ActiveRecord and run queries using that. On the other hand if you want to automate TOAD's user interface using ruby/capybara then you're out of luck - that's not possible.

Resources