selenium basics

14
Selenium-Basics By Deepak p

Upload: deepak-prakash

Post on 20-Jan-2017

145 views

Category:

Software


0 download

TRANSCRIPT

Page 1: Selenium basics

Selenium-Basics

By Deepak p

Page 2: Selenium basics

What is automation Testing?

Automation testing is defined as process of automatically executing all the test cases that was done manually with the help of automation tools available.

In other words we write how to test and the tool executes it automatically every time.

Page 3: Selenium basics

Why use Automation?

Why we use calculator? For quick and accurate calculation , it is the same principle used here for testing.

It reduces the time considerably as everything is executed automatically.

Manual intervention is reduced.

Reusability of codes-Codes can be used again and again

Whole application can be run flawlessly without any person.

Page 4: Selenium basics

Continue..

Load,stress testing can be performed.

Again and again we don't need to test the same scenarios manually.

Same application can be tested in different systems and environments without any human resources.

Page 5: Selenium basics

What is Selenium?

First it is an open source tool(Free) used for automation of the application.

Web based application can be tested by using selenium.

Selenium has 4 components viz. Selenium IDE,Selenium Webdriver,Selenium RC,Selenium Grid.

Now Selenium webdriver and Selenium RC are merged together and named as selenium 2.

Selenium is open source so it can be used freely without any cost.

Page 6: Selenium basics

Selenium IDE

It is a simple component of the selenium suite.

It is a firefox plugin,which runs in only firefox browser.

It performs recording,editing and playback of the test cases.

It is easy to Install and learn.

Basics of html and javascript will be useful for using this for full extent.

Page 7: Selenium basics

Continue..

The language used here is called as selenese.

For small and simple test cases this selenium ide is very useful and time consuming.

Page 8: Selenium basics

Selenium Webdriver

Selenium webdriver is most advanced component of selenium suite.

We can use coding languages like java,c#,python,PHP,Perl,Ruby for coding.

Here the selenium directly controls the browser.

Different browsers can be used for testing.

You need to know to code in any of the languages supported by webdriver.

Page 9: Selenium basics

Continue..

Selenium webdriver architecture is very simple so it more faster than the others.

Here we can get the reports of the defects in the application more clearly.

Webdriver can be also used for web based apps in mobile testing.

Page 10: Selenium basics

Selenium Grid

It is a kind of distributed test execution .

Many tests can be run at same time in different machines.

Different browsers can be used parallely to execute the testcases.

Tests can be executed in different OS at same time.

It is very time saving as many tests are done in same time at different environments.

Page 11: Selenium basics

Conclusion..

Selenium is a powerful open source tool in automation testing.

Vast test coverage can be achieved by using selenium.

As it an open source software the support received by the developer can be limited.

It can be integrated with maven,jenkins for continuous integration.

Page 12: Selenium basics

Continue..

TestNG is becoming more popular due to its advantages over JUnit.

Only browser based applications can be tested and desktop applications cannot be tested.

Overall Selenium is becoming very popular automation tool for its many features...

Page 13: Selenium basics

Thank you very much for watching

…Deepak p

Page 14: Selenium basics