Hello Folks, Most of us know that, we can pass parameter as a String to methods in TestNG class. Is it really like that? No. Its not. We can pass parameters in whatever data types we required. TestNG will convert them automatically to required data type. We will see an example below: Output: Note: 1. … Continue reading TestNG Tutorials 48: How to Pass Parameters of Different Datatypes in TestNG
Handling “This type of file can harm your computer.” Windows Dialog Box In Chrome Browser
Hello Folks, You might see below dialog box when you download any file in Chrome browser and it finds that it is harmful for your computer: This is a window/browser popup which can not be inspected. You can suppress this warning message using ChromeOptions. You need to set "safebrowsing.enabled" as true. Java Code: Note: Above … Continue reading Handling “This type of file can harm your computer.” Windows Dialog Box In Chrome Browser
How To Change Default Download Directory For Firefox Browser in Selenium WebDriver
Hello Folks, Every browse has its default download directory. Whenever you download a file, it gets downloaded in default download directory. Generally default download directory is as below: C:\Users\<UserName>\Downloads You can always change it through browser setting. When selenium script downloads any file, it will also be downloaded in same default download directory. Note: If … Continue reading How To Change Default Download Directory For Firefox Browser in Selenium WebDriver
How To Change Default Download Directory For Chrome Browser in Selenium WebDriver
Hello Folks, Every browse has its default download directory. Whenever you download a file, it gets downloaded in default download directory. Generally default download directory is as below: C:\Users\<UserName>\Downloads You can always change it through browser setting. When selenium script downloads any file, it will also be downloaded in same default download directory. Note: If … Continue reading How To Change Default Download Directory For Chrome Browser in Selenium WebDriver
API Testing Tutorial Part 6 – Idempotent Methods in HTTP Methods
Hello Folks, In previous post, we have seen that how can we categorised HTTP methods in Safe and Unsafe methods. In this post, we will see how can we categorised HTTP methods in Idempotent and Non-idempotent methods. Let's understand the term "Idempotent" first: My name is Amod. If you ask me my name, I will … Continue reading API Testing Tutorial Part 6 – Idempotent Methods in HTTP Methods
Frequently Asked Java Program 20: Java Program to Find Missing Alphabets in Given String
This program was asked in Siemens. Problem Statement: You need to find missing alphabets from a given string. E.g. User input: "Amod Mahajan" Output: [B, C, D, E, F, G, H, I, J, K, L, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, b, c, e, f, g, i, k, l, … Continue reading Frequently Asked Java Program 20: Java Program to Find Missing Alphabets in Given String
API Testing Tutorial Part 5 – Safe Methods in HTTP Methods
Hello guys, In previous post, we have seen Introduction of HTTP methods. In this post, we will see what is called safe methods in HTTP methods. This is an important interview question also. All HTTP methods can be categorised in two categories: Safe methods & Unsafe methods. We know that all HTTP methods deal with … Continue reading API Testing Tutorial Part 5 – Safe Methods in HTTP Methods
API Testing Tutorial Part 4 – Understand Basics Of Http Methods – CRUD Operations
Let's start with a real time example. You must have heard about Facebook. To create an account of Facebook, you need to provide some personal details and hit enter. Now you have your own Facebook account. Your data is created in Facebook database. Who did this for you? A Facebook API. An API who is responsible … Continue reading API Testing Tutorial Part 4 – Understand Basics Of Http Methods – CRUD Operations
API Testing Tutorial Part 3 – Understand Terms URN , URL ,URI & API
This is a frequently asked interview question for API testing. All these terms are confusing to beginners as well as experienced. I will try to explain it well in this post. I will start with the line - " All above terms are same at a final point. These words are the stages representing evolution … Continue reading API Testing Tutorial Part 3 – Understand Terms URN , URL ,URI & API
TestNG Tutorials 47: Marking a Parameter as Optional in TestNG
Hello folks, When we parametrize methods in a TestNG class, we must need to pass parameter values from testng xml. If we do not pass we get an exception. We will see an example below: TestNG class: Testng xml without parameters: Output: When we define a parameter in a method of a testng class, TestNG … Continue reading TestNG Tutorials 47: Marking a Parameter as Optional in TestNG