DataBase testing

Database testing: validate the front end data with the database. Let’s take an example of a e-commerce application, user booked a mobile phone by entering phone model, shipping / billing address, and submits, Data stored into database. Here we need to validate what the user enters data, should save exactly same to the database, then…

Initial setup of MySQL database and it’s basic

MySQL is considered to be most popular open source database, For more information regarding versions and features, please refer http://dev.mysql.com/ Topics Download and Install. Initial Setup Creating database tables Adding/updating/deleting data to tables Download and install To download MySQL database for windows, Navigate to this link http://dev.mysql.com/downloads/ click on MySQL Community Server (GPL)   click on MSI…

Firefox profile and preferences in selenium

Firefox profile is basically the personal settings of the firefox browser. Firefox profile contains information like your homepage, bookmarks, browser settings, history, saved passwords, download directory etc. Profile is basically a specific folder stored locally in your hard drive other than your firefox installation folder. We will see how we can set Firefox profile manually…

selenium implicit + Explicit + fluent waits

Every browser application has it’s own delay in loading the elements when we open a web application / navigate from one page to another / perform some action. Loading depends on different criteria like internet bandwidth, technology used in the application, server capacity, no of users accessing the browser app etc… While executing tests in…

TestNG @Test attributes – AlwaysRun

alwaysRun is a testNG attribute which makes a test method run always even if it’s dependent method is not run… let’s see the code implementation public class AlwaysRun { WebDriver driver; @Test public void test1() { driver = new FirefoxDriver(); driver.get(“http:qavalidation.com”); Assert.assertTrue(driver.getTitle().contains(“Testing”)); } @Test(dependsOnMethods = {“test1”}, alwaysRun=true) public void test2() { driver.findElement(By.linkText(“Selenium Tutorial!”)).click(); } }…