Posts

How to Setup Cucumber with Ruby

                                                       1. Ruby 1.9.3 Download and install the following version in separate root directory.   Last Stable Version: Ruby 1.9.3-p545:   http://dl.bintray.com/oneclick/rubyinstaller/ruby-1.9.3-p545-i386-amingw32.7z?direct Verification:   C:\Ruby193:> ruby –v In case of successful installation, it will show the installed version of the ruby on the system as below: 2. Ruby Dev Kit Download & Installation For Windows 7 -64 Bit   https://github.com/downloads/oneclick/rubyinstaller/DevKit-tdm-32-4.5.2-20111229-1559-sfx.exe Steps To configure RDK After Download: 1.:>ruby dk.rb init 2.:>ruby dk.rb install Verification: ...

Best Test Management Tool

Image
  Is there such thing as single best test management tool?                                                                                        “Quality is free, but only to those who are willing to pay heavily for it.” – T. DeMarco What is the best test management tool?   The right answer is it depends. As with everything in life there is no black or white answer to it as it depends on number of factors. First of all what is Test management??? Test Management encompasses anything and everything that we do as testers.   Our ...

Taking screenshot with Selenium WebDriver in Python

      from selenium import webdriver browser = webdriver . Firefox ()     browser . get ( 'http://www.google.com/' )   ' Taking screenshot in Specific Folder driver . save_screenshot ( 'D\folder\filename.png' )'   browser . quit ()

Data Driven Testing Using Selenium -WebDriver in Python

 In this post, I will explain and share the code regarding data driven testing using an external csv file and iterating the tests multiple times with different sets of data as below: ####################################################################     from selenium import webdriver     from selenium.webdriver.common.by import By     from selenium.webdriver.support.ui import Select     from selenium.common.exceptions import NoSuchElementException     import unittest, time, re     class Browse(unittest.TestCase):        def setUp(self):        self.driver = webdriver.Firefox()        self.driver.implicitly_wait(30)        self.base_url = "http://careergrab.com/"        filename = 'test.csv'        line_number = 1  ...

Cucumber With Ruby & Capybara

Feature File: Feature: Automate Flipkart website Scenario: Login for Flipkart   Given I open browser and navigate to flipkart website   Then I click on login Link  Then I enter Email Id  Then  I enter Password   Then I click on Login Button   Then I mouse over the user   Then I click on Logout Step Definition File Given(/^I open browser and navigate to flipkart website$/) do   visit 'http://www.flipkart.com' end Then(/^I click on login Link$/) do     find(:xpath, "//a[@href='https://www.flipkart.com/account/login?from=header']").click end Then(/^I enter Email Id$/) do      fill_in 'login_email_id', :with => 'xxx@gmail.com' end Then(/^I enter Password$/) do   fill_in 'login_password', :with => 'password' end Then(/^I click on Login Button$/) do   click_button 'Login'   sleep(10) end Then(/^I mouse over the user$/) do  element...

My Research on Cucumber

Introduction# Cucumber is a functional test automation tool for lean and agile teams. It supports behaviour-driven development, specification by example and agile acceptance testing.The language that Cucumber understands is called Gherkin. You can use it to automate functional validation in a form that is easily readable and understandable to business users, developers and testers. This helps teams create executable specifications, that are a goal for development, acceptance criteria and functional regression checks for future changes. In this way, Cucumber allows teams to create living documentation, a single authoritative source of information on system functionality that is always up-to-date.   AN EXAMPLE: Feature: Search courses   In order to ensure better utilization of courses   Potential students should be able to search for courses   Scenario: Search by topic     Given there are 240 courses which do not have the ...