USE THIS SEARCH BOX AND GET MORE QUESTIONS UPDATES

Showing posts with label Software Testing Interview Questions and Answers. Show all posts
Showing posts with label Software Testing Interview Questions and Answers. Show all posts

Saturday, August 10, 2019

Software Testing Interview Questions and Answers

  1. Does automation replace manual testing?
    Automation is the integration of testing tools into the test environment in such a manner that the test execution, logging, and comparison of results are done with little human intervention. A testing tool is a software application which helps automate the testing process. But the testing tool is not the complete answer for automation. One of the huge mistakes done in testing automation is automating the wrong things during development. Many testers learn the hard way that everything cannot be automated. The best components to automate are repetitive tasks. So some companies first start with manual testing and then see which tests are the most repetitive ones and only those are then automated.

    As a rule of thumb do not try to automate:
    • Unstable software: If the software is still under development and undergoing many changes automation testing will not be that effective.
    • Once in a blue moon test scripts: Do not automate test scripts which will be run once in a while.
    • Code and document review: Do not try to automate code and document reviews; they will just cause trouble.

    The following figure shows what should not be automated.

    Software Testing Image

    All repetitive tasks which are frequently used should be automated. For instance, regression tests are prime candidates for automation because they're typically executed many times. Smoke, load, and performance tests are other examples of repetitive tasks that are suitable for automation. White box testing can also be automated using various unit testing tools. Code coverage can also be a good candidate for automation.
  2. How does load testing work for websites?
    Websites have software called a web server installed on the server. The user sends a request to the web server and receives a response. So, for instance, when you type www.google.com the web server senses it and sends you the home page as a response. This happens each time you click on a link, do a submit, etc. So if we want to do load testing you need to just multiply these requests and responses "N" times. This is what an automation tool does. It first captures the request and response and then just multiplies it by "N" times and sends it to the web server, which results in load simulation.

    Software Testing Image

    So once the tool captures the request and response, we just need to multiply the request and response with the virtual user. Virtual users are logical users which actually simulate the actual physical user by sending in the same request and response. If you want to do load testing with 10,000 users on an application it's practically impossible. But by using the load testing tool you only need to create 1000 virtual users.

    Software Testing Image

Sunday, October 28, 2018

Testing Techniques

  1. Can you explain boundary value analysis?
    In some projects there are scenarios where we need to do boundary value testing. For instance, let's say for a bank application you can withdraw a maximum of 25000 and a minimum of 100. So in boundary value testing we only test the exact boundaries rather than hitting in the middle. That means we only test above the max and below the max. This covers all scenarios. The following figure shows the boundary value testing for the bank application which we just described. TC1 and TC2 are sufficient to test all conditions for the bank. TC3 and TC4 are just duplicate/redundant test cases which really do not add any value to the testing. So by applying proper boundary value fundamentals we can avoid duplicate test cases, which do not add value to the testing.
    Software Testing Image
  2. Can you explain equivalence partitioning?
    In equivalence partitioning we identify inputs which are treated by the system in the same way and produce the same results. You can see from the following figure applications TC1 and TC2 give the same results (i.e., TC3 and TC4 both give the same result, Result2). In short, we have two redundant test cases. By applying equivalence partitioning we minimize the redundant test cases.
    Software Testing Image
    So apply the test below to see if it forms an equivalence class or not:
    • All the test cases should test the same thing.
    • They should produce the same results.
    • If one test case catches a bug, then the other should also catch it.
    • If one of them does not catch the defect, then the other should not catch it.
  3. Can you explain random/monkey testing?
    Random testing is sometimes called monkey testing. In Random testing, data is generated randomly often using a tool. For instance, the following figure shows how randomly-generated data is sent to the system. This data is generated either using a tool or some automated mechanism. With this randomly generated input the system is then tested and results are observed accordingly.
    Software Testing Image
    Random testing has the following weakness:
    • They are not realistic.
    • Many of the tests are redundant and unrealistic.
    • You will spend more time analyzing results.
    • You cannot recreate the test if you do not record what data was used for testing.

Saturday, October 27, 2018

