Testing Tools Articles

Page 2 of 52

Getting the return value of Javascript code in Selenium.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 4K+ Views

We can get the return value of Javascript code with Selenium WebDriver using the executeScript method. This method executes JavaScript commands in the browser and can return values back to our Java code. To work with JavaScript in Selenium, we need to cast our WebDriver instance to JavascriptExecutor and import the necessary package. The JavaScript command is passed as a string argument to the executeScript method. Syntax JavascriptExecutor js = (JavascriptExecutor) driver; Object result = js.executeScript("return document.getElementById('elementId').value"); Key Points When working with JavaScript return values in Selenium: Use the return keyword ...

Read More

Reading JavaScript variables using Selenium WebDriver.

Debomita Bhattacharjee
Debomita Bhattacharjee
Updated on 15-Mar-2026 3K+ Views

We can read JavaScript variables with Selenium WebDriver using the executeScript method. This method allows Selenium to execute JavaScript commands directly in the browser and return their results. To work with JavaScript in Selenium, we need to import org.openqa.selenium.JavascriptExecutor. Syntax JavascriptExecutor j = (JavascriptExecutor) driver; String result = (String) j.executeScript("return document.title"); Reading Document Properties The most common use case is reading document properties like title, URL, or DOM elements. Let's obtain the browser title by reading the JavaScript variable document.title. Example Here's a complete example that reads the page title ...

Read More

Differences between Interface and Integration Testing.

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 2K+ Views

Testing is crucial in software delivery, as it validates quality and helps developers improve their product. Two important testing types are Integration Testing and Interface Testing. Integration testing verifies that multiple components work together correctly, while interface testing focuses on the communication channels (APIs, web services) between those components. Integration Testing Integration testing is performed after unit testing to verify that individual components work correctly when combined in an integrated environment. It tests the end-to-end functionality of all components working together. Integration testing can be done in several approaches − Big Bang (all at once), Top-Down, Bottom-Up, or ...

Read More

Difference between Frontend Testing and Backend Testing

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 802 Views

A web-based application is generally based on a three-tier architecture. The first layer is the presentation layer (front-end), the second is the business/application layer, and the third is the database layer (back-end). Testing can focus on either the front-end or back-end, each requiring different skills and approaches. Three-Tier Web Application Architecture Presentation UI / Front-end Frontend Testing → Business Logic Application Layer ...

Read More

Difference between Use Case and Test Case

Mahesh Parahar
Mahesh Parahar
Updated on 14-Mar-2026 4K+ Views

Use Cases and Test Cases are two important terms in software testing. A use case describes how a system should behave to perform a certain task under given conditions. A test case contains the actual test data, step-by-step instructions, and the expected result to verify that the system works correctly. Use Case A use case is a representation of actions that describes the behavior of a system when performing a particular task. It is written from the end user's perspective and focuses on what the system should do, not how it does it internally. Use cases are prepared ...

Read More

Getting console.log output from Chrome with Selenium Python API bindings.

Akshitha Mote
Akshitha Mote
Updated on 22-Jan-2025 6K+ Views

We can get console.log output from Chrome with Selenium Python API bindings. We will perform this with the DesiredCapabilities class. We shall enable logging from the browser with DesiredCapabilities.Chrome setting. We have to pass this browser capability to the driver object by passing it as a parameter to the Chrome class. To enable logging we shall set the property goog:loggingPrefs of the browser to 'browser':'ALL'. Syntax Syntax:dc = DesiredCapabilities.CHROME dc['goog:loggingPrefs'] = { 'browser':'ALL' } driver = webdriver.Chrome(desired_capabilities=dc) Example from selenium import webdriver from selenium.webdriver.common.desired_capabilities import DesiredCapabilities #set browser log dc = DesiredCapabilities.CHROME dc['goog:loggingPrefs'] = { 'browser':'ALL' } driver ...

Read More

GUI Testing Tutorial: User Interface (UI) Test Cases with Examples

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 8K+ Views

What is a GUI? For a computer application, there are two sorts of interfaces. The Command Line Interface (CLI) is a program that allows you to write text and have the computer reply to it. The Graphical User Interface (GUI) is a method of interacting with a computer that uses graphics rather than words. The following are some of the graphical user interface components that may be used to interact with the application − Radio Button ...

Read More

What is Operational Acceptance Testing (OAT)? Example Test Cases

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 3K+ Views

Operational Acceptance Testing (OAT) or Operational Testing is non-functional testing conducted before releasing an application to the production stage. It comes after the user acceptance testing and before releasing the app in the market. The primary purpose of this testing is to check the operational readiness of application software.The whole process comprises of a series of tasks such as −Installation testingRobustness of the appData integrityCode analysisSecurity testingNetwork installationRecovery testingProcedure verifications like security, support, alerts, and stressThe Importance of Operational TestingRegardless of how much time and money you spend in testing software, it doesn't ensure 100 reliability, robustness, and error-free. Testing ...

Read More

What is Negative Testing(Test cases with Example)?

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 2K+ Views

Negative TestingNegative testing is a kind of software testing that examines the software program for unforeseen input data and situations. Unusual data or situations might range from incorrect data types to a powerful cybersecurity breach. The goal of negative testing is to keep software applications from malfunctioning as a result of negative inputs and to enhance quality and stability.We can only ensure that our technology works in regular situations by doing positive testing. To create an error-free system, we must guarantee that our system can manage unforeseen situations.You will learn the following in this tutorial −What is Negative Testing?Example of ...

Read More

What is Regression Testing? (Definition, Test Cases, Examples)

Vineet Nanda
Vineet Nanda
Updated on 30-Oct-2024 4K+ Views

What is Regression Testing and How Does it Work? Regression testing is a sort of testing that is used to ensure that a software update does not affect the product's current functioning. This is to guarantee that any new functionality, bug patches, or modifications to current features don't break the product. In order to validate the effect of the modification, previously performed test cases are re-executed. Regression Testing is a sort of Software Testing in which test cases are re-run to see whether the application's prior functionality is still functioning and if the new changes have caused any new defects. ...

Read More
Showing 11–20 of 517 articles
« Prev 1 2 3 4 5 52 Next »
Advertisements