Tag «Automation Testing»

Selenium – Logging with Log4j

If we are executing Test Suite with hundreds of automated test cases then logging all the events might be useful. There are two APIs available for logging events. JUL – Java Logging API Log4j – Apache Software Foundation I am going to discuss Log4j as this is an open source logging library as well as …

Running Selenium Tests with JUnit 4

Step 1: Create a new project Java SugarCRMJunitTests in Eclipse as shown in the below figure. Step 2: Right Click newly created Java Project (SugarCRMJunitTests) –> New –> Package –> Give name “SugarTests” Step 3: Right Click SugarTests package –> New –> JUnit Test Case (Select checkboxes SetupBeforeClass, tearDownAfterClass)    –> Give the name as “SugarTestScripts” …