Skip to content

Instantly share code, notes, and snippets.

View rakesh-vardan's full-sized avatar

Rakesh Vardan rakesh-vardan

View GitHub Profile
@rakesh-vardan
rakesh-vardan / LocationEdgeTest.java
Created July 10, 2024 06:57
LocationEdgeTest using Selenium
package io.learn;
import org.openqa.selenium.By;
import org.openqa.selenium.Keys;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;

Data Base

A Database is a collection of small units of data arranged in a systematic manner. A Relational Database Management System is a collection of tools that allows the users to manipulate, organize and visualize the contents of a database while following some standard rules that facilitate fast response between the database and the user side.

SQL Features SQL allows us to interact with the databases and bring out/manipulate data within them. Using SQL, we can create our own databases and then add data into these databases in the form of tables.

The following functionalities can be performed on a database using SQL:

Manual Testing

Software testing

Q & A What is Software? Types of Software’s? Collection of computer program that helps to perform a task System Software, programming software, Application software

What is Software Testing?

OOPS CONCEPTS

What is OOPS? Object-Oriented Programming System (OOPs) is a programming concept that works on the principles of abstraction, encapsulation, inheritance, and polymorphism. It allows users to create objects they want and create methods to handle those objects. The basic concept of OOPs is to create objects, re-use them throughout the program, and manipulate these objects to get results.

Selenium Testing: Automation testing is the process of testing a software or application using an automation testing tool to find the defects

Benefits of Automation Testing:

  1. Saves time and money.
  2. Reusability of code
  3. Easy reporting.
  4. Easy for compatibility testing. It enables parallel execution in the combination of different OS and browser environments. 5.Low-cost maintenance.

API It enables the data communication & data exchange between two seperate software systems.

Web Services:

  • application to application intercation & data exchange
  • thats why there is no GUI(Graphical User Interface)
  • backend testing
  • it uses Client-Server architecture

advantages:

Test Automation Framework: Set of guidelines and tools that are designed in a proper order to help us write the tests

It defines a set of rules or best practices that we can follow in a systematic way to achieve the desired results.

  • Types of FW
  1. Keyword driven FW
  2. Data-driven FW
  3. Hybrid FW (Combination of two or more frameworks mixed)

TestNG

TestNG is a testing framework inspired by JUnit and NUnit. It is designed to cover all categories of tests: Unit, Functional, End-to-end testing, Integration testing.

Advantages of TestNG:

  1. Manage Test suites and Test Cases
  2. Helps in Prioritizing of tests.
  3. Helps in grouping of tests.
  4. Parallel Execution
  5. Reporting.

Maven

When should one use Maven?

The Maven Build Tool can be used in the following conditions:

  • When the project has a large number of dependencies. Then, using Maven, you can easily manage those dependencies.
  • When the version of a dependency changes frequently. To update dependencies, simply update the version ID in the pom file.
  • Maven makes it simple to handle continuous builds, integration, and testing.
  • When you need a quick way to generate documentation from source code, this is the tool you use. It helps in compiling source code, and then packaging it into JAR or ZIP files.

How does Maven work?

GIT

What is a Version Control System (VCS)?

A Version Control System (VCS) tracks changes made in a file. It maintains the history of code changes and with project evolution, it gives an upper hand to developers to introduce new code, fix bugs, and run tests with confidence that their previously working copy could be restored at any moment in case things go wrong.

Uses of Git

  • Git is used to track changes made in the source code.
  • It's a distributed version control tool used for source code management.
  • It allows multiple developers to work together.
  • It supports non-linear development because of its thousands of parallel branches.