Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Testing Tools Articles
Found 517 articles
Getting console.log output from Chrome with Selenium Python API bindings.
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 MoreGUI Testing Tutorial: User Interface (UI) Test Cases with Examples
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 MoreWhat is Operational Acceptance Testing (OAT)? Example Test Cases
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 MoreWhat is Negative Testing(Test cases with Example)?
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 MoreWhat is Regression Testing? (Definition, Test Cases, Examples)
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 MoreDifference between Load Testing and Stress Testing
Performance testing of a system should be done at regular intervals. This testing helps in knowing about bottlenecks and other issues in a system. The two most common types of testing are load testing and stress testing. In this article, we will discuss the difference between Load Testing and Stress Testing. What is Performance Testing? Performance testing is performed to know about the speed, reliability, scalability, and other attributes of a software system. The two most common types of testing are load testing and stress testing. Performance testing lets the professionals know about bottlenecks and performance issues in a test ...
Read MoreHTTP basic authentication URL with “@” in password
We can do HTTP basic authentication URL with @ in password. We have to pass the credentials appended with the URL. The username and password must be added with the format − https://username:password@URL.Let us make an attempt to handle the below browser authentication.Once the User Name and Password are entered correctly and the OK button is clicked, we should be navigated to the actual page with the text Congratulations! You must have the proper credentials.Syntaxhttps://username:password@URL https://admin:admin@the-internet.herokuapp.com/basic_auth Here, the username and password value is admin. URL is www.the-internet.herokuapp.com/basic_auth Example import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class BrwAuthnPopup{ ...
Read MoreHandling Browser Authentication using Selenium
We can handle browser authentication with Selenium webdriver. We have to pass the credentials appended with the URL. The username and password must be added with the format: https://username:password@URL. Let us make an attempt to handle the below browser authentication.Once the User Name and Password are entered correctly and the OK button is clicked, we are navigated to the actual page with the text Congratulations! You must have the proper credentials.Syntaxhttps://username:password@URL https://admin:admin@the−internet.herokuapp.com/basic_authHere, the username and password value is admin.URL is www.the−internet.herokuapp.com/basic_authExampleimport org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; public class BrwAuthnPopup{ public static void main(String[] args) { ...
Read MoreHow to find an element using the attribute “class name” in Selenium?
We can find an element using the attribute class name with Selenium webdriver using the locators - class name, css, or xpath. To identify the element with css, the expression should be tagname[class='value'] and the method to be used is By.cssSelector. To identify the element with xpath, the expression should be //tagname[@class='value']. Then, we have to use the method By.xpath to locate it. To locate an element with a locator class name, we have to use the By.className method. Let us look at the html code of an element with class attribute − Syntax WebElement e = driver. findElement(By.className("input")); ...
Read MoreScroll Element into View with Selenium.
We may need to perform action on an element which is not present in the viewable area of the page. We need to scroll down to the page in order to reach that element.Selenium cannot perform scrolling action directly. This can be achieved with the help of Javascript Executor and Actions class in Selenium. DOM can work on all elements on the web page with the help of Javascript.Selenium can execute commands in Javascript with the help of the execute_script() method. For the Javascript solution, we have to pass true value to the method scrollIntoView() to identify the object below ...
Read More