Can we do big data load testing by using Java request sampler? - performance

We have created custom Hbase plugin and we are using sampler as "java request" in jmeter, here we are passing "table name", data, Zooker keeper location then we are inserting the data to Hbase then data is inserting to Hbase, Now my question is how we can update and delete the data ? by using the java request sampler?
Please advise me a solution, it will be great helpful.

Related

JMeter - Performance Testing - Third Party Backend GET Response

I am currently working on load testing an application, where the users can create orders. Once the order is created, the request reaches the Middleware which triggers a scheduler. From the scheduler, the GET Status reaches a 3rd Party API and the Response is stored at the Backend (DB). The GET Status response can only be seen on the Backend and it will not be visible to the User Interface. Please help on How to record this GET Status Response at the Backend using latest version of Jmeter.
You can use JDBC Request sampler for reading information from the database
Download JDBC Driver for the database you're using and drop it to JMeter Classpath
Restart JMeter to pick up the driver
Add JDBC Connection Configuration element and specify database URL, credentials and thread pool name
In the JDBC Request sampler set the same thread pool name as in the point 3 and create an SQL Select query to fetch the response from the database. If you will need the response later on it can be stored into a JMeter Variable

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

Apache Kafka for an existing get request with Oracle DB

I’m trying to learn about streaming services and reading kafka doc’s :
https://kafka.apache.org/quickstart
https://kafka.apache.org/24/documentation/streams/quickstart
To take a simple example I’m attempting to refactor a Spring web services GET request which accepts an ID parameter and returns a list of attributes associated with that ID. The DB backend is Oracle.
What is the approach for loading a single Oracle DB table which can be served by Kafka ? The above docs don't contain information for this. Do I need to replicate the Oracle DB to a NoSql DB such as MongoDB ? (Why we require Apache Kafka with NoSQL databases?)
Kafka is an event streaming platform. It is not a database. Instead of thinking about "loading a single Oracle DB table which can be served by Kafka", you need to think in terms of what events are you looking for that will trigger processing?
Change Data Capture (CDC) products like Oracle Golden Gate (there are other products too) will detect changes to rows and send messages into Kafka each time a row changes.
Alternatively you could configure a Kafka JDBC Source Connector to execute a query and pull data into Kafka.

Jmeter and database

I'd like to know the mechanism of performance testing Database by Jmeter, so need your help on my concern as below:
Q1. Does Jmeter will access directly to Database for testing ? Or,
it will access to database via a website having database URL (as the Database URL on JDBC request config) ?
Q2. which fields will be tested in Database : capacity or Database structure or others ? - please explain in advantage.
Besides, Jmeter is a good tool for testing database ? - which cases / why should we use ?
Thanks,
Q1: JMeter has JDBC Request sampler which can connect to database directly assuming appropriate JDBC driver in JMeter classpath and proper JDBC Connection Configuration
Q2: It's totally up to you as JMeter doesn't test anything. If you specify a query or a set of queries under Transaction Controller JMeter will report the time which queries took under the load and errors if any.

Selenium webdriver: Data Driven Framework using JDBC/ADODB

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.

Resources