Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

How can Selenium WebDriver be used to detect broken links?

Answer»

You might be asked this tricky question by the interviewer. As an example, he could give you a web page with 20 links, and you would have to determine which of those 20 links are working and which aren't or are broken.

Considering that you must verify the functionality of each link, the workaround is to send HTTP requests to each link and analyze the response. When you navigate to a URL using the driver.get() method, you will receive a 200 - OK status response. It is evident that the link has been obtained and is working. In the case of any other status, the link is broken.

Let’s now understand how to do that.

As a first step, we must determine the different hyperlinks on the webpage using anchor tags. We can obtain hyperlinks for each tag using the attribute 'href' value and analyze the response received using the driver.get() method.


2.

When there is neither a frame ID nor a frame name, what technique should be considered in the script?

Answer»

When frame name and frame id are unavailable, we can use frame index instead. Suppose there are four frames on a page that don't have frame names or frame identifiers (frame ID), but we can still select them with the frame (zero-based) index attribute. For instance, the first frame would be indexed 0, the second frame would be at index 1, the third frame would be at index 2, and the fourth frame would be at index 3.

driver.switchTo().frame(int arg0);


3.

What is meant by the workbench concept?

Answer»

A workbench is a document that explains how an activity should be completed. Often, it is referred to as a step, phase, or task. Workbenches serve as platforms for building and monitoring testers' work structures. Using this method, it is possible to divide tasks into each phase and to reach the customer's expectations using the initial data.

Every workbench has five tasks, which are as follows:


  • Input.

  • Execute.

  • Check.

  • Production output.

  • Rework.


4.

A defect that could have been removed during the initial stage is later removed. What effect does this have on the cost?

Answer»

If a defect is discovered during the project's initial phase, it is important that the defect is removed during that phase rather than afterwards. The cost of fixing a defect increases greatly if it is delayed until a later stage in the development cycle. Following is a diagram showing how the cost of a fixing defect increases throughout the phases.

It is more cost-effective to eliminate defects during the design phase, but it becomes twenty times more expensive to do so during maintenance.


5.

What is defect cascading in Software testing?

Answer»

In software testing, defect cascading is the scenario in which one defect leads to the occurrence of several other defects in a program. If a defect goes unnoticed during testing or if it doesn't get reported, it has the potential to trigger other problems. The result is that multiple defects arise during the later stages of the production process.


6.

What do you mean by confirmation testing in software testing?

Answer»

A confirmation test involves retesting a software product to see if the previously reported bugs have been fixed. A bug is usually reported by testers when a test fails. A new version of the software is released after the development team fixes the defect. Now that the new software build has been released, the testing team will retest it in order to ensure that the reported bug was actually fixed. It is also referred to as retesting.


7.

State difference between verification and validation in software testing.

Answer»

Validation: It is defined as a process that involves dynamic testing of software products by running it. This process validates whether we are building the right software that meets that customer requirement or not. It involves various activities like system testing, integration testing, user acceptance testing, and unit testing.

Verification: It is defined as a process that involves analyzing the documents. This process verifies whether the software conforms to specifications or not.  Its ultimate goal is to ensure the quality of software products, design, architecture, etc.  

Verification Vs Validation:

Verification Validation 
It checks whether the software meets the specification or not.It checks whether the specification captures the customer’s needs or not.  
It is a type of static testing. It is a type of dynamic testing. 
There is no requirement of executing the code.There is a requirement for executing the code.
This process is performed by the QA team to make sure that the software is built as per the specifications in the SRS document.This process is performed with the involvement of the testing team. 
Reviews, walkthroughs, inspections, and desk-checking are some methods that can be used in verification. Black box testing, white box testing, and non-functional testing are some methods that can be used during validation.
It identifies the bugs or errors early in the development process.It can identify the bugs or errors that the verification process cannot catch.
It is performed before the validation process.It is performed after the verification process.

8.

What is the V model in software testing?

Answer»

V-models, also known as validation or verification models, are SDLC models where the process occurs sequentially in a V-shape. This method consists of associating a testing phase with each corresponding development stage. As each development activity is accompanied by a testing activity, the next test phase occurs only after the previous phase has been completed.



  • Validation: It is defined as a process that involves dynamic testing of software products by executing the code. This process validates whether we are building the right software that meets that customer's requirement or not. It involves various activities like system testing, integration testing, user acceptance testing, and unit testing.


  • Verification: The technique involves static analysis (review) without running the code. It is defined as a process that involves analyzing the documents. This process verifies whether the software conforms to specifications or not.  Its ultimate goal is to ensure the quality of software products, design, architecture, etc.  


9.

What is the most effective way to map automation testing success?

Answer»

The success of Automation testing can be measured using the following criteria:


  • Savings on labor & other costs.

  • Defect Detection Ratio.

  • Automating the execution process and reducing the release time.


10.

What are the various components of Selenium?

Answer»

Selenium consists of the following components:


  • Selenium Remote Control (RC).

  • Selenium Integrated Development Environment (IDE).

  • Selenium WebDriver.

  • Selenium Grid.


11.

What is SDLC in software testing?

Answer»

In short, SDLC (Software Development Life Cycle) enables the development of high-quality, low-cost software with the shortest possible development time. A major objective of the SDLC is to produce high-quality software that meets and exceeds the expectations of customers. SDLC provides a detailed plan with a series of stages, or phases, that encompass their own processes and deliverables. By adhering to the SDLC, developers can enhance the speed of their projects and minimize risks and costs.


12.

Explain boundary value analysis in software testing.

Answer»

BVA (Boundary Value Analysis) is a black box software testing technique that uses boundary values to create test cases. Input values near the boundary have a higher probability of error, so BVA is used to test boundary values. BVA includes values at the boundaries in the test cases. If the input falls within the boundary range, then the test is positive; if it falls outside, then it is negative. There are several types of values, including maximum or minimum, inside or outside edge, and typical or error values.