Skip to main content

Posts

Showing posts from April, 2022

What is git and github,What is difference between git and github?

 What are git and GitHub, What is the difference between git and GitHub? Git:- It is a command-line console editor that is used to execute the git command, create a local repository, add files, remove files, create a branch, remove a branch, add files under the branch, show files under the branch, current branch status, push the file into remote, pull the file from remote. means if we want to add any data under GitHub(remote) then you should execute the git command. download git console from here Download git Github:- it is a cloud repository that is used to store data under a cloud, it is VCS means version control system. It is an open-source cloud web application that can be simply operated.  Open  https://github.com/ and create an account under it. Some important git command 1)  git init:-   it is used to initialize the git local repository under the current working directory 2)  git add file-  It is used to add working files under the git local re...

Testng example to perform Integration Testing of Owner Module

 Test-ng example to perform  Integration Testing of Owner Module:- In this example, we will perform a complete integration testing operation from Owner Login with valid data and navigate to the dashboard page, click on add room options then click on the logout link. again create another test case to check login operation with invalid credentials. Code Specification:- 1)  uses two annotations of @Test to write test cases 2)  BeforeMethod annotation to execute Code before each Test case method and AfterMethod annotation to execute code after each test case. Complete Code Description:- package scs; import java.time.Duration; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebElement; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.support.ui.Select; import org.testng.annotations.AfterMethod; import org.testng.annotations.BeforeMethod; import org.testng.annotations.Test; public class TestNGExample...