Interview Questions and Answers

Interview Questions And Answers

Manual, automation, qtp,qc, bugzilla, agilemethodology, functional ...More
Manual, automation, qtp,qc, bugzilla, agilemethodology, functionaltesting, non functionaltesting, black box,structural, peer to peertesting, white boxtesting, static testing,dynamic testing,Assertion Testing. (NBS), Automated Testing ,Background testing, Bug,Beta Testing, Benchmarks,Benchmarking, Big-bangtesting , Boundary ValueAnalysis , Cause EffectGraph Less

Interview Questions and Answers

to get instant updates about 'Interview Questions And Answers' on your MyPage. Meet other similar minded people. Its Free!

X 

All Updates


No Detailed Information available.

No feeds found

All
Posting your question. Please wait!...


About

Manual, automation, qtp, qc, bugzilla, agile methodology, functional testing, non functional testing, black box, structural, peer to peer testing, white box testing, static testing, dynamic testing, Assertion Testing. (NBS) , Automated Testing , Background testing, Bug, Beta Testing, Benchmarks, Benchmarking, Big-bang testing , Boundary Value Analysis , Cause Effect Graph

RSS

03:52 PM - 22 Aug 14

jMeter Interview Questions - 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 performance of one web page say page shown by the URL:http://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 test plan node to Sample Test in the Name text box. You have to change focus to workbench node and back to Test Plan node to see the name getting reflected.Add Thread Group Now we will add our first element in the window. We will add one Thread Group, which is placeholder for all other elements like Samplers, Controllers, Listeners. We need one so we can configure number of users to simulate. In JMeter all the node elements are added by using the context menu. You have to right click the element where you want to add a child element node. Then choose the appropriate option to add. Right click on Sample Test(our Test Plan )> Add> Threads(Users)> Thread Group. Thread Group will get added under the Test Plan (Sample Test) node.We will name Thread Group as Users. For us this element means Users visiting the TutorialsPoint Home Page. Add Sampler Now we have to add one Sampler in our Thread Group (Users). As done earlier for adding Thread group, this time we will open the context menu of the Thread Group (Users) node by right clicking and we will add HTTP Request Sampler by choosing Add > Sampler> HTTP request option.This will add one empty HTTP Request Sampler under the Thread Group (Users) node. Let us configure this node element:Name: We will change the name to reflect the action what we want to achieve. We will name it as Visit TutorialsPoint Home PageServer Name or IP: Here we have to type the web server name. In our case it is www.testinganswers.com. (http:// part is not written this is only the name of the server or its IP)Protocol: We will keep this blank, which means we want HTTP as the protocol.Path: We will type path as / (slash). This means we want the root page of the server. Add Listener We will add a listener. Let us add View Results Tree Listener under the Thread Group (User) node. This will ensure that the results of the Sampler will be available to view in this Listener node element. Open the context menu and Right click on Thread Group(Users) choose Add > Listener > View Results Tree option to add the listener.Run the Test Plan Now with all the setup, let's execute the test plan. With the configuration of the Thread Group (Users) we have kept it all default values. This means JMeter will execute the sampler only once. It will be like a single user and only one time. This is similar to like a user visiting a web page through browser, only here we are doing that through JMeter sampler. We will execute the test plan using Run > Start option. Apache JMeter asks us to save the test plan in a disk file before actually starting the test. This is important if we want to run the test plan again and again. If we say not to save by clicking No option it will run without saving. View Output We have kept the setting of the thread group as single thread (that means one user only) and loop for 1 time (that means run only one time), hence we will get result of one single transaction in the View Result Tree Listener. Details of the above result are: Green color against the name Visit TutorialsPoint Home Page indicates success.JMeter has stored all the headers and the response sent by the web server and ready to show us the result in many ways.The first tab is Sampler Results. It shows JMeter data as well as data returned by the web server. The second tab is Request, where all the data which was sent to the web server as part of the request is shown.  The last tab is Response data. In this tab the listener shows the data received from server as it is in text format.This is just a simple test plan which executes only one request. But JMeter's real strength is in sending the same request like many users are sending it. To test the web servers with multiple users we will have to change the Thread Group (Users) settings. Answers Here...
03:50 PM - 22 Aug 14