Six Sigma

  1. What is Six Sigma?
    Six Sigma is a statistical measure of variation in a process. We say a process has achieved Six Sigma if the quality is 3.4 DPMO (Defect per Million Opportunities). It's a problem-solving methodology that can be applied to a process to eliminate the root cause of defects and costs associated with it.
    Software Testing Image
  2. Can you explain the different methodology for the execution and the design process stages in Six Sigma?
    The main focus of Six Sigma is to reduce defects and variations in the processes. DMAIC and DMADV are the models used in most Six Sigma initiatives. 
    Software Testing Image
    DMADV is the model for designing processes while DMAIC is used for improving the process. 

    The DMADV model includes the following five steps:
    • Define: Determine the project goals and the requirements of customers (external and internal).
    • Measure: Assess customer needs and specifications.
    • Analyze: Examine process options to meet customer requirements.
    • Design: Develop the process to meet the customer requirements.
    • Verify: Check the design to ensure that it's meeting customer requirements

    Software Testing Image
    The DMAIC model includes the following five steps:
    • Define the projects, goals, and deliverables to customers (internal and external). Describe and quantify both the defects and the expected improvements.
    • Measure the current performance of the process. Validate data to make sure it is credible and set the baselines.
    • Analyze and determine the root cause(s) of the defects. Narrow the causal factors to the vital few.
    • Improve the process to eliminate defects. Optimize the vital few and their interrelationships.
    • Control the performance of the process. Lock down the gains.
  3. Can you explain the fish bone/Ishikawa diagram?
    There are situations where we need to analyze what caused the failure or problem in a project. The fish bone or Ishikawa diagram is one important concept which can help you find the root cause of the problem. Fish bone was conceptualized by Ishikawa, so in honor of its inventor, this concept was named the Ishikawa diagram. Inputs to conduct a fish bone diagram come from discussion and brainstorming with people involved in the project. The following figure shows the structure of the Ishikawa diagram.
    Software Testing Image
    The main bone is the problem which we need to address to know what caused the failure. For instance, the following fish bone is constructed to find what caused the project failure. To know this cause we have taken four main bones as inputs: Finance, Process, People, and Tools.

Sunday, October 21, 2018

Capability Maturity Model Integration

  1. What is CMMI and what's the advantage of implementing it in an organization?
    CMMI stands for Capability Maturity Model Integration. It is a process improvement approach that provides companies with the essential elements of an effective process. CMMI can serve as a good guide for process improvement across a project, organization, or division.
    CMMI was formed by using multiple previous CMM processes. 

    The following are the areas which CMMI addresses:

    Software Testing Image

    Systems engineering: This covers development of total systems. System engineers concentrate on converting customer needs to product solutions and supports them throughout the product lifecycle.

    Software engineering: Software engineers concentrate on the application of systematic, disciplined, and quantifiable approaches to the development, operation, and maintenance of software.

    Integrated Product and Process Development (IPPD): Integrated Product and Process Development (IPPD) is a systematic approach that achieves a timely collaboration of relevant stakeholders throughout the life of the product to better satisfy customer needs, expectations, and requirements. This section mostly concentrates on the integration part of the project for different processes. For instance, it's possible that your project is using services of some other third party component. In such situations the integration is a big task itself, and if approached in a systematic manner, can be handled with ease.

    Software acquisition: Many times an organization has to acquire products from other organizations. Acquisition is itself a big step for any organization and if not handled in a proper manner means a disaster is sure to happen.
  2. What's the difference between implementation and institutionalization?
    Both of these concepts are important while implementing a process in any organization. Any new process implemented has to go through these two phases.
    Software Testing Image
    Implementation: It is just performing a task within a process area. A task is performed according to a process but actions performed to complete the process are not ingrained in the organization. That means the process involved is done according to the individual point of view. When an organization starts to implement any process it first starts at this phase, i.e., implementation, and then when this process looks good it is raised to the organization level so that it can be implemented across organizations. 

    Institutionalization: Institutionalization is the output of implementing the process again and again. The difference between implementation and institutionalization is in implementation if the person who implemented the process leaves the company the process is not followed, but if the process is institutionalized then even if the person leaves the organization, the process is still followed.
  3. Can you explain the different maturity levels in a staged representation?
    There are five maturity levels in a staged representation as shown in the following figure.

    Maturity Level 1 (Initial): In this level everything is adhoc. Development is completely chaotic with budget and schedules often exceeded. In this scenario we can never predict quality. 

    Maturity Level 2 (Managed): In the managed level basic project management is in place. But the basic project management and practices are followed only in the project level.

    Maturity Level 3 (Defined): To reach this level the organization should have already achieved level 2. In the previous level the good practices and process were only done at the project level. But in this level all these good practices and processes are brought to the organization level. There are set and standard practices defined at the organization level which every project should follow. Maturity Level 3 moves ahead with defining a strong, meaningful, organizational approach to developing products. An important distinction between Maturity Levels 2 and 3 is that at Level 3, processes are described in more detail and more rigorously than at Level 2 and are at an organization level.

    Maturity Level 4 (Quantitatively measured): To start with, this level of organization should have already achieved Level 2 and Level 3. In this level, more statistics come into the picture. Organization controls the project by statistical and other quantitative techniques. Product quality, process performance, and service quality are understood in statistical terms and are managed throughout the life of the processes. Maturity Level 4 concentrates on using metrics to make decisions and to truly measure whether progress is happening and the product is becoming better. The main difference between Levels 3 and 4 are that at Level 3, processes are qualitatively predictable. At Level 4, processes are quantitatively predictable. Level 4 addresses causes of process variation and takes corrective action.

    Maturity Level 5 (Optimized): The organization has achieved goals of maturity levels 2, 3, and 4. In this level, processes are continually improved based on an understanding of common causes of variation within the processes. This is like the final level; everyone on the team is a productive member, defects are minimized, and products are delivered on time and within the budget boundary.

    The following figure shows, in detail, all the maturity levels in a pictorial fashion.
    Software Testing Image