Wednesday 27 August 2014

Selenium IDE


HOW TO DOWNLOAD SELENIUM IDE AND RECORD TEST CASES

Step 1- Open below mention url and Click on 2.5.0 link

http://docs.seleniumhq.org/download/





Step 2- Once IDE install you need to start browser and Open Selenium  IDE 

Step 3- Click on  record button and Perform all the action which you want to record (run testcase manually in Firefox ) and once done click on same button to stop recording. So your testcase will look like


Step 4- Click on run testcase button and Verify the output


Tuesday 26 August 2014

Selenium Interview Question.

1-What is Selenium Webdriver,Selenium RC and Selenium IDE and what is difference between all?

2- What is Selenium 2 and Selenium 1

3-What is Selenium Grid and How it work and what is advantage ? 

4-What is the different locators in Selenium?

5-Diff between findElement() and findElements()?

6-Different ways to write Xpath and Css and main diff between xpath and Css?

7-Difference between Absolute path & Relative path?
8-What is the difference between driver.Close() and driver.Quit () method?


9- How to handle multiple windows in Selenium ?

10- What is Object Repository in Selenium and how it works?

11- Explain the frameworks ? Data Driver,Keyword, Hybrid

12- What is POM (Page Object Model and how it works) and Explain Page factory

13- Some Common question Like- Handle Alert,frames,confirmation box,all web element

14- What is JavascriptExecutor why we used in Webdriver and where we can use

15- How to take Screenshots 

16- How do you create html test report from your test script

17-How to validate error messages 

18- What is assertion and type of annotation and difference between all

19-Be ready with all basic scenario 
           Login for Gmail scenario
·         Goggle search and finding no of results
·         Downloading a file and save it
·         Checking mails and deleting them
·         Do shopping in flipkart.com

20- What is Jexcel and Apache POI and diffrence

21-Write down scenarios which we can't automate
22- Challenges which you faced while doing automation ?
23-What is actions class 
24- What is robot class and why we used in Selenium
25- What is firefox profiles and why it is used
26-How to check whether application internationalisation through  web driver?

27-What is the difference between "GET" and "NAVIGATE" to open a web page in selenium 
web driver?

28- Difference between QTP,Sahi,Selenium,SilkTest etc

29- Main Diff between QTP and Selenium 

30- Prepare all webelement activity basic and advance like auto suggestion ,auto complete etc.

Selenium Testing


Selenium Introduction

About Selenium

Selenium is a software testing framework for the web that facilitates the automation of browsers. The Selenium project produces various tools for automation testing such as Selenium IDE, Selenium Remote Control (RC), Selenium Grid and Selenium 2.0 & WebDriver. Learning all the tools will give you many different options for approaching different automation problems. The entire suits of tools result in a rich set of testing functions specially geared to the needs of testing of web application of all types.

Why Selenium

  • - Selenium is an open source tool with Corporate backing.
  • - The tests can then be run against most modern web browsers.
  • - Selenium deploys on Windows, Linux, and Macintosh platforms.
  • - It allows recording, editing, and debugging tests.
  • - Recorded tests can be exported in most language e.g. html, Java, .net, perl, ruby etc.
  • - Selenium has the support of some of the largest browser vendors who have taken (or are taking) steps to make Selenium a native part of their browser.

Selenium Components

  • - Selenium 1/ Selenium RC or Remote Control: Selenium RC was the main Selenium project for a long time before the Selenium Webdriver merge brought up Selenium 2, the newest and more powerful tool.
  • - Selenium IDE (Integrated Development Environment): The Selenium IDE is a simple but powerful Firefox extension that lets users record and replay sets of browser interactions as test cases.
  • - Selenium Grid: Selenium Grid is a server that allows tests to use web browser instances running on remote machines. It allows the Selenium RC solution to scale for large test suites and for test suits that must be run in multiple environments. Different tests can be run at the same time on different remote machines.
  • - Selenium Web Driver : It also provides a test domain-specific language (Selenese/Webdriver) to write tests in a number of popular programming languages, including Java, C#, Groovy, Perl, PHP, Python and Ruby. It is the newest addition to the Selenium toolkit. This provides all sort of awesome features, including a more cohesive and object oriented API as well as an answer to the limitation of the old implementation.

Selenium WebDriver

The primary new feature in Selenium 2.0 is the integration of the WebDriver API. WebDriver is designed to provide a simpler, more concise programming interface in addition to addressing some limitations in the Selenium-RC API. It enables you to use a programming language to write test scripts in different programming languages like html, Java, .net , perl, ruby and which enables you to use conditional operations, looping and other programming concepts which makes you test script robust. Selenium-WebDriver was developed to better support dynamic web pages where elements of a page may change without the page itself being reloaded. WebDriver’s goal is to supply a well-designed object-oriented API that provides improved support for modern advanced web-app testing problems.