Thursday, January 31, 2019

SonarQube 01: Introduction to SonarQube and Installation

Static Code Analysis:

Static code analysis is a method of analyzing or examining the computer programming code against code and compliance standards without executing the code. The purpose of Static code analysis is to improve the code quality by finding the weaknesses, duplication, bugs and vulnerabilities.

Sunday, January 27, 2019

Java Program 3: Find first duplicate character in the given string

Let us understand the question first, we have to find the character in the given string which is repeated twice and first. Let us understand with examples:

Java Program 2: Verify the given mobile number contains 10 digits and starts with 7, 8 or 9 only

There will be many approaches to solve this problem, we will use regular expressions to solve this in this post.

First we will regular expression that satisfies given conditions, then we will match with the given inputs.

Java Program 1: How to read characters of a String?

String is a character sequence enclosed in double quotes. We can't access its characters one by one like we access the values of an array (a[0], a[1] and etc.) directly.

But we can do it in java in different ways, we will see two approaches in this post.

Saturday, January 26, 2019

Post 2: Attaching Screenshot to failed tests in ExtentReports Version 4

In Post 1 we have learned generating the extent reports using ExtentReportsV4, in this postwe will learn about adding the screenshot to failed test cases. This will be continuation to Post 1, please go through it first then continue this.

Monday, January 21, 2019

Post 1: Generate Results Report In Selenium with ExtentReports Version 4

ExtentReports V4 has been released and it is more beautiful and interactive. In this post we will discuss about generating the reports using Extentreports V4 in Selenium with TestNG.

Friday, January 18, 2019

Why we need to down cast WebDriver reference for JavaScriptExecutor and TakesScreenshot in Selenium?

Let us understand this with below java program example.

I have class A and interface B as shown below, class A is having a method call sayBye(), interface B is having a declared method sayHello().

Now let class A implement interface B, and implement the sayHello() method of interface B in class A as shown below.

How do you identify broken links in Selenium Automation?

When we are asked to identify the broken links in the application, what we do? Collecting all the links on the page to a list and looping t...