jMeter Interview Questions - 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 of other elements: Sampler, Logic Controller, Configuration Element, Listener, and Timer. Each Sampler can be preceded by one or more Pre-processor element, followed by 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 the test. We can also control the following via the Thread Group: By setting the number of Threads.By setting the Ramp Up TimeBy setting the number of test iterations. The Thread Group Control Panel looks like this:Details of each component on the above panel are: Action to be taken after a Sampler error: In case any error occurs during test execution you may let the test either: Continue to the next element in the testStop Thread to stop the current Thread.Stop Test completely, in case you want to inspect the error before continue running. Number of Threads: Simulates the number of user(s) or connection(s) to your server application.Ramp-Up Period: Defines how long it will take JMeter to get all threads running.Loop Count: Defines the number of times to execute the test. Scheduler checkbox Once selected, the Scheduler Configuration section will appear at the bottom of the control panel.Scheduler Configuration You can configure the start and end time of running the test. Controllers JMeter has two types of Controllers: Samplers and Logic Controllers. Samplers Samplers allow JMeter to send specific types of requests to a server. They simulate a user's request for a page from the target server. For example, you can add a HTTP Request sampler if you need to perform a POST, GET, DELETE on a HTTP service Some useful samplers are: HTTP RequestFTP RequestJDBC RequestJava RequestSOAP/XML RequestRPC Requests An HTTP Request Sampler Control Panel looks like the following figure:Answers Here...
01:49 PM - 13 Aug 14

jMeter Interview Questions - 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 window Open the JMeter window by clicking on /home/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 simply provides a place to temporarily store test elements while not in use, for copy/paste purposes. When you save your test plan, WorkBench items are not saved with it. Add/Remove ElementsElements (which will be discussed in the next chapter Test Plan Elements) of a test plan can be added by right clicking on the Test Plan node and choosing a new element from the "add" list. Alternatively, elements can be loaded from file and added by choosing the "merge" or "open" option. For example let's add a Thread Group element to a Test Plan as shown below: To remove an element, make sure the element is selected, right-click on the element, and choose the "remove" option.Loading and Saving Elements To load an element from file, right click on the existing tree element to which you want to add the loaded element, and select the "merge" option. Choose the file where your elements are saved. JMeter will merge the elements into the tree.To save tree elements, right click on an element and choose the Save Selection As ... option. JMeter will save the element selected, plus all child elements beneath it. By default JMeter doesn't save the elements, you need to explicitly save it as mentioned earlier. Configuring Tree Elements Any element in the Test Plan can be configured in the controls present in JMeter's right-hand frame. These controls allow you to configure the behavior of that particular test element. For example the Thread Group can be configured for number of users, ramp up period etc as below:Saving the Test Plan You can save an entire Test Plan either by using Save or "Save Test Plan As ..." from the File menu.Running a Test Plan You can run your Test Plan choosing Start (Control + r) from the Run menu item. When JMeter is running, it shows a small green box at the right hand end of the section just under the menu bar.  The numbers to the left of the green box are the number of active threads / total number of threads. These only apply to a locally run test; they do not include any threads started on remote systems when using client-server mode. Stopping a Test You can stop your test in two ways: Using Stop (Control + '.'). This stops the threads immediately if possible. Using Shutdown (Control + ','). This requests the threads to stop at the end of any current work. Answers Here...
12:22 PM - 13 Aug 14

jMeter Interview Questions - Overview

What is JMeter? JMeter is a 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 JMeter are: Web: HTTP, HTTPS sites 'web 1.0' web 2.0 (ajax, flex and flex-ws-amf)Web Services: SOAP / XML-RPCDatabase via JDBC driversDirectory: LDAP Messaging Oriented service via JMSService: POP3, IMAP, SMTPFTP Service  JMeter Features Following are some of the features of JMeter: Its free. Its an open source software.It has simple and intuitive GUI.JMeter can load and performance test many different server types: Web - HTTP, HTTPS, SOAP, Database via JDBC, LDAP, JMS, Mail - POP3It is platform-independent tool. On Linux/Unix, JMeter can be invoked by clicking on JMeter shell script. On Windows it can be invoked by starting the jmeter.bat file.It has full Swing and lightweight component support (precompiled JAR uses packages javax.swing.* ).JMeter store its test plans in XML format. This means you can generate a test plan using a text editor.It's full multi-threading framework allows concurrent sampling by many threads and simultaneous sampling of different functions by separate thread groups.It is highly Extensible.Can also be used to perform automated and functional testing of your application. How JMeter Works? JMeter simulates a group of users sending requests to a target server, and return statistics that show the performance/functionality of the target server / application via tables, graphs etc. The figure below depicts this process:Answers Here...

View more rss »

Links

View more links »

No messages found
Suggested Pages
Tell your friends >
about this page
 Create a new Page
for companies, colleges, celebrities or anything you like.Get updates on MyPage.
Create a new Page
 Find your friends
  Find friends on MyPage from