API TESTING 2

Nội dung bài viết I. What are HTTP status codes?II. What are common HTTP status codes? III. What are the common API testing types?IV. What are the Limits of API Usage? API TESTING 2I. What are HTTP status codes?Browsers and servers interact via the Hypertext Transfer Protocol (HTTP) status code. The browser transmits your request to a server, which then delivers a response when you use the internet to seek information...

API TESTING 1

Nội dung bài viết I. What is an API?II. What is API Testing? III. What are the advantages of API Testing?  API TESTING 1I. What is an API?API stands for Application Programming Interface which is useful for communication between different software systems. It facilitates data exchange between systems located in different remote places. API is a collection of functions that are executable by other functions of...

Sleep in Selenium

Nội dung bài viết I. Waits in SeleniumII. Sleep() in webdriver Sleep in SeleniumI. Waits in SeleniumWait is the process of matching the speed of action and reaction, selenium does the action, and web application shows the reaction.Example: Click Login button gmail login (selenium does this action) web application navigates to the inbox(reaction)public class Example { public static void main(String[] args) { //open firefox browser WebDriver...

Switch Case Statement

Nội dung bài viết I. Switch case  Switch Case StatementI. Switch caseSyntaxswitch (expression) { case value1: // statement sequence break; case value2: // statement sequence break; . . . case valueN: // statement sequence break; default: // default statement sequence }Examplepublic class SwitchDemo { public static void...

If Statement

Nội dung bài viết I. Java if statementII. Java if-else statementIII. Java if-else-if statement  If StatementI. Java if statementSyntaxif(condition){ //code to be executed }Examplepublic class IfStatementExample { public static void main(String[] args) { int x, y; x = 10; y = 20; if (x < y) { System.out.println("x is less than y"); } x = x * 2; if (x...

Arithmetic Operators

 Arithmetic Operators1. The Arithmetic Operatorspublic class BasicMath { public static void main(String args[]) { // arithmetic using integers System.out.println("Integer Arithmetic"); int a = 1 + 1; int b = a * 3; int c = b / 4; int d = c - a; int e = -d; System.out.println("a = " + a); System.out.println("b = " + b); System.out.println("c = " + c); ...