Posts

Showing posts from October, 2019

Browsers Setting

package WebdriverStart; import org.openqa.selenium.PageLoadStrategy; import org.openqa.selenium.WebDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxOptions; import org.openqa.selenium.firefox.FirefoxProfile; import org.openqa.selenium.firefox.internal.ProfilesIni; public class Firefoxprofiler { public static void main(String[] args) { //###################For selenium console data // System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE,"null");//no file will be generated at console System.setProperty(FirefoxDriver.SystemProperty.BROWSER_LOGFILE,"G:\\Prac_data\\testlog.txt");//no file will be generated at console // #################binary file(FirefoxOptions class) FirefoxOptions options= new FirefoxOptions(); options.setBinary("path of the firefox exe");//if selenium doesnt find the firefox.exe //##############PageLoadStrategy#################(FirefoxOptions class...

Extends Reports

Image
Extends Reports: Need Below Jars:

A Interview Questions- selenium

    Automation testing Interview Questions ================================= 1. What is Automation Testing? Automation testing is the process of testing the software using an automation tool to find the defects. In this process, executing the test scripts and generating the results are performed automatically by using automation tool. Some most popular tools do automation testing are HP QTP/UFT, SELENIUM Webdriver, etc., 2. What are the benefits of automation testing? ·          Saves time and money .Automation testing is faster in execution. ·          Reusability code, create one time and execute multiple times with less or no maintenance. ·          Easy reporting .It generates automatic reports after the test execution. ·          Easy for compatibility testing .It enables parallel execution in the...