Interview Preparation Testing
Interview Preparation Testing
The Requirements Traceability Matrix (RTM) is a tool to make sure that project requirement
remain same throughout the whole development process. RTM is used in the development
process because of following reasons:
• To determine whether the developed project is meet the requirements of the user.
• To determine all the requirements given by the user
• To make sure the application requirement can be fulfilled in the verification process.
• A beta test when the product is about to release to the end user whereas pilot testing take place
in the earlier phase of the development cycle.
• In beta testing application is given to a few user to make sure that application meet the user
requirement and does not contain any showstopper whereas in case of pilot testing team member
give their feedback to improve the quality of the application.
Risk analysis is the process of identifying risk in the application and prioritizing them to test.
Following are some of the risks:
1. New Hardware.
2. New Technology.
3. New Automation Tool.
4. Sequence of code delivery.
5. Availability of application test resources.
• High magnitude: Impact of the bug on the other functionality of the application.
• Medium: it can be tolerable in the application but not desirable.
• Low: it can be tolerable. This type of risk has no impact on the company business.
Silk Test is a tool developed for performing the regression and functionality testing of the
application. Silk Test a tool is used when we are testing the applications which are based on
Window, Java, web or traditional client/server. Silk Test help in preparing the test plan and
management of those test plans, to provide the direct accessing of the database and validation of
the field.
Q5. What is difference between Master Test Plan and Test Plan.
The differences between Master Plan and Test Plan are given below:
• Master Test Plan contains all the testing and risk involved area of the application where as Test
case document contains test cases.
• Master Test plan contain all the details of each and every individual tests to be run during the
overall development of application whereas test plan describe the scope, approach, resources and
schedule of performing test.
• Master Test plan contain the description of every tests that is going to be performed on the
application where as test plan only contain the description of few test cases. during the testing
cycle like Unit test, System test, beta test etc
• Master Test Plan is created for all large projects but when it is created for the small project then
we called it as test plan.
1. Low memory.
2. Addressing to non available memory location.
3. Things happening in a particular sequence.
• Cohesion is the degree which is measure dependency of the software component that combines
related functionality into a single unit whereas coupling means that binding the related
functionality into different unit.
• Cohesion deals with the functionality that related different process within the single module
where as coupling deals with how much one module is dependent on the other modules within
the application.
• It is good to increase the cohesion between the software whereas increasing coupling is
avoided.
This choice between automated testing over manual testing can be based upon following factors:
Quality Assurance (QA): QA refers to the planned and systematic way of monitoring the quality
of process which is followed to produce a quality product. QA tracks the outcomes and adjusts
the process to meet the expectation.
Quality Control (QC): Concern with the quality of the product. QC finds the defects and suggests
improvements. The process set by QA is implemented by QC. The QC is the responsibility of the
tester.
Software Testing: is the process of ensuring that product which is developed by the developer
meets the user requirement. The motive to perform testing is to find the bugs and make sure that
they get fixed.
Q13. What is difference between Front End Testing and Back End testing?
• Front End Testing is performed on the Graphical User Interface (GUI).whereas Back End
Testing involves databases testing.
• Front end consist of web site look where user can interact whereas in case of back end it is the
database which is required to store the data.
• When ender user enters data in GUI of the front end application, then this entered data is stored
in the database. To save this data into the database we write SQL queries.
The process of performing testing automatically which reduces the human intervention this is
automation testing. The automation testing is carried out with the help of the some automation
tool like QTP, Selenium, WinRunner etc. In automation testing we use a tool that runs the test
script to test the application; this test script can be generated manually or automatically. When
testing is completed then tools automatically generate the test report and report.
1. Different purpose
2. Different metrics for quality and
3. Different users
Exhaustive Testing, as the name suggests is very exhaustive. Exhaustive testing means to test
every component in the application with every possible number of inputs. According to
Principles of testing Exhaustive Testing is Impossible because exhaustive testing requires more
time and effort to test the application for all possible number of inputs. This may lead to high
cost and delay in the release of the application.
Grey box testing is the hybrid of black box and white box testing. In gray box testing, test
engineer has the knowledge of coding section of the component and designs test cases or test
data based on system knowledge. In this tester has knowledge of code, but this is less than the
knowledge of white box testing. Based on this knowledge the test cases are designed and the
software application under test treats as a black box & tester test the application from outside.
Integration testing is black box testing. Integration testing focuses on the interfaces between
units, to ensure that units work together to complete a specify task. The purpose of integration
testing is to confirm that different components of the application interact with each other. Test
cases are developed with the purpose of exercising the interfaces between the components.
Integration testing is considered complete, when actual results and expected results are same.
Integration testing is done after unit testing. There are mainly three approaches to do integration
testing:
Scalability testing is testing performed in order to enhanced and improve the functional and
performance capabilities of the application. So that, application can meets requirements of the
end users. The scalability measurements is done by doing the evaluating the application
performance in load and stress conditions. Now depending upon this evaluation we improve and
enhanced the capabilities of the application.
In Storage Testing we test those functionalities of the application which is responsible for storing
the data into database. The data entered by the end user in GUI or front end, is the same data
which is stored in the database. The storage testing determines that the data taken from the front
end of the application is stored in correct place and in correct manner in the database.
Stress testing tests the software with a motive to check that the application do not crashes if we
increase the stress on the application by increasing the large number of user working on the
application. We can also apply the stress on the application firing the lots of process which
cannot be handled by the application. We perform the stress testing on the application evaluate
the application capabilities at or beyond the limits of its specified requirements to determine.
Generally, this is a type of performance testing performed in a very high level of load and stress
condition.
A test harness is a collection of software and test data required to test the application by running
it in different testing condition like stress, load, data- driven, and monitoring its behavior and
outputs. Test Harness contains two main parts:
Automation testing is the use of a tool to control the execution of tests and compare the actual
results with the expected results. It also involves the setting up of test pre-conditions.
• The Stub is called from the software component to be tested. It is used in top down approach.
• The driver calls a component to be tested. It is used in bottom up approach.
• Both test stub and test driver are dummy software components.
• Suppose we want to test the interface between modules A and B and we have developed only
module A. So we cannot test module A but if a dummy module is prepare, using that we can test
module A.
• Now module B cannot send or receive data from module A directly so, in these cases we have
to transfer data from one module to another module by some external features. This external
feature used is called Driver.
Manual Scripted Testing: Testing method in which the test cases are designed and reviewed by
the team before executing it. It is done by manual testing teams.
Manual-Support Testing: Testing technique that involves testing of all the functions performed
by the people while preparing the data and using these data from automated system. it is
conducted by testing teams
Q28. What is Fuzz testing, backward compatibility testing and assertion testing?
Fuzz Testing: testing application by entering invalid, unexpected, or random data to the
application this testing is performed to ensure that application is not crashing when entering
incorrect and unformatted data.
There are lots of environmental factors that affect the testing like speed of data transfer data
transfer, hardware, and server etc while working with client or server technologies, testing will
be extensive. When we have time limit, we do the integration testing. In most of the cases we
prefer the load, stress and performance testing for examine the capabilities of the application for
the client or server environment.
Onsite coordinator is a point of contact for the offshore team and to the client for any
information regarding the testing engagement.
Q32.Inconsistent bugs – Why onsite can find it but offshore can’t and vice versa
– How to handle this situation?
Every bug has to be noted and analyzed – whether it is encountered at onsite or offshore, whether
repeatable or not. A real value add to a tester’s job is when we involve ourselves in the Root
Cause Analysis process for a bug rather than simply reporting it.
#3. Despite all these steps, if we still can’t tell why and when the problem occurs- we should
report it to the developer all the same – with as much information as we can.
Cyclomatic complexity is a software metric that measure the logical strength of the program. It
was developed by Thomas J. McCabe. Cyclomatic complexity is calculated by using the control
flow graph of the program. In the flow graph, nodes are represented by circle. Areas bounded by
edges and nodes are called regions. When counting regions, we also include the area outside the
graph as a region.
V(G) = E - N + 2
V(G) = P + 1 ,where P is the number of predicate nodes contained in the flow graph G.
Note: Nodes that contain a condition is called a predicate node and is characterized by two or
more edges originating from it.
Find out the Cyclomatic complexity V(G) of the given below flow graph.
In the above flow graph there are total 9 nodes, 11 edges, and 4 regions.
E1 <relational-operator>E2
Where E1 and E2 are arithmetic expressions and <relational-operator> is one of the following: <,
≤,=, ≠ (not equal to), >, or ≥. A compound condition is created by using two or more simple
conditions, Boolean operators, and parentheses. Conditional error is generated if Boolean
variable, relational operator or Boolean operator is incorrectly used.
PDCA is a four step problem solving process. The following are the explanation of each step:
A statistical technique for making decisions which is used for selecting a limited number of tasks
which produce significant overall effect. Pareto Analysis uses the ‘Pareto Principle’ – an idea by
which 80% of doing the entire job is generated by doing 20% of the work.
When many possible courses of actions are completing the attention, the technique ‘Pareto
Analysis’ is useful. In essence, the delivered benefit by each action is estimated by problem-
solver, and selects the number of most effective actions which delivers the total benefit.
A bug is a fault in a program which causes it to behave abruptly. Bugs are usually found either
during unit testing done by developer of module testing by testers.
A defect is found when the application does not conform to the requirement specification. A
defect can also be found when the client or user is testing.
Latent Bug: The bug that is not identified in the past versions of the software application
Golden Bug: The bug that is occurred in every instances of the application with severity level
high and with high priority
Answer
CAR identifies problem and perform a root cause analysis of
CAR – Causal analysis and resolution:
the same. CAR needs to be performed at every project phase. Fishbone diagram is one of the
ways to perform CAR.
DAR- Decision Analysis and Resolution. :Thisis to analyze possible decisions using a formal
evaluation process that identifies alternatives against current resources.
The following are the ways to write the test cases for database testing:
1. Understand the functional requirement of the application
2. Find out the tables used, joins used between tables, cursors used, triggers used, stored
procedures used, input parameters used and output parameters used.
3. Write the test case with multiple input values for checking all paths.
Writing test cases for back end testing, one should use white box testing as opposed to functional
testing.
The tester needs to go through the requirement of the need of the stored procedure.
Checks whether the indexes, joins, deletions, update are correct in comparison with tables
mentioned in stored procedure. Ensure that the stored procedure is following the standards.
Check the calling procedure name, calling parameters and expected responses for different sets
of input parameters.
Run the procedure with database client programs like TOAD or MySQL or Query Analyzer etc.
Rerun the available procedures by sending different parameters, and check the results against
expected values
Pareto Principle is also known as 80/20 principle. It is a management tool to track problem
tracking effectively. This principle says that 20% of the problems lead to 80% of other problems.
Hence, in order to concentrating on solving 80% of the problems rather, one can concentrate to
solve 20 % of the problems which saves lot of troubles. The analysis and concentration is done
for only 20% of the vital problems. In a project the vital problems are the first 10% and the last
10% .
Part –2
Baseline testing is the process of running a set of tests to capture performance information.
Baseline testing use the information collected to made the changes in the application to improve
performance and capabilities of the application. Baseline compares present performance of
application with its own previous performance.
Branch Coverage is testing performed in order to ensure that every branch of the software is
executed atleast. To perform the Branch coverage testing we take the help of the Control Flow
Graph.
Decision coverage testing ensures that every decision taking statement is executed atleast once.
Both decision and branch coverage testing is done to ensure the tester that no branch and
decision taking statement, will not lead to failure of the software.
To Calculate Branch Coverage:
Branch Coverage = Tested Decision Outcomes / Total Decision Outcomes.
Retesting is done to verify defect fix previous in now working correctly where as
regression is perform to check if the defect fix have not impacted other functionality that
was working fine before doing changes in the code.
Retesting is specific and is performed on the bug which is fixed where as in regression is
not be always specific to any defect fix it is performed when any bug is fixed.
Retesting concern with executing those test cases that are failed earlier where as
regression concern with executing test cases that was passed in earlier builds.
Retesting has higher priority over regression.
In this testing we insert few bugs into program to examine the optimal test inputs.
It answers: How quickly we need to fix the bug? Or how soon the bug should get fixed?
Severity: concern with functionality of application.
How much the bug is affecting the functionality of the application?
Ex.
Bug Leakage: When customer or end user discovered a bug which can be detected by the testing
team. Or when a bug is detected which can be detected in pervious build then this is called as
Bug Leakage.
Bug release: is when a build is handed to testing team with knowing that defect is present in the
release. The priority and severity of bug is low. It is done when customer want the application on
the time. Customer can tolerate the bug in the released then the delay in getting the application
and the cost involved in removing that bug. These bugs are mentioned in the Release Notes
handed to client for the future improvement chances.
9. What is alpha and beta testing?
Alpha testing: is performed by the IN-House developers. After alpha testing the software is
handed over to software QA team, for additional testing in an environment that is similar to the
client environment.
Beta testing: beta testing becomes active. It is performed by end user. So that they can make
sure that the product is bug free or working as per the requirement. IN-house developers and
software QA team perform alpha testing. The public, a few select prospective customers or the
general public performs beta testing.
Monkey testing is a type of Black Box Testing used mostly at the Unit Level. In this tester enter
the data in any format and check the software is not crashing. In this testing we use Smart
monkey and Dumb monkey.
Smart monkeys are used for load and stress testing, they will help in finding the bugs.
They are very expensive to develop.
Dumb monkey, they are important for basic testing. They help in finding those bugs
which are having high severity. Dumb monkey are less expensive as compare to Smart
monkeys.
The Stub is called from the software component to be tested. It is used in top down
approach.
The driver calls a component to be tested. It is used in bottom up approach.
Both test stub and test driver are dummy software components.
Suppose we want to test the interface between modules A and B and we have developed
only module A. So we cannot test module A but if a dummy module is prepare, using that
we can test module A.
Now module B cannot send or receive data from module A directly so, in these cases we
have to transfer data from one module to another module by some external features. This
external feature used is called Driver.
When tester performs testing of application by using random input from the input domain of the
system, this is Random Testing. Random testing involve following procedures:
Selection of input domain.
Randomly selecting any input from input domain.
Using these test input testing of application is performed.
The results are compared to the system specification. The test is a failure if any input
leads to incorrect results, otherwise it is a success.
Agile Testing means to quickly validation of the client requirements and make the application of
good quality user interface. When the build is released to the testing team, testing of the
application is started to find the bugs. As a Tester, we need to focus on the customer or end user
requirements. We put the efforts to deliver the quality product in spite of short time frame which
will further help in reducing the cost of development and test feedbacks will be implemented in
the code which will avoid the defects coming from the end user.
Use Case: A use case is a description of the process which is performed by the end user for a
particular task. Use case contains a sequence of step which is performed by the end user to
complete a specific task or a step by step process that describe how the application and end user
interact with each other. Use case is written by the user point of view.
Use case Testing: the use case testing uses this use case to evaluate the application. So that, the
tester can examines all the functionalities of the application. Use case testing cover whole
application,
1. To have a signed, sealed, and delivered document, where the document contains details about
the testing methodology, test plan, and test cases.
2. Test strategy document tells us how the software product will be tested.
3. Test strategy document helps to review the test plan with the project team members.
4. It describes the roles, responsibilities and the resources required for the test and schedule.
5. When we create a test strategy document, we have to put into writing any testing issues
requiring resolution.
The test strategy is decided first, before lower level decisions are made on the test plan, test
design, and other testing issues
Error Guessing is a test case design technique where the tester has to guess what faults might
occur and to design the tests to represent them.
Error Seeding is the process of adding known faults intentionally in a program for the reason of
monitoring the rate of detection & removal and also to estimate the number of faults remaining
in the program.
A test harness is a collection of software and test data required to test the application by running
it in different testing condition like stress, load, data- driven, and monitoring its behavior and
outputs. Test Harness contains two main parts:
Automation testing is the use of a tool to control the execution of tests and compare the actual
results with the expected results. It also involves the setting up of test pre-conditions.
20. Explain Statement coverage.
Statement Coverage is a metric used in White Box Testing. Statement coverage is used to ensure
that all the statement in the program code is executed at least once. The advantages of Statement
Coverage are:
Static testing: Static testing is a technique used in the earlier phase of the development
life cycle. The code error detection and execution of program is not concern in this type
of testing. Also known as non-execution technique. The Verification of the product is
performed in this testing technique like Code Reviews, Inspections, Walkthroughs are
mostly done in this stage of testing.
Dynamic testing: Dynamic Testing is concern with the execution of the software. This
technique is used to test the dynamic behavior of the code. Most of the bugs are identified
using this technique. These are the Validation activities. It uses different methodologies
to perform testing like Unit Tests, Integration Tests, System Tests and Acceptance
Testing, etc.
User Acceptance Testing (UAT) is performed by the end users on the applications before
accepting the application.
Alpha testing: is performed by the IN-House developers. After alpha testing the software is
handed for the Beta testing phase, for additional testing in an environment that is similar to the
client environment.
Beta testing: is performed by the end user. So that they can make sure that the product is bug
free or working as per the requirement. IN-house developers and software QA team perform
alpha testing. The public, a few select prospective customers or the general public performs beta
testing.
Gamma Testing: Gamma Testing is done when the software is ready for release with specified
requirements. This testing is done directly by skipping all the in-house testing activities.
23. What should be done after a bug is found?
After finding the bug the first step is bug to be locked in bug report. Then this bug needs to be
communicated and assigned to developers that can fix it. After the bug is fixes by the developer,
fixes should be re-tested, and determinations made regarding requirements for regression testing
to check that fixes didn't create problems elsewhere.
In this situation is for the testers to go through the process of reporting of bugs with the focus
being on critical bugs. Since this type of problem can severely affect schedules, and indicates
deeper problems in the software development process project managers should be notified, and
provided with some documentation.
Corrective Maintenance
Adaptive Maintenance
Perfective Maintenance
Preventive Maintenance
The RAD model Rapid Application development (RAD) is incremental software development
process models that focus on the development of the project in very short time. It is enhanced
version of Waterfall model. It is proposed when requirements and solutions can be made
independently system or software components, which is developed by different teams. After
these smaller system components are developed, they are integrated to produce the large
software system solution.
A software review can be defined as a filter for the software engineering process. The purpose of
any review is to discover errors in the analysis, design, and coding, testing and implementation
phases of the software development cycle. The other purpose of a review is to see whether
procedures are applied uniformly and in a manageable manner. It is used to check the process
followed to develop the software is right.
By analyzing a final product the process of recreating a design is known as reverse engineering.
Reverse engineering is the process followed in order to find difficult, unknown, and hidden
information about a software system. It is important when software products lack proper
documentation, and are highly unstructured, or their structure has degraded through a series of
maintenance efforts. Maintenance activities cannot be performed without a complete
understanding of the software system.
The Data Flow Diagram gives us information of the flow of data within the application.
Exploratory testing: means testing an application without a test plan and test script. In exploring
testing test explore the application on the basis on his knowledge. The tester has no knowledge
about the application previously. He explores the application like an end user and try to use it.
While using the application his main motive is to find the bugs which are in the application.
Compatibility testing is a type of testing used to find out the compatibility between the
application and platform on which application works, web browsers, hardware, operating
systems etc. Good software must be compatible with different hardware, web browser and
database.
V model: it is enhanced version of waterfall model where each level of the development
lifecycle is verified before moving to next level. In this testing starts at the very beginning. By
testing we mean verification by means of reviews and inspections, static testing. Each level of
the development lifecycle has a corresponding test plan. A test plan is developed to prepare for
the testing of the products of that phase. Be developing the test plans, we can also define the
expected results for testing of the products for that level as well as defining the entry and exit
criteria for each level.
Concurrency Testing is used to know the effects of using the software by different users at the
same time. In this type of testing we have multiple users performing the exact same requests at
the same time. It helps in identifying and measuring the problems in Response time, levels of
locking and deadlocking in the application. For this we use Load runner to create VUGen
(Virtual User Generator) is used to add the number of concurrent users and perform operation on
the application on the same time.
37. What is an inspection in software testing?
38. A Form has four mandatory fields to be entered before you Submit. How
many numbers of test cases are required to verify this? And what are they?
1. Enter the data in all the mandatory fields and submit, should not display error message.
2. Enter data in any two mandatory fields and summit, should issue an error message.
3. Do not enter in any of the fields should issue an error message.
4. If the fields accept only number, enter numbers in the fields and submit, should not issue an
error message, try to enter only in two fields should issue an error message, and enter alphabets
in two fields and number in other two fields it should issue an error message.
5. If the fields do not accept special characters, then enter the characters and submit it.
Cyclomatic complexity is used to measure the complexity of the software using the control flow
graph of the software. It is a graphical representation, consisting of following:
Using this node and edges we calculated the complexity of the program.
This determines the minimum number of inputs you need to test all ways to execute the
program.
With any application that we test, we are trying to see if a certain set of requirements are met by
the application or not. But when it comes to a user facing site, apart from concentrating on
functionality, we also have to look into few the usability features, may be performance and
security aspects also to a certain extent.
The first level of testing is – Does the site satisfy its functional requirements. Example: if it is a
loan management site, we need to look at – are the new customer able to apply for a loan, are the
existing customer able to access their loan info, is the interest % applied to the loan amount
correct, etc.
The next level of testing is – how easy is it to use the site, do the options make a logical sense
and meet the expectations of the user or not. For example, if the user has to be pass 3-4 screens
to submit the basic information they are going to be annoyed, so such issues have to be
addressed. Another example, after entering username and password, the user might click on tab-
which means the control should go to “Sign in” button, instead if it’s going to cancel, the user is
going to be really annoyed and the experience of using the site is going to be compromised. Such
issues have to be caught.
Performance testing to the complete extent might not be in scope but simple situations like,
how long does the search results take to be displayed and how much time does it take for the
system to retrieve a customer info at the peak hour – these are some example of the kind of
things we would want to keep an eye on.
Security – for sites where there is a secure login to access the site, the minimum functionality
around it has to be tested. For example, if I leave the site idle for more than 10 minutes, is it auto
logging out or not. Something as basic as that should be focused on.
42. How to overcome the challenge of not having input documentation for
testing?
IF the detailed standard documentation like BRD and FSD are unavailable, the tester will have to
depend on some point of reference.
a) Screenshots
b) A previous version of the application
c) Wireframes …etc
Another factor that helps immensely, is to talk to the developers or the business analysts (when
available) to get a confirmation on our understanding or clarifications in case of doubts.
When none of these situations work, we can just conceptualize the application based on our
previous IT application experience and create the basic set of test scripts. When testing phase
comes up, we can set up a portion of test cycle time and do some test case management (make
the already created scripts perfect) so we have the doc for the next phases.
43. What is the most challenging situation you had during testing ?
I found testing of Auto Reversal of the Transaction (Loan Amount) in SCFU Factoring was
very challenging as we have to test, in which order the Knock-off is taking place in the system
when Credit flow to the Reversal Account to do so we have arranged many discussion with or
Test Manager and Business Analyst. Also we explained different scenarios to BA and get the
concept cleared from her. While Testing we have to observe the Responses from Finacle and
analyze that.