Git Code Review Types

Git code reviews are important for many reasons, Making sure the code works and meets requirements (automated testing helps with this, too). Coaching new developers. Ensuring transparency across teams. Sharing innovation. Improving performance. Doing these reviews properly can save time in the long-term. They’ll help you identify bugs and improve quality earlier in development —… Continue reading Git Code Review Types

Prioritize Test Cases in TestNG

How to prioritize test cases (For selenium Automation – TestNG Framework) When Multiple test cases are written under one class, it will execute according to the alphabetical order(ASCII), for making it execute based on our condition, we will prioritize the test cases → ByDefault all the tests in the class will be executed in the… Continue reading Prioritize Test Cases in TestNG

Methods used in Selenium WebDriver for Automation

Selenium web driver in simple terms is an API library that contains a list of predefined classes and interfaces that contains predefined methods Basic Methods that are used in Selenium web driver: get() → Used to open specified URL’s web page, (HTTP:// needs to be provided) manage() → manage().window().maximized(); → To maximize the window manage().window().minimize();… Continue reading Methods used in Selenium WebDriver for Automation

Taking Screenshots using Selenium webdriver

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Select the Sign-Up link Fill out all the fields and uncheck the checkbox Click the Create Account button Take the screenshot Quit browser Code: Script: public static void main(String[] args) throws Exception { WebDriverManager.edgedriver().setup(); EdgeOptions options = new EdgeOptions(); options.addArguments(“start-maximized”); WebDriver… Continue reading Taking Screenshots using Selenium webdriver

Logout using selenium web driver with dynamically handling the dropdown

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Login using valid credentials → (Email: radhika.rakesh@jobinandjismi.com, Password: test@12345) Select the arrow dropdown near the account name at the top right of the page and selects the logout option Dynamically handling the dropdown Script: public static void main(String[] args) throws Exception… Continue reading Logout using selenium web driver with dynamically handling the dropdown

Search a item using selenium webdriver

Testing steps: Load the page using the given URL (Log in | Register (formsscasb.tk)) Login using valid credentials → (Email: radhika.rakesh@jobinandjismi.com, Password: test@12345) Select the search icon Enter an item into the search field → (62-058 High Yield MICR Toner Cartridge: HP LaserJet M506x) Select the Go button View and select the product to view… Continue reading Search a item using selenium webdriver

Collections framework (Usages)- For selenium

What is a Collections Framework? A collections framework is a unified architecture for representing and manipulating collections.All collections frameworks contain the following: Interfaces: These are abstract data types that represent collections. Interfaces allow collections to be manipulated independently of the details of their representation. In object-oriented languages, interfaces generally form a hierarchy. Implementations: These are the concrete… Continue reading Collections framework (Usages)- For selenium

Test NG Basics

TestNG is an automation testing framework in which NG stands for “Next Generation”. TestNG is inspired by JUnit which uses the annotations (@). TestNG overcomes the disadvantages of JUnit and is designed to make end-to-end testing easy. Using TestNG, you can generate a proper report, and you can easily come to know how many test cases are passed, failed, and… Continue reading Test NG Basics

ChromeOptions in Selenium Webdriver

ChromeOptions is a class in Selenium that is used to set the capability and customization and configuration of the ChromeDriver session as well.  This class inherits the MutableCapabilities class. How to add chrome options in selenium -> Just by creating an instance ChromeOptions options = new ChromeOptions(); Uses of chrome options: It is used to… Continue reading ChromeOptions in Selenium Webdriver