Home > Testing best practice (Page 2)

automate gmail login process using Selenium

Code to automate gamil login, send email and attachment. To use below code need to replace username password with actual values. Selenium code to send email using gmail by performing UI Operations. Below code will perform operations like 1) Launch chrome browser 2) Open Gmail URL 3) Enter Email ID and Password 4) Navigate to INBOX 5)

This Article is TAGGED in , , . Read more

How to execute selenium script in Brave browser

 Execute selenium script in Brave browser To download and install selenium configuration please refer link: 1.Download and install brave browser in system:                ->Go to Brave browser site.                ->Download Brave Browser according to your system configuration.    As I have 64 bit

This Article is TAGGED in , . Read more

WordPress Security checklist for Developers and Testers

Security scenarios to be check for WordPress site 1. Issue/Scenario - Access WordPress admin area Description - Every WordPress site has a management area through which the site admin manages the content and all the sections of the site. The admin user has all the access and authority to add, edit

This Article is TAGGED in , , . Read more

How to Create Configure TestNG project

Setting up a new TestNG project In the previous topic, we have discussed the installation of TestNG in the Eclipse. Let's create a TestNG project in the eclipse and Name it as "TestNGProject". Step 1. Click on File > New > Java project. Step 2. Type "TestNGProject" as the Project Name then click Next. Step

This Article is TAGGED in , , , . Read more

Best Selenium Automation framework TestNG

TestNG: Powerful and easy to use framework/tool over JUnit and NUnit. Extensively used by all automation testers due to its reporting feature. What are the features of TestNG? Annotations are widely used in the TestNG framework. Annotation is used to describe a piece of code that is inserted into the program or

This Article is TAGGED in , , , , . Read more

Running selenium script parallel in multiple browsers using TestNg

We can run selenium scripts parallely in multiple browsers using TestNg.xml configuration. Below is the configuration we need to make in TestNg.xml to run in chrome and firefox browsers. [crayon-6621898483ba1107719675/] Below is the sample code. It opens mundrisoft.com website in chrome and firefox browser and performs some operation on it. [crayon-6621898483ba9217286269/]    

This Article is TAGGED in , , . Read more

Java library for text file operations

To perform text file operation like Create File, Compare Text file, Replace words etc we have created jar which you can download Attached Zip File: TextUtility  After extracting zip file you will get jar file which contains below functionality which is extremely easy to use. Functions appendLine → Read Text File and append new

This Article is TAGGED in , , , , . Read more

Install TestNG Framework

What is TestNG FrameWork? 1. TestNG is the most widely used testing framework in the software testing industry. It is an open source automated Testing framework. 2. TestNG is an automation testing framework in which NG stands for "Next Generation". 3. TestNG is used for different kinds of testing like unit, functional, integration

This Article is TAGGED in , , , , , , . Read more

Manual testing tutorial

Manual testing tutorials Download free sample testcase template Checklist for software application testing Software design specification - Importance in UI testing Early involvement of testing team in requirement phase Test case for button, password, form, links What is AB testing Checklist and device matrix for Responsive Testing Code to get screen resolution Test cases for drop-down list (multiple selection)

This Article is TAGGED in . Read more

Different ways to create Xpath for a single Web element

Please find list of ways by using which we can create xpath to identify WebElement in the DOM. Here we have mentioned 15 different xpath for single web element (Society Name) from https://www.societyhive.com   //input[@id='txtSocietyName'] //input[@id='txtSocietyName' and @name='societyName']  //input[@id='txtSocietyName' or @name='societyName'] ---Toggle switch //span[text()='Please enter society name']//preceding-sibling::input --------Use of text() method //span[.='Please enter society name']//preceding-sibling::input -----Functionality of

This Article is TAGGED in , . Read more