Interview Questions, Answers and Tutorials

Year: 2014

JMeter Tutorial – FTP Test Plan

In this chapter, we will see how to test a FTP site using JMeter. Let us create a Test Plan to test the FTP site.  Rename Test PlanStart the JMeter window by clicking on /home/deepak/apache-JMeter-2.9/bin/JMeter.sh. Click on the Test Plan node. Rename this Test Plan node as TestFTPSite. Add Thread Group Add one Thread Group, which is a placeholder for all other elements like Samplers, Controllers, Listeners. Right-click on TestFTPSite(our Test Plan) > Add > Threads(Users) > Thread Group. Thread Group will get added under the Test Plan (TestFTPSite) node. Next, let us modify the default properties of the Thread Read More

JMeter Tutorial – Database Test Plan

In this chapter, we will see how to create a simple test plan to test the database server. For our test purpose, we have used the MYSQL database server. You can use any other database for testing. For installation and table creation in MYSQL. Once MYSQL is installed, follow the steps below to set up the database: Create a database with the name “tutorial”. Create a table tutorials_tbl. Insert records into tutorials_tbl : mysql> use TUTORIALS; Database changed mysql> INSERT INTO tutorials_tbl ->(tutorial_title, tutorial_author, submission_date) ->VALUES ->(“Learn PHP”, “John Poul”, NOW()); Query OK, 1 row affected (0.01 sec) mysql> INSERT Read More

JMeter Tutorial – Web Test Plan

Let’s build a simple test plan which tests a web page. We will write a test plan in Apache JMeter so that we can test the performance of one web page say a page is shown by the URL:https://www.testinganswers.com/. Start JMeter Open the JMeter window by clicking on /home/deepak/apache-jmeter-2.9/bin/jmeter.sh. The JMeter window will appear as below:  This is a JMeter window having nothing added yet. Details of the above window are: Test Plan node is where the real test plan is kept. Workbench node is where the temporary stuff is kept. Rename Test Plan Change the name of the test Read More

JMeter Tutorial – Test Plan Elements

A JMeter Test Plan comprises of test elements which are discussed below. A Test Plan would comprise at least one Thread Group. Within each Thread Group, we may place a combination of one or more other elements: Sampler, Logic Controller, Configuration Element, Listener, and Timer. Each Sampler can be preceded by one or more Pre-processor elements, followed by a Post-processor element, and/or Assertion element. Let’s see each of these elements in detail: ThreadGroup Thread Group elements are the beginning points of your test plan. As the name suggests, the thread group elements control the number of threads JMeter will use during Read More

JMeter Tutorial – Build Test Plan

What is a Test Plan? A Test Plan defines and provides a layout of how and what to test. For example the web application as well as the client-server application. It can be viewed as a container for running tests. A complete test plan will consist of one or more elements such as thread groups, logic controllers, sample-generating controllers, listeners, timers, assertions, and configuration elements. A test plan must have at least one thread group. We shall discuss these elements in detail in the next chapter Test Plan Elements.  Follow the below steps to write a test plan:  Start the JMeter Read More

JMeter Tutorial – Overview

What is JMeter? JMeter is software allowing to load test or performance-oriented business (functional) test on different protocols or technologies. Stefano Mazzocchi of the Apache Software Foundation was the original developer of JMeter. He wrote it primarily to test the performance of Apache JServ (Now called as Apache Tomcat project). Apache later redesigned JMeter to enhance the GUI and to add functional testing capabilities. This is a Java desktop application with a graphical interface using the Swing graphical API, can therefore run on any environment/workstation accepting a Java virtual machine, for example, Windows, Linux, Mac, etc. The protocols supported by Read More

JMeter Interview Questions

Q.1: What is JMeter?  A: JMeter is one of the Java tools which is used to perform load testing client/server applications. Apache JMeter is open source software, a 100% pure Java desktop application designed to load test functional behavior and measure performance of the application. It was originally designed for testing Web Applications but has since expanded to other test functions. Q.2: What is Performance Testing?  A: This test sets the ‘best possible’ performance expectation under a given configuration of infrastructure. It also highlights early in the testing process if changes need to be made before the application goes into Read More

Web Applications Testing Techniques

What is Web Testing? Web Testing in simple terms is checking your web application for potential bugs before it’s made life or before code is moved into the production environment. During this stage issues such as that of web application security, the functioning of the site, its access to handicapped as well as regular users, and its ability to handle traffic are checked. Web Application Testing Checklist: Some or all of the following testing types may be performed depending on your web testing requirements.   1. Functionality Testing : This is used to check if your product is as per Read More

Software Testing Interview Questions

    3. A wholesaler sells printer cartridges. The minimum order quantity is 5. There is a 20% discount for orders of 100 or more printer cartridges. You have been asked to prepare test cases using various values for the number of printer cartridges ordered. Which of the following groups contain three test inputs that would be generated using Boundary Value Analysis? 4, 5, 99 4. What is the KEY difference between preventative and reactive approaches to testing? Preventative tests are designed early; reactive tests are designed after the software has been produced. 5. What is the purpose of exit Read More

Explain Smoke Testing in Easy and Simple Way?

Smoke Testing is always confused with the Sanity Testing Example but in reality, both the testing examples are different from each other. Here I am writing Smoke Testing Example in such a way that your confusion can definitely be removed by seen the example. Now before we proceeding towards the Smoke Testing Example, it is very important for us to first take a warm look at Smoke Testing.Smoke Testing – Brief Look Smoke Testing is considered surface-level testing which is always used to validate that build provided by the development to the QA team is ready to accept for further testing. Read More