Earn Money in 10 days

Selenium Videos

Protractor In Selenium

Livechat

Saturday, 11 October 2014

About TestNG.(Next Generation framework).

Introduction to TestNG.

TestNG is like a unit test in selenium.By using testng annotations we can invoke our test as we need.If we have 20 testcases and we need to run only 18.So we can skip the other two test.This can be  done with the help of TestNG.We can run multilple testcases in a single batch file.
In selenium if we write methods for our scripts.If any one one fails then excecution stop at that time but if we use TestNG then TestNG reports failure Testcaseand execute other tests.

We can use TestNG annotations according to our needs.
1.Testng is a framework itself.
2.Testng is a controller of Selenium.
3.Testng gives us very good Reports
4.Writing testcases in java mode sometime difficult to write.
5.TestNG annotations makes Testers  selenium scripts easier.
6 TestNG has no main Method as in java.

Advantages:
  1.Very good reporting structure is available
  2.Can generate XML, HTML reports



  

How to install TestNG



  1. Steps to install TestNG
  1. If Eclispe IDE is not installed then go to https://www.eclipse.org/downloads/ and first install eclipse then configure Testng into it.
  1. Prerequisite for TestNG(Eclispse should be installed on your System/Laptop,Internet Connection should be there.)
LAUNCH ECLIPSE IDE>Go to menu section>Click on help

2.Select install New SoftWare
3.Click on Add button
4.In name you can type TestNG.Type http://beust.com/eclipse/ as location.
5.Click TestNG and Click on Next button.
6.Click on I accept the terms of the licence agreement,Then click on Finish.
7. Sometime you will get a Security warning . just click OK.

8. Click Next again on the succeeding dialog box until it prompts you to Restart the Eclipse.

9. You are all done now, just Click Yes.
10. Proceed with your workplace.
End TesNG is successfully installed.


Tuesday, 7 October 2014

Main topics for selenium

Tutorial-1

 Steps for selenium
 Installing Java
 Installing Eclipse
 Features of Java
 Why Java for Selenium and how much Part of java.
 First Eclipse Project
 First Java program
 Concept of class file
 Platform independence

Tutorial -2

 Datatypes in Java
Conditional and concatination operators
 While Loop
 For Loops
 Usage of loops in Selenium
 Single Dimensional Arrays
 Two Dimnsional arrays
 Practical usage of arrays in Selenium
 Drawbacks of arrays
 What are Functions?

Tutorial- 3 

Introduction to Collections API

 ArrayList Class

 HashTable Class
 Using ArrayList and HashTable of Collection API in 
 String class and functions
 Reading/Writing Text Files
 Reading Properties File in Java
 Concept of jar file
 POI API in java
 Reading/Writing Microsoft XLS Files
 Log4j API for Logging
 Usage of Log4J in Selenium
 Reading data from XML files using Java

Tutorial-4

 What is TestNg
 Installing TestNg in Eclipse
 TestNg annotations
 Understanding usage of annotations
 Running a Test in TestNg
 Batch Running of tests in TestNg
 Skipping Tests
 parameterizing Tests - DataProvider
 Assertions/Reporting Errors
 TestNg Reports
 Advantages over Junit
 Using TestNg in Selenium

 Tutorial5

What is selenium webdriver
What is xpath
What is css selector
How to downnload firebug
How to work on input fields
How to manage radio buttons
How to work with checkboxes
How to read data from excel sheet

Tutorial 6

How to work on login scenario
What is implicit wait.
What is explicit wait.
How to handle alertbox.
How to handle validation error.
What is quit command.
What is close command.

Tutorial7

How to upload picture.
Mouse movement in selenium
How to switch from one window to another window.

Next i will update very soon...

Monday, 6 October 2014

How To install java.

Go to this link.http://www.oracle.com/technetwork/java/javase/downloads/index.html

1.Click on JavaSE7U51

2). Once you have selected download, accept the terms of service and choose the correct OS corresponding for the specific JDK. (Windows, Mac, Linux, etc.)

3.Click on save.When it is enable.

4) Once the download is complete, double click the file to begin the installation of JDK.


5.Click on Run to run the installer.

6.Click the Next button to continue the installation.


7.click Next 

 8.After the initial installation is done, a pop up will ask  you where you want to want to download source java files. You can choose to change where you want to keep your folder but it’s best to stick with what you were given first. Click Next to continue.

9.After successfull installation 

10.Click on Close.


Sunday, 5 October 2014

What is Selenium WebDriver

Selenium 
  1. Selenium is an automation testing tool used to automate various types of Web applications. It consists of three main parts Selenium IDE, Selenium RC & Selenium WebDriver. 

Difference between Selenium IDE and Rc And WebDriver.

Selenium IDE

  1. The Selenium IDE is basically something having record & playback options which present in the every automation tool like QTP, Sliktest etc. & also has very good user interface. 
  2. The main limitation of Selenium IDE is that, it supported in only Firefox browser. 
  3. If you want to execute your scripts on different browsers, then you can use Selenium RC (Selenium Remote Control).
  4.   It does not support to test iphone/Android application.

          Selenium Rc 

  1. The Selenium RC supports multiple browsers like IE, Firefox, Chrome, Safari, Opera etc.
  2. It is standalone java program which allow you to run Html test suites.
  3. It also supports multiple languages like Java, Ruby, C#, Perl, Python etc. 
  4. You have to get expertise in one language (preferred Java language) & code in selenium RC.
You first need to launch a separate application called Selenium Remote Control (RC) Server before you can start testing

Selenium Rc Architecture


  1. The Selenium RC Server acts as a "middleman" between your Selenium commands and your browser
  2. When you begin testing, Selenium RC Server "injects" a Javascript program called Selenium Core into the browser.
  3. Once injected, Selenium Core will start receiving instructions relayed by the RC Server from your test program.
  4. When the instructions are received, Selenium Core will execute them as Javascript commands.
  5. The browser will obey the instructions of Selenium Core, and will relay its response to the RC Server.
  6. The RC Server will receive the response of the browser and then display the results to you.
  7. RC Server will fetch the next instruction from your test script to repeat the whole cycle.
 
Selenium WebDriver

Selenium Webdriver makes direct calls to the browser using each browser’s native support for automation.
  1. Browser Support

Google Chrome 12+

Internet Explorer 6, 7, 8, 9

Firefox 3+

Opera 11.5+

HtmlUnit 2.9

Android – 2.3+

iOS 3.2+

Safari 5.1+     

Language bindings

Java

C#

Ruby

Python

Javascript (Node)

Perl

PHP

Haskell

Objective-C

Selenium WebDriver do not require selenium server for running test.
WebDriver is using native automation from each and every supported language for running automation scripts on browsers.
WebDriver supports web as well mobile application testing so you can test mobile applications (iPhone or Android).
Supporting latest versions of almost all browsers.
WebDriver controls the browser itself.
Selenium Disadvantages

1. It does not support and non web-based applications, it only supports web based applications.
2. Its and open source tool so in case of any technical issues you need to rely on the selenium community forums to get your issue resolved.
3. You need to know at least one of the supported language very well in order to automate your application successfully.
4. No inbuilt reporting capability so you need plugins like JUnit and TestNG for test reports.

5. Lot of challenges with IE browser.

Popular Posts

 
subscribe
Subscribe Us
emailSubscribe to our mailing list to get the updates to your email inbox... We can't wait more to have your email in our subscribers email list. Just put your nice email in below box: