
Quick Contact
Java Tutorial
- What is Java?
- History of Java
- Hello Java Program
- Features of Java
- Basic Syntax
- Java Setup
- Data Types in Java
- Java Variables
- Operators in Java
- JVM
- Java If-else Statement
- Switch Case Statement
- Java Loops
- Do-While Loop
- Java While Loop
- Continue Statement
- Break Statement in Java
- Constructors in Java
- Oops Concept in Java
- Features of OOPs
- Inheritance
- Exeception handeling
- Aggregation (HAS-A relationship) in Java
- Method Overriding in Java
- Method Overloading
- Java Static Keyword
- Java This Keyword
- Java Final Keyword
- Polymorphism
- Static Binding and Dynamic Binding
- Abstract class in Java
- Access Modifiers in Java
- Difference between abstract class and interface
- Interface in Java
- Garbage Collection in Java
- Java Package
- Encapsulation
- Serialization and Deserialization in Java
- Java Inner Classes
- Java Applets
- Multithreading in Java
- Thread Priorities in Java
- Thread Creation
- Inter Thread Communication
- Wrapper Classes in Java
- Java Input Output
- Java AWT Introduction
- Java Layout Manager
- Java Layout Policy
- Java AWT Events
- Collection Framework
- Collection Framework List Interface
- Swing in Java
- Swing Utility Classes
- Swing Layout Managers
- Java JDBC
- Hibernate Framework Overview – Architecture and Basics
Springboot
- Spring Environment Setup
- Spring Boot CRUD REST API Project using IntelliJ IDEA | Postman | MySQL
- Dockerizing Spring Boot Application | Spring Boot Docker Tutorial
- spring-boot-restapidocumentation with swagger
- Spring Boot HttpClient Overview
- Apache HttpClient POST HTTP Request Example
- Apache HttpClient PUT HTTP Request Example
- Apache HttpClient DELETE HTTP Request Example
- Apache HttpClient HTML Form POST Request Example
- Spring Boot JSP Exampl
- Deploying Spring Boot WAR file with JSP to Tomcat
- Spring Boot Annotations
- Spring Core Annotations
- Spring MVC Annotations with Examples
- Spring Scheduling Annotations
- Spring - Java-based Container Configuration
- Spring Java Based Configuration Example
Hibernate
- Hibernate 5 hello world
- Hibernate- One to One Unidirectional Mapping Annotation Example
- Hibernate - Batch Processing
- Hibernate - Interceptors
- Hibernate 5 - Create, Read, Update and Delete (CRUD) Operations Example
- Hibernate Transaction Management
- Hibernate One to Many Unidirectional Mapping Example
- Hibernate One to Many Bidirectional Mapping Example
- Hibernate Many to Many Annotation Mapping Example
- Hibernate Primary KeyJoin Column
- Hibernate First Level Cache with Example
- Hibernate XML Configuration Example with Maven + Eclipse + MySQL Database
- Hibernate Java Configuration Example
- JPA 2 with Hibernate 5 Bootstrapping Example
- JPA and Hibernate Cascade Types
- Hibernate/JPA - Primary Key Generation
- Hibernate 5 - Enum Type Mapping Example
- Hibernate Component Mapping
- Hibernate Object States – Transient,Persistent and Detached
- Hibernate 5 - Save an Entity Example
- Hibernate 5 - Persist an Entity Example
- Hibernate 5 - saveOrUpdate() Method Example
- Hibernate 5 - get(), load() and byId() Method Examples
- Hibernate 5 - merge() Example
- Hibernate 5 - Delete or Remove an Entity Example
- Hibernate 5 - load() Method Example
- Hibernate Session Interface Methods
- Hibernate Session.clear() Method Example
- Introduction Of Java strutes to Architecture
- Struts 2 - Architecture
- Struts 2 - Configuration Files
- Struts 2 - Actions
- Struts 2 - Interceptors
- Struts 2 - Results & Result Types
- Struts 2 - Value Stack/OGNL
- Struts 2 - File Uploading
- Struts 2 - Database Access
- Struts 2 - Validations Framework
JAVA FX
- JavaFX Tutorial
- Introduction to JavaFX Pane
- JavaFX Popup
- JavaFX group
- JavaFX Controller
- JavaFX Gradient Color
- JavaFXAnchorPane
- JavaFXTabPane
- JavaFX Scene
- JavaFX Stage
- JavaFXWebView
- JavaFX Timeline
- JavaFX Timer
- JavaFX Image
- JavaFX Background
- JavaFX dialog
- JavaFX Font
- JavaFXTextArea
- JavaFXObservableList
- JavaFX GUI
- JavaFX FXML
- JavaFXEventHandler
- JavaFXGradle
- JavafxScrollpane
- JavaFXAPI
Jmeter is a Java-based open-source application that is basically designed for the purpose of Load Testing. It supports all major protocols that are supported in Load Runner. Unlike any browser, JMeter works on levels of protocols and does not execute JavaScript present in HTML web pages. No, JMeter does not support the actual browser behavior. It does not render the HTML webpages as the normal browser does. The response can be viewed in HTML format but the actual timings are not present in the generated samples. Distributed Testing means using multiple machines for load testing in which one of the machines can be made master and others can be kept as a slave. It is very important to note that all the machines should be on the same network and should have the same version of Java and JMeter. Regular Expression is used for extracting some values dynamically from the responses.These values can be used in the subsequent request or can be saved for reporting purposes. Regular Expression is used in both Pre-Processors as well as Post Processors. Basically there are two types of processors in JMeter namely Pre-Processor and Post Processor. Pre-Processors execute before the main sampler and can change the scope of the sampler whereas Post Processors execute after the main sampler and are applicable to all samplers in the same scope of Test Plan. They can be used to extract some fields from the server response and store them in variables. Data Parametrization makes the scripts reusable where the values is not required to be hardcoded for the same request with different parameters. It depends on the hardware configuration of your system which includes a processor, JVM, allocated memory -Xmx, etc. Other factors that impact thread count are the number of components in your test plan i.e. the number of config elements or processors and it also depends on whether you are using GUI/Non-GUI Mode. Both Gaussian and Poisson Timers work on a mathematical formula with some constant delay and additional offset. Difference between the two lies in the fact that how the lambda value is calculated in the case of Poisson timer and how deviation is calculated in the case of Gaussian Timer. JMeter is considered as the major competitor of Load Runner in the industry. Co-relation is a process of extracting the values from the server response and storing it in a variable to be used in any other request which is to follow. For Example, for testing any login functionality if you have to use the session ID/cookie ID, you can extract the values from the response of GET Request of the login page and then dynamically use the same while making POST request for a login. Listeners are used for storing the execution results of load testing in different forms be it in a table, graph, tree or in any other presentable format so that it can be presented to the client. There are different type of inbuild listeners in JMeter and many others can be imported into it by using plugins as per the requirement. HTTP(s) Test Script Recorder is used to record all the Http(s) requests going to the server from your application. Some configurations require to be done in JMeter in order to make it work. Yes, JMeter can record HTTP or Https request going to the server from your mobile application also. It is required that mobile and JMeter are on the same network. Master-slave configuration is a part of distributed testing in which more than one machine is used to perform load testing of the server under test. It is very important that all machines are on the same network and all have the same version of JMeter. In distributed testing, one machine considered as the master and the others are kept as slaves by doing some configurations. JMeter supports various standard protocols like: Just as in any other programming language, variables and functions are used in JMeter also in order to make the scripts reusable. There are many inbuilt functions that are available in JMeter to perform various actions. Function string can be generated from the Function Dialogue Box itself. For Example, if you want to get the machine IP stored in a machineIP variable, you can use the string ${__machineIP(machineIP)}. JMeter tests can be run both GUI as well as Non-GUI Mode. It is highly recommended to run the load test in Non-GUI mode because the AWT event thread can kill the tests in case of high load scenarios. Yes, it is possible to run selenium scripts in JMeter to get some ideas on their performance. There are two ways of doing it. Either you can use JUnit libraries to build selenium scripts and save as Jars and copy the same in the JMeter directory. And then add JUnit sampler to your test plan and import the Jar file. Otherwise, the Webdriver sampler plugin can be added in the JMeterext folder. Restart the JMeter. Write your selenium code in the Webdriver sampler and then execute it to see the performance. Sessions and cookies can be managed in JMeter by using config elements such as HTTP Cache Manager which provides an option to clear the cookies in every iteration and also allows to add user-defined cookies. HTTP Cache manager helps you in clearing cache after each iteration as per your requirement in the load tests and also limits the number of elements that can be stored in the cache. Both of these config elements can be attached to the HTTP sampler. JDBC requests are used to establish a connection with the databases and then measure the response time of the queries. BeanShell is a lightweight Java scripting that is used in JMeter to perform some complex task. BeanShell sampler can perform various functions with the use of coding. You can print the thread number, get the current sampler executed, fetch the cookies, etc. No, JMeter does not measure the transition time between the screens. It can only measure the server actions not the UI interactions. HTTPS connection requires a certificate to authenticate the connections which get established when the browser hits the webserver. JMeter generates it temporarily to intercept the SSL traffic in order to record the actions. For recording actions via mobile, you need to have this certificate on your mobile to record the actions. It depends on the hardware of the system. For Example, on a 2-3 GHz CPU, 400-600 threads can be generated. It also depends on the components in your test plan. More the processors and XML parsing elements, the more the CPU load and hence fewer threads. For high load, it is recommended to use multiple machines for load testing. Workbench is a storage area for adding some components which can be added to the test plan if required. Components of workbench do not get saved with the test plan automatically. They have to be saved separately as test fragments. A most important part of the Workbench is HTTP(s) Test script recorder which is highly useful in recording the https request and later load can be applied to+9859 them to measure the response time. Tidy Parsing is a type of parsing that is used in Xpath extractor. If the response is in pure XML then tidy parsing is not required whereas, in the case of XHTML, it is mandatory to check the tidy parsing option in order to fetch the correct results. JMeter supports different types of plugins which are helpful in generating high-quality results. Controllers are used in JMeter to control the flow of execution of requests.Q2) Does JMeter simulate actual browser behavior?
Q3) What is Distributed testing?
Q4) What is the use of Regular Expression in JMeter?
Q5) What are the types of processors in JMeter?
Q6) What are the different ways of Data Parameterization in JMeter?
Below is the data parametrization that is supported in JMeter:
Q7) What are the maximum recommended threads on a single system?
Q8) Explain the difference between Gaussian and Poisson Timers.
Q9) What are the major differences between JMeter and Load Runner.
Enlisted are some of the major differences:
Load Runner
Jmeter
Licensed Software
Open Source tool.
Developed by Mercury
Developed by Apache.
UI is very impressive
It lacks in UI
It has more technical capabilities.
Less technically sound as compared to Load Runner.
Supports SAP, Siebel and Peoplesoft.
Doesn’t support SAP and Siebel
Q10) What is the use of co-relation in JMeter?
Q11) What are the different types of listeners?
Some of the inbuild listeners are:
Q12) Explain the flow of the Test Script Recorder.
Steps followed to record https traffic are:
Q13) Can JMeter record actions from mobile? If yes, how?
Below is the configuration required:
Q14) How to do master-slave configuration in JMeter?
The process is specified below:
Q15) What are the JMeter supported protocols?
Q16) Explain the syntax of JMeter variables and functions.
Syntax of Variable – ${var}
Q17) Why is it recommended to run JMeter in GUI mode?
The various Non-GUI mode supported with JMeter are:
Q18) Is it possible to run selenium scripts in JMeter? If yes, how?
Q19) How do you manage sessions and cookies in JMeter?
Q20) What are the important steps for testing JDBC request?
Important steps for testing JDBC requests are:
Q21)- What is BeanShell scripting?
Q22)- Can JMeter measure the performance of a complete application? For Example, you have multiple screens in your mobile app. Can JMeter measure the time taken to flip the screens?
Q23)- What is a Root CA certificate?
Q24) Which factors decide the maximum threads that one should generate per system?
Q25) What is a Workbench and why is it required?
Q26) What is Tidy Parsing?
Q27) What are the important plugins that are supported in JMeter?
Below are the major plugins that are supported:
Q28) What are the types of the controller in JMeter?
Below are the controllers that are used in JMeter: