Testing Interview Questions
Testing Interview Questions
Testing Interview Questions
The main focus in Black Box Testing is on the functionality of the system as a
whole. The term �Behavioral Testing' is also used for Black Box Testing. Behavioral
test design is slightly different from the black-box test design because the use of
internal knowledge isn't strictly forbidden, but it's still discouraged.
Each testing method has its own advantages and disadvantages. There are some bugs
that cannot be found using the only black box or only white box technique.
Majority of the applications are tested by Black Box method. We need to cover the
majority of test cases so that most of the bugs will get discovered by a Black-Box
method.
This testing occurs throughout the software development and Testing Life Cycle i.e
in Unit, Integration, System, Acceptance, and Regression Testing stages.
For Example, when we test a Dropdown list, we click on it and verify that it
expands and all the expected values are showing in the list.
Smoke Testing
Sanity Testing
Integration Testing
System Testing
Regression Testing
User Acceptance Testing
Usability Testing
Load Testing
Performance Testing
Compatibility Testing
Stress Testing
Scalability Testing
White box testing involves looking at the structure of the code. When you know the
internal structure of a product, tests can be conducted to ensure that the internal
operations performed according to the specification. And all internal components
have been adequately exercised.
Coverage
White Box Testing is coverage of the specification in the code:
1. Code coverage
3. Branch Coverage or Node Testing: Coverage of each code branch in from all
possible was.
4. Compound Condition Coverage: For multiple conditions test each condition with
multiple paths and combination of the different path to reach that condition.
5. Basis Path Testing: Each independent path in the code is taken for testing.
6. Data Flow Testing (DFT): In this approach you track the specific variables
through each possible calculation, thus defining the set of intermediate paths
through the code.DFT tends to reflect dependencies but it is mainly through
sequences of data manipulation. In short, each data variable is tracked and its use
is verified. This approach tends to uncover bugs like variables used but not
initialize, or declared but not used, and so on.
7. Path Testing: Path testing is where all possible paths through the code are
defined and covered. It's a time-consuming task.
That all independent paths within a module have been exercised at least once.
All logical decisions verified on their true and false values.
All loops executed at their boundaries and within their operational bounds internal
data structures validity.
To discover the following types of bugs:
Logical error tend to creep into our work when we design and implement functions,
conditions or controls that are out of the program
The design errors due to difference between logical flow of the program and the
actual implementation
Typographical errors and syntax checking
Does this testing requires detailed programming skills?
We need to write test cases that ensure the complete coverage of the program logic.
For this we need to know the program well i.e. We should know the specification and
the code to be tested. Knowledge of programming languages and logic is required for
this type of testing.
Limitations
Not possible for testing each and every path of the loops in the program. This
means exhaustive testing is impossible for large systems.
This does not mean that WBT is not effective. By selecting important logical paths
and data structure for testing is practically possible and effective.
Under Black box testing, we test the software from a user�s point of view, but in
White box, we see and test the actual code.
In Black box testing, we perform testing without seeing the internal system code,
but in WBT we do see and test the internal code.
White box testing technique is used by both the developers as well as testers. It
helps them to understand which line of code is actually executed and which is not.
This may indicate that there is either a missing logic or a typo, which eventually
can lead to some negative consequences.
Unit Testing
Integration Testing
System Testing
Sanity Testing
Smoke Testing
Interface Testing
Regression Testing
Beta/Acceptance Testing
Non-functional Testing types include:
Performance Testing
Load Testing
Stress Testing
Volume Testing
Security Testing
Compatibility Testing
Install Testing
Recovery Testing
Reliability Testing
Usability Testing
Compliance Testing
Localization Testing
#1) Alpha Testing
It is the most common type of testing used in the Software industry. The objective
of this testing is to identify all possible issues or defects before releasing it
into the market or to the user.
Alpha Testing is carried out at the end of the software development phase but
before the Beta Testing. Still, minor design changes may be made as a result of
such testing.
It is the last phase of the testing, after which the software goes into production.
This is also called User Acceptance Testing (UAT).
The objective of this testing is to find the defects and break the application by
executing any flow of the application or any random functionality.
Ad-hoc Testing is an informal way of finding defects and can be performed by anyone
in the project. It is difficult to identify defects without a test case but
sometimes it is possible that defects found during ad-hoc testing might not have
been identified using existing test cases.
Here, disability means deaf, color blind, mentally disabled, blind, old age and
other disabled groups. Various checks are performed such as font size for visually
disabled, color and contrast for color blindness, etc.
Beta Testing is carried out to ensure that there are no major failures in the
software or product and it satisfies the business requirements from an end-user
perspective. Beta Testing is successful when the customer accepts the software.
So end-user actually uses the software and shares the feedback to the company.
Company then takes necessary action before releasing the software to the worldwide.
#6) Back-end Testing
Whenever an input or data is entered on front-end application, it stores in the
database and the testing of such database is known as Database Testing or Backend
Testing.
There are different databases like SQL Server, MySQL, and Oracle, etc. Database
Testing involves testing of table structure, schema, stored procedure, data
structure and so on.
In Back-end Testing GUI is not involved, testers are directly connected to the
database with proper access and testers can easily verify data by running a few
queries on the database.
There can be issues identified like data loss, deadlock, data corruption etc during
this back-end testing and these issues are critical to fixing before the system
goes live into the production environment
Browser Compatibility Testing is performed for web applications and it ensures that
the software can run with the combination of different browser and operating
system. This type of testing also validates whether web application runs on all
versions of all browsers or not.
Backward Compatibility Testing checks whether the new version of the software works
properly with file format created by an older version of the software; it also
works well with data tables, data files, data structure created by the older
version of that software.
If any of the software is updated then it should work well on top of the previous
version of that software.
Detailed information about the advantages, disadvantages, and types of Black box
Testing can be seen here.
If testing requires a test range of numbers from 1 to 500 then Boundary Value
Testing is performed on values at 0, 1, 2, 499, 500 and 501.
The aim of this testing is to remove redundant test cases within a specific group
which generates the same output but not any defect.
Suppose, the application accepts values between -10 to +10 so using equivalence
partitioning the values picked up for testing are zero, one positive value, one
negative value. So the Equivalence Partitioning for this testing is -10 to -1, 0,
and 1 to 10.
Sometimes it may happen that during this testing major defect discovered can even
cause a system failure.
During Exploratory Testing, it is advisable to keep a track of what flow you have
tested and what activity you did before the start of the specific flow.
The GUI Testing includes the size of the buttons and input field present on the
screen, alignment of all text, tables, and content in the tables.
It also validates the menu of the application, after selecting different menu and
menu items, it validates that the page does not fluctuate and the alignment remains
same after hovering the mouse on the menu or sub-menu.
Modules are typically code modules, individual applications, client and server
applications on a network, etc. This type of testing is especially relevant to
client/server and distributed systems.
Load Testing helps to find the maximum capacity of the system under specific load
and any issues that cause software performance degradation. Load testing is
performed using tools like JMeter, LoadRunner, WebLoad, Silk performer, etc.
Monkey Testing is performed randomly and no test cases are scripted and it is not
necessary to be aware of the full functionality of the system.
The change in the program source code is very minimal so that it does not impact
the entire application, only the specific area having the impact and the related
test cases should able to identify those errors in the system.
It should not take much time to load any page or system and should sustain during
peak load.
Recovery Testing determines if the system is able to continue the operation after a
disaster. Assume that application is receiving data through the network cable and
suddenly that network cable has been unplugged.
Sometime later, plug the network cable; then the system should start receiving data
from where it lost the connection due to network cable unplugged.
The priority decision is based on the business need, so once priority is set for
all functionalities then high priority functionality or test cases are executed
first followed by medium and then low priority functionalities.
The low priority functionality may be tested or not tested based on the available
time.
It also checks how software behaves for any hackers attack and malicious programs
and how software is maintained for data security after such a hacker attack.
The testing team ensures that the build is stable and a detailed level of testing
is carried out further. Smoke Testing checks that no show stopper defect exists in
the build which will prevent the testing team to test the application in detail.
If testers find that the major critical functionality is broken down at the initial
stage itself then testing team can reject the build and inform accordingly to the
development team. Smoke Testing is carried out to a detailed level of any
Functional or Regression Testing.
Static Testing is also applicable for test cases, test plan, design document. It is
necessary to perform static testing by the testing team as the defects identified
during this type of testing are cost-effective from the project perspective.
The software or application undergoes a huge amount of data and Volume Testing
checks the system behavior and response time of the application when the system
came across such a high volume of data. This high volume of data may impact the
system�s performance and speed of the processing time.
It is also known as Glass box Testing. Internal software and code working should be
known for performing this type of testing. Under these tests are based on the
coverage of code statements, branches, paths, conditions, etc.
The best Example of a web application is �Gmail�. In Gmail, the interaction done by
an individual user is completely independent of the others. You can send and
receive information through emails and also through attachments.
You can maintain documents in a drive, maintain spreadsheets in Google docs and
includes much more such features which make a user realize that they have an
environment which is customized to their specific identity.
Answer: Web server follows the client/server model where the program uses HTTP
(Hypertext Transfer Protocol). In response to the request of an HTTP client, web
server handles client and server-side validation and delivers the web content in
the form of web pages to the users.
The browsers we use, such as Safari, Chrome, Internet Explorer, Firefox etc., read
the files stored on the web servers and bring the information to us in the form of
images and texts with the means of internet. Any computer which hosts websites must
have web servers.
Apache
Microsoft�s Internet Information Server (IIS)
Java web server
Google web server
Answer: There are many parameters that should be considered while deciding the
important test scenarios for testing any website. Also, the type of website to be
tested and its requirement specification plays an important role here.
Enlisted below are few important test scenarios that are applicable for testing any
type of website:
Test the GUI (Graphical User Interface) of the website for checking the consistency
of the design elements and page layout.
All page links and hyperlinks are checked for their redirection to the desired
page.
In case of presence of any forms or fields on the website, testing scenarios
consist of testing with valid data, invalid data, testing with existing records as
well as testing with empty records.
Functionality testing as per the requirement specification is done.
Performance of a website is tested under heavy loads to determine the web server
response time and database query time.
Compatibility testing is done to test the behavior of an application on a different
browser and OS (operating system) combinations.
Usability testing and Database testing is also performed as a part of test
scenarios.
Q #4) What are the different configurations which have to be considered while
testing a website?
Different combinations of browsers and operating system are used to test the
compatibility of the website. Usually, the latest and the last latest versions are
included. Well, these versions are usually specified in the requirement documents.
Internet Explorer
Firefox
Chrome
Safari
Opera
Few important Operating systems include:
Windows
UNIX
LINUX
MAC
Q #5) Is Web application testing different from Desktop Application testing?
Explain how.
Answer: Yes, there is a lot of difference between web application and desktop
application.
Web Application
Desktop Application
Definition Web applications are the one which can run on any client machine having
the internet connection without any installation of the execution file.
Desktop applications are one which are separately installed and executed on
the personal computer.
Performance User actions, feedback, statistics can be easily monitored as well as
data updating in one place is reflected everywhere in web application. User actions
cannot be monitored as well as changes in data can be only reflected at the
machine.
Connectivity
Web application can be accessed on any PC having internet connection using web
browser where performance of the application depends on internet speed.
Desktop application can be only accessed on specific PC where application is
installed.
Security Risks
Authentication Authorization
1 Authentication is the process with which the system identifies who the user
is? Authorization is the process with which system identifies what user is
authorized to do?
2 Authentication determines the identity of the user. Authorization decides
the privileges given to the user i.e. whether the user can access or manipulate
features of certain program.
3 There are different types of authentications, like password based, device
based, etc. There are two types of authorizations, like read only and read write
both.
4 For example: Within an organization, each and every employee can login into
an intranet application. For example: Only account manager or person in
accounts department can access account section.
Q #8) What are the types of Web testing security problems?
Answer: HTTP stands for Hypertext Transfer Protocol. HTTP is the data transfer
protocol which defines how messages are formatted and transferred over the World
Wide Web. HTTP also determines the response of the actions performed by web servers
and browsers.
For Example, when an URL is entered on the web browser, the HTTP command is sent to
the web server which in turn fetches the requested web browser.
Answer: HTTPS stands for Hypertext Transfer Protocol Secure. This is basically HTTP
over SSL (Secure Socket Layer) for security purposes. There is always chances of
eavesdrop on data being transferred between a user and the web server when the
website uses HTTP protocol.
Therefore, websites use secure way i.e. SSL encryption of data sent back and forth
using HTTPS protocol. Almost all the websites that require user log in uses HTTPS
protocol. Few Examples are banking websites, e-commerce websites, etc.
Answer: Some of the common problems faced in web testing are enlisted below:
Server Problem, which includes server down and server under maintenance problems.
Database connection problem.
Hardware and browser compatibility problems.
Security related problems.
Performance and load related problems.
GUI (graphical user interface) related problems.
Q #12) What is Cookie testing?
Cookies are used to track user sessions, displays ads, remember user�s choice while
accessing any website, remember and retrieve the user�s shopping cart, track the
unique number of visitors, etc.
Answer: Client-side validation is the one which is basically done at the browser
level where user�s input is validated at the browser itself with no involvement of
the server.
Suppose a user is entering an incorrect email format while filling a form. The
browser will then and there prompt an error message to correct it before moving on
to next field. Thus every field is corrected before submitting the form.
Answer: Server-side validation occurs where the validation and processing of user
requests require the response from the server. To understand it more clearly,
user�s input is being sent to the server and validation is done using server-side
scripting languages such as PHP, Asp.NET, etc.
After the validation process, feedback is sent back to the client in the form of
dynamically generated web page.
When compared to the Client Side validation process, Server side validation process
is more secure because here application is protected against malicious attacks and
users can easily bypass client-side scripting language.
Static Website
Dynamic website
Static websites are the one which gives out information only and there is no sort
of interaction between the user and the website. Dynamic websites are the one
where user interaction is possible between the website and user along with
imparting information.
Static websites are cheapest to develop and host. Dynamic websites are more
expensive to develop as well as their hosting cost is also more.
Static websites are easily loaded on client browser because of its fixed content
and no database connectivity. Dynamic websites usually take the time to load on
client browser because contents to display are dynamically created and retrieved
using database queries.
Static websites can be created from HTML, CSS and does not require any server
application language. Dynamic websites require server application language like
ASP.NET, JSP, PHP to run the application on the server and display the output on
the webpage.
Change in the content of the page of any static website; require being uploaded on
server many times. Dynamic website provides facilities to change the page
content using server application.
Q #16) What do you understand by Client-Server testing?
Answer: Client-server application is the one where the application itself is loaded
or installed on a server whereas the application EXE file is loaded on all client
machines. This environment is usually used in Intranet networks.
Q #17) Enlist HTTP response codes that are returned by the server.
Answer: In web testing, Usability testing plays an important role. It is well known
that usability testing is the means to determine the ease with which an end user
can easily access the application with or without having any programming language
knowledge.
eggplant functional
Selenium
SOA test
JMeter
iMacros, etc.
Q #23) Give some examples of web applications that are used in our day to day life.
Answer: Proxy server is a server which acts as an intermediary or is the one that
lies between the client and the main server.
The communication between the main server and client-server is done through a proxy
server as the client request of any connection, file, resources from the main
server is sent through a proxy server and again the response from the main server
or local cached memory to client-server is done through the proxy server.
Some of the most common proxy servers based on their purpose and functionality are
listed below:
Transparent proxy
Web proxy
Anonymous proxy
Distorting proxy
High anonymity proxy
The proxy server is basically used for the following purposes:
Answer: A Database server can be defined as a server that refers to the back-end
system of a database application that provides database services such as accessing
and retrieving data from the database.
Database server uses client/server architecture where the data can be accessed
either through the database server by a �front end� which runs and displays data on
user�s machine or �back-end� which runs on the database server itself.
A database server is like a data warehouse and also holds on Database Management
System (DBMS).
*********************
Q. What is Process?
Ans. A process is a set of practices performed to achieve a given purpose; it may
include tools, methods, materials or people.
Q. What is a Defect?
Ans. Any flaw or imperfection in a software work product is termed as a Defect.
(or)
When the expected result does not match with the application actual result, it is
termed so.
Q. What is Severity?
Ans. It defines the importance of the defect from the functional point of view i.e.
how critical is a defect with respect to the application.
Q. What is Priority?
Ans. It indicates the importance or urgency of fixing a defect
Q. What is Re-Testing?
Ans. Re-testing the application means verifying whether the defects have been fixed
or not.
QC?
QC is product oriented and it is a Set of activities used to evaluate a developed
work product
Testing?
Executing and verifying an application with the intention of finding defects.
Answer: The process of using special software tools or scripts to perform testing
tasks such as entering data, executing the test steps and comparing the results
etc. is known as Automation testing.
Answer:
For Example: After each change request or bug fix, after each iteration in case of
incremental development approach etc.
For Example: Load testing or performance testing etc, are very difficult for humans
to track and analyze.
c) Complex calculation checks or tests scenarios that are prone to human errors.
d) Repeated execution of same tests: Sometimes we have to run the same set of test
case for a different set of data or after each build release or on multiple
hardware, software or combination of both.
Automating the test cases in the above scenarios helps in achieving the speed of
testing and minimizing human errors.
Q #5) How do you identify the test cases which are suitable for automation?
Answer: Identifying the appropriate test cases for automation is the most important
step towards automation.
Answer: 100% automation would be difficult to achieve because there would be many
edge test cases and some cases which are executed seldom. Automating these cases
which are not executed that often will not add value to the automated suite.
Q #7) How to decide the tool that one should use for Automation testing in their
projects?
Answer: In order to identify the tool for Automation testing in your project:
b) Search for the list of tools that support your project's requirements.
c) Identify your budget for the automation tool. Select the tools within your
budget.
d) Identify if you already have skilled resources for the tools. If you don't have
the necessary skilled resources then identify the cost for training the existing
resources or hiring new resources.
How easy is it to develop and maintain the scripts for the tool.
Can a non-technical person also execute the test cases with little training?
Does the tool support different types of platforms like web, mobile, desktop etc
based on your project requirements?
Does the tool have a test reporting functionality? If not, is it easily
configurable for the tool?
How is the tool for cross-browser support for web-based applications?
How many different testing types can this tool support?
How many languages does the tool support?
f) Once you have compared the tools, select the tool which is within your budget
and supports your project requirements, and gives you more advantages based on the
key criteria mentioned above.
Q #8) Currently I do not have any automation in place in my project, but now I want
to implement automation, what would be my steps?
Answer:
Understand the advantages and disadvantages of automation testing and identify the
test scenarios which are suitable for automation.
Select the automation tool that is best suited for automating the identified
scenarios
Find the tool expert to help in setting up the tool and required environment for
executing the test cases using the tool.
Train the team so that they can write scripts in the programming language that the
tool supports.
Create the test framework or identify the already existing one that meets your
requirements.
Write an execution plan for OS, browsers, mobile devices etc.
Write programming scripts for manual test cases to convert them into automated test
cases.
Report the test case status by using the reporting feature of the tool.
Maintain the scripts for ongoing changes or new features.
Q #9) How do you decide which tool you have to use?
Answer: Concluding which tool is best suitable for the project requires a lot of
brainstorming and discussions.
Q #10) Once you identify the tool what would be your next steps?
Answer: Once we finalize the tool, our next step would be to design the framework.
Coding standards
Handling the test data
Maintaining and handling the elements (object repository in QTP)
Handling of environment files and properties file
Reporting of data
Handling logs
Q #12) What are the attributes of a good framework?
Answer: Frameworks are guidelines and not mandatory rules, so we can do without a
framework, but if we create it and follow it, enhancing and maintaining would be
easy to implement.
Q #14) What are the different types of an automation tool that you are aware of?
Paid tools like QTP, Load Runner, Ranorex, RFT, and Rational Robot.
Answer: Normally the structure should have � (It would differ from project to
project)
Q #17) Why do you want to keep this kind of information in a separate file and not
directly in the code?
Answer: URL, Login, and passwords are the kind of fields which are used very often
and these change as per the environment and authorization. In case we hardcode it
into our code, we have to change it in every file which has its reference.
In case if there are more than 100 files, then it becomes very difficult to change
all the 100 files and this, in turn, can lead to errors. So this kind of
information is maintained in a separate file so that updating becomes easy.
Keyword-driven framework
Data-Driven framework
Hybrid Framework
Linear Scripting
Q #19) Can you tell some good coding practices while automation?
Answer:
Answer: Today as we are moving to the Agile mode, testing is not limited to the UI
layer. Early feedback is imperial for an agile project. If we concentrate only on
the UI layer, we are actually waiting until the UI is developed and available to
test.
Rather we can test even before the UI is actually developed. We can directly test
the APIs or the methods using tools like Cucumber and FitNesse.
In this way, we are giving the feedback much early and are testing even before the
UI is developed. Following this approach will help us to test only the GUI aspect
of small cosmetic changes or some validations on the UI and will help the
developers by giving more time to fix the bugs.
Q #22) How do you select which automation tool is best suited for you?
Answer: Selecting the automation tool depends upon various factors like:
Answer: The major hurdle for testers is to learn programming/coding when they want
to automate. Since testers do not code, adapting to coding is a bit challenging for
testers.
Test Assertion Tool: This tool will provide assert statements for testing the
expected values in the application under test. E.g. TestNG, Junit etc.
Data Setup: Each test case needs to take the user data either from the database or
from a file or embedded in the test script. Frameworks data module should take care
of the data intake for test scripts and the global variables.
Build Management Tool: Framework needs to be built and deployed for the use of
creating test scripts.
Continuous integration tool: With CICD (continuous integration and continuous
development) in place, continuous integration tool is required for integrating and
deploying the changes done in the framework at each iteration.
Reporting tool: A reporting tool is required to generate a readable report after
the test cases are executed for a better view of the steps, results, and failures.
Logging tool: The logging tool in framework helps in better debugging of the error
and bugs.
Q #26) Explain some Automation testing tools.
Answer: Some of the famous Automation testing tools are explained below:
(i) Selenium: Selenium is a test framework for web application automation testing.
It supports multiple browsers and is OS independent. Selenium also supports various
programming languages like java, c#, PHP, Ruby, and Perl etc.
Selenium is an open source set of libraries which can be used to develop additional
test frameworks or test scripts for testing web-based applications.
(ii) UFT: Unified functional testing is a licensed tool for functional testing. It
provides a wide range of features like APIs, web services etc and also supports
multiple platforms like desktops, web, and mobile. UFT scripts are written in
visual basic scripting language.
(iii) Appium: Appium is an open source mobile application testing tool. It is used
to automate testing on cross-platform, native, hybrid and web-based mobile
applications. Appium automates any mobile application from any language with full
access to APIs and DBs from the test code.
For cucumber to understand the scenarios in plain text, we have to follow some
basic syntax rules which are known as Gherkin.
They are:
It creates an abstraction layer between the modules, thus any modifications in test
scripts for one module do not affect any other modules.
Test cases have data embedded in them. Thus executing the same test script with
different data is a big change at the script level.
#2) Data Driven Testing framework:
In Data-driven testing framework, the input data and the expected output data
corresponding to the input data is stored in a file or database and automated
script runs the same set of test steps for multiple sets of data. With this
framework, we can run multiple test cases where only the input data differs and the
steps of execution are the same.
Advantages:
Reduces the number of test scripts that are required to be executed. We execute the
same script multiple times with different data.
Less coding for automation testing.
Greater flexibility for maintaining and fixing the bugs or enhancing the
functionality.
Test data can be created even before the automated system for testing is ready.
Disadvantages:
Only similar test cases with the same set of execution steps can be combined for
multiple sets of data. The different set of execution steps require a different
test case.
#3) Keyword-Driven Testing framework:
It is an application independent testing framework which uses data tables and self-
explanatory keywords. Keywords explain the actions to be performed on the
application under test and data table provides the input and expected output data.
Advantages:
Less coding and the same script can be used for multiple sets of data.
Automation expertise is not required for creating a test case using the already
existing keywords for actions.
Same keywords can be used across multiple test cases.
Disadvantages:
This framework is more complicated as it needs to take care of the keyword actions
and also the data input.
Test cases get longer and complex thereby affecting the maintainability of the
same.
#4) Hybrid Testing framework:
In this framework, the test cases are developed from modular scripts by combining
them in the modular testing framework. Each of the test cases uses a driver script
which uses a data file as in data-driven framework and a keyword based action file.
Advantages:
The project is short-term and writing scripts will be time-consuming and costly
when compared to manual testing.
Flexibility is required. Automated test cases are programmed and run in a specific
way of configurations.
Usability testing needs to be performed.
Application/module are newly developed and have no previous test cases.
Ad-hoc or exploratory testing needs to be performed.
Q #29) Is Automation testing in agile Methodology useful or not?
Answer: Automation testing is useful for regression, smoke or sanity testing. All
these types of testing in traditional waterfall model happen at the end of the
cycle and sometimes if there are not many enhancements to the application, we might
not even have to do regression testing.
Also, the regression suite itself keeps growing after each sprint as the functional
test cases of the current sprint module need to be added to the regression suite
for the next sprint.
Thus, Automation testing in agile methodology is very useful and helps in achieving
maximum test coverage in a lesser time of the sprint.
Answer:
Advantages:
Fewer Human resources
Reusability
More Test Coverage in less time
Reliability
Parallel execution of test cases
Fast
Disadvantages:
Answer:
Advantages:
Answer: Yes, We can perform automation testing even without using a framework. We
can just understand the tool that we are using for automation and program the steps
in the programming language that tools support.
If we automate test cases without a framework then there won't be any consistency
in the programming scripts for test cases.
Q #33) How will you automate basic �login� functionality test cases for an
application?
Answer: Assuming that the automation tool and framework is already in place of the
test environment.
Answer: Automation testing is mostly a black box testing as we just program the
steps that a manual tester performs for application under test without knowing the
low-level design or code of the application.
Sometimes, automated test scripts need access to the database details that are used
in the application under test or some more coding details and thus can be a type of
white-box testing.
Thus automated testing can be both black or white box type of testing depending on
the scenarios in which automation is performed.
Q #35) How many test cases have you automated per day?
Answer: Well, the number depends on the complexity of the test cases. When the
complexity was limited, I was able to automate 5 to 6 test cases per day.
Sometimes, I was able to automate only one test case for complex scenarios.
I have also broken down my test cases into different components like, take input,
do the calculation, verify the output etc. in case of very complex scenarios and
have taken 2 or more days.
Answer: Some of the factors that determine the effectiveness of automation testing
are:
Time saved by running scripts over the manual execution of test cases.
Defects found
Test Coverage or code coverage
Maintenance time or development time
Stability of the scripts
Test Reusability
Quality of the software under test
Q #37) Which test cases can be automated?
(i) Smoke test cases: Smoke testing is also known as build verification testing.
Smoke test cases are run every time when a new build is released to check the
health of the build for acceptance to perform testing.
(ii) Regression Test Cases: Regression testing is the testing to ensure that
previously developed modules are functioning as expected after a new module is
added or a bug is fixed.
Regression test cases are very crucial in incremental software approach where a new
functionality is added at each increment phase. In this case, regression testing is
performed at each incremental phase.
(iii) Complex Calculation test cases: Test cases which involve some complex
calculations to verify a field for an application fall into this category. Complex
calculation results are more prone to human errors hence when automated they give
accurate results.
(iv) Data-driven test cases: Test cases which have the same set of steps and run
multiple times with the change of data are known as data-driven test cases.
Automated testing for these kinds of test cases is quick and cost-effective.
(v) Non-functional test cases: Test cases like load tests and performance tests
require a simulated environment with multiple users and multiple hardware or
software combinations.
This program when run, gives the test results as pass or fail to depend on if the
application is as per the expectations.