Wednesday 23 January 2013

Software Testing Types


Software testing life cycle is the process that explains the flow of the tests that are to be carried on each product. The V- Model i.e Verification and Validation Model is a perfect model which is used in the improvement of the software project. This model contains software development life cycle on one side and software testing life cycle on the other hand side. The checklists for software tester sets a baseline that guides him to carry on the day-to-day activities. 

Black Box Testing : It explains the process of giving the input to the system and checking the output, without considering how the system generates the output. It is also known as Behavioral Testing.

Functional Testing : The software is tested for the functional requirements. This checks whether the application is behaving according to the specification.

Performance Testing : This testing checks whether the system is performing properly, according to the user's requirements. Performance testing depends upon the Load and Stress Testing, that is internally or externally applied to the system.
  1. Load Testing: In this type of performance testing, the system is raised beyond the limits in order to check the performance of the system when higher loads are applied.
  2. Stress Testing: In this type of performance testing, the system is tested beyond the normal expectations or operational capacity.
Usability Testing: This is also known as 'Testing for User Friendliness'. It checks the ease of use of an application.

Regression Testing : Regression testing is one of the most important types of testing, which checks whether a small change in any component of the application affects the unchanged components or not. This is done by re-executing the previous versions of the application.

Smoke Testing : It is used to check the testability of the application, and is also called 'Build Verification Testing or Link Testing'. That means, it checks whether the application is ready for further testing and working, without dealing with the finer details.

Sanity Testing : Sanity testing checks for the behavior of the system. This is also called Narrow Regression Testing.

Parallel Testing : Parallel testing is done by comparing results from two different systems like old vs new or manual vs automated.

Recovery Testing : Recovery testing is very necessary to check how fast the system is able to recover against any hardware failure, catastrophic problems or any type of system crash.

Installation Testing : This type of software testing identifies the ways in which installation procedure leads to incorrect results.

Compatibility Testing : Compatibility testing determines if an application under supported configurations performs as expected, with various combinations of hardware and software packages.

Configuration Testing : This testing is done to test for compatibility issues. It determines minimal and optimal configuration of hardware and software, and determines the effect of adding or modifying resources such as memory, disk drives, and CPU.

Compliance Testing : This checks whether the system was developed in accordance with standards, procedures, and guidelines.

Error-Handling Testing : This determines the ability of the system to properly process erroneous transactions.

Manual-Support Testing : This type of software testing is an interface between people and application system.

Inter-Systems Testing : This method is an interface between two or more application systems.

Exploratory Testing : Exploratory testing is similar to ad-hoc testing, and is performed to explore the software features.

Volume Testing : This testing is done when huge amount of data is processed through the application.

Scenario Testing : Scenario testing provides a more realistic and meaningful combination of functions, rather than artificial combinations that are obtained through domain or combinatorial test design.

User Interface Testing : This type of testing is performed to check, how user-friendly the application is. The user should be able to use the application, without any assistance by the system personnel.

System Testing : This testing conducted on a complete, integrated system, to evaluate the system's compliance with the specified requirements. This is done to check if the system meets its functional and non-functional requirements and is also intended to test beyond the bounds defined in the software / hardware requirement specifications.

User Acceptance Testing : Acceptance testing is performed to verify that the product is acceptable to the customer and if it's fulfilling the specified requirements of that customer. This testing includes Alpha and Beta testing.
  1. Alpha Testing: Alpha testing is performed at the developer's site by the customer in a closed environment. This is done after the system testing.
  2. Beta Testing: This is done at the customer's site by the customer in the open environment. The presence of the developer, while performing these tests, is not mandatory. This is considered to be the last step in the software development life cycle as the product is almost ready.
White Box Testing: It is the process of giving the input to the system and checking, how the system processes the input to generate the output. It is mandatory for a tester to have the knowledge of the source code.

Unit Testing : Unit testing is done at the developer's site to check whether a particular piece / unit of code is working fine. It tests the unit of the program as a whole.

Static and Dynamic Analysis : In static analysis, it is required to go through the code in order to find out any possible defect in the code. Whereas, in dynamic analysis, the code is executed and analyzed for the output.

Statement Coverage : It assures that the code is executed in such a way that every statement of the application is executed at least once.

Decision Coverage : This helps in making decision by executing the application, at least once to judge whether it results in true or false.

Condition Coverage : In this type of software testing, each and every condition is executed by making it true and false, in each of the ways, at least once.

Path Coverage : Each and every path within the code is executed at least once to get a full path coverage, which is one of the important parts of the white box testing.

Integration Testing : Integration testing is performed when various modules are integrated with each other to form a sub-system or a system. This mostly focuses in the design and construction of the software architecture. This is further classified into Bottom-Up Integration and Top-Down Integration testing.
  1. Bottom-Up Integration Testing: Here the lowest level components are tested first and then the testing of higher level components is done using 'Drivers'. The entire process is repeated till the time all the higher level components are tested.
  2. Top-Down Integration Testing: This is totally opposite to bottom-up approach, as it tests the top level modules and the branch of the modules are tested step by step using 'Stubs', until the related module comes to an end.
Security Testing: Testing that confirms, how well a system protects itself against unauthorized internal or external, or willful damage of code; means security testing of the system. Security testing assures that the program is accessed by the authorized personnel only.

Mutation Testing : In mutation testing, the application is tested for the code that was modified after fixing a particular bug/defect.

These methods show you the output, and helps you check if the software satisfies the requirement of the customers. Software testing is indeed a vast subject and one can make a successful carrier in this field.

    Wednesday 16 January 2013

    Interview Question and answers

    1) Write the Test Case for Electrical Motor?
    Ans: Check the Power supply of Motor,Check motor running or not
    eg: Your using Verizon internet connection and but since from few day the signals are dropping off for every 5mins. Now you call to version customer care.(Here as tester imagine your are the problem slover and write required step cases that you are going to follow)

    2) Write the Sql Query for Average Calculation?
    Ans: select avg(Column_name) from table_name
    3)  How can you decide max number of testcases for a Module?
    Ans: Based on the number of requirements, we can say min test cases.  Max we can say based on the tester ability.
    4) What is difference between SDLC and STLC?
    Ans: software development life cycle(SDLC) covers the


    Information gathering
    Analysis
    Designing
    Implementation
    a) coding
    b) Testing
    Maintenance.
    In this SDLC Implementation can come along with both coding as well as testing.

    Software testing life cycle(STLC) covers

    Information gathering
    Analysis
    Designing
    Testing
    1. Test planning
    2. Test development
    3. Test execution
    4. Result analysis
    5. Bug reporting
    Maintenance.
    In STLC we never come along with the coding(Developing)
    5) How you test database and explain the procedure?
    Ans: This is not a very good question. Database Testing is purely done based on the requirements. You may generalize a few features but they won't be complete. In general we look at
    1. Data Correctness (Defaults)
    2. Data Storage/Retreival
    3. Database Connectivity (across multiple platforms)
    4. Database Indexing
    5. Data Integrity
    6. Data Security
    6) what is difference between testing and development in your view?
    Ans: In Development,developer's are building/developing the application/project as per the client given requirements.
    In Testing,tester's are checking/validating the application whether it is working as per the client given requirements