Interview Questions, Answers and Tutorials

Blog

Black Box, White Box, and Gray Box Testing

Black Box TestingBlack box testing refers to the technique of testing a system with no knowledge of the internals of the system. Black Box testers do not have access to the source code and are oblivious to the system architecture. A Black Box tester typically interacts with a system through a user interface by providing inputs and examining outputs without knowing where and how the inputs were operated upon. In Black Box testing, the target software is exercised over a range of inputs and the outputs are observed for correctness. Advantagesa. Efficient Testing — Well suited and efficient for large code segments…

WHAT TESTING IS AND WHAT TESTING DOES

So far we’ve worked with a natural thought of what testing is. we’ve perceived that it’s a movement wont to diminish chance and improve quality by discovering surrenders, which is all evident. In any case, we’d like to grasp somewhat more about how programming testing functions by and by before we will consider the way to execute powerful testing. Testing and debuggingTesting and debugging are different sorts of activities, both of which are vital. Debugging is that the process that developers undergo to spot the explanation for bugs or defects in code and undertake corrections. Ideally, some check of the correction is formed, but this might not reach checking that other areas of the system…

Interview Question of fundamentals of testing

Interview Question of fundamentals of testing, Q1. Which of the following is correct?, Which of the following are aids to good communication, and which hinder it?, Which option is part of the ‘implementation and execution’ area of the fundamental test process?, The five parts of the fundamental test process have a broad chronological order. Which of the options gives three different parts in the correct order?, Which pair of definitions is correct?, Which statement is most true?, When is testing complete?, Which list of levels of tester independence is in the correct order, starting with the most independent first?, The…

Why is software testing needed?

This information is useful whether you are a software engineer who needs to test your own software, a full-time tester who works generally from prerequisites at the client level, a director accountable for testing or advancement, or any position in the middle. As the software business moves in the twenty-first year of the twenty-first century, software quality is progressively turning out to be vital for all organizations, and information on software testing is turning out to be fundamental for all software engineers.     Today, software defines behaviors that depend on our civilization, for example, online cab, bus, train tickets & flight…

19.2 WebDriver browser methods

19.2.1| getPageSourceReturns the page source of the last loaded page. The page source returned is a representation of the underlying DOM. It may not be formatted or escaped in the same way as the response sent from the server.                                                                                                                             …

19.1 WebDriver browser methods

WebDriver provides a variety of methods to simulate user actions on a browser. Some of those methods are described below  19.1.1| get Loads a new page in the current browser window. This is achieved using HTTP GET operation. This method blocks the WebDriver test execution until the page load is complete.                                                                                                  …

18 Working with Browsers

A web browser is a software application that allows users to retrieve, present and traverse information resources on the World Wide Web (www). An information resource is identified by a Uniform Resource Identifier (URI). The information may be a web page, image, audio, video, or any other content. There are various browsers available in the market as of now. These include internet explorer, chrome, firefox, safari, opera, etc. This chapter describes how to use the WebDriver method to simulate user actions on a firefox browser.   18.1.1| Introduction Open Firefox Browser: WebDriver provided FirefoxDriver() class to open a new Firefox…

17.2 User Interface Map

17.2.1| Creating a UIMap class to read locators from UIMap.properties fileNow we will build a UIMap class to access locator information from a properties file.   UIMap.properties example part-1   UIMap.properties example part-2   UIMap.properties example part-3 17.2.2| Creating a sample TestNow let us create a sample test that would use the UIMap properties file and UIMap class file to locate elements.The following example opens amazon.in the login page and then uses the UIMap file to locate login page elements. Sample Test  

17.1 User Interface Map

Selenium WebDriver API uses locator information to find elements on the page. Defining the locator information in the classes may result in duplication of element location information in various classes. Because of such duplication, it becomes increasingly difficult to maintain tests as the size of the test suite increases. Any change in element locator information requires updating of the element locator information in all the classes wherever it has been defined. Identifying classes which require an update and then updating them is a very time consuming and difficult task. In short, change identification and change implementation become a nightmare.  …

16.2 Annotation

16.2 | Custom Annotations Java provides the flexibility to define custom annotations as per need. An annotation is defined with the at-sign (@) preceding the interface keyword. The following steps show how to create and use custom annotations. Open Eclipse Select the package where annotation needs to be created. Right-click and select New → Annotation as shown in figure   Creating a new annotation file Specify annotation name say RegressionTest. The following code shows the annotation code with no annotations and parameters.   RegressionTest Above annotation can be directly used in code as:   Use of Annotation Annotate the annotation as required.…