SlideShare ist ein Scribd-Unternehmen logo
1 von 15
By Creating Experts
Contact-8122241286
http://thecreatingexperts.com/selenium-training-in-chennai/
What is TestNG?
•So far we had been doing Selenium tests without generating a proper
format for the test results. From this point on, we shall tackle how to
make these reports using a test framework called TestNG.
•TestNG is a testing framework that overcomes the limitations of
another popular testing framework called JUnit. The "NG" means "Next
Generation".
•Most Selenium users use this more than JUnit because of its
advantages. There are so many features of TestNG, but we will only
focus on the most important ones that we can use in Selenium.
Advantages of TestNG over JUnit
There are three major advantages of TestNG over JUnit:
Annotations are easier to understand
Test cases can be grouped more easily
Parallel testing is possible
What is Selenium Grid?
•Selenium Grid is a part of the Selenium Suite that specializes on
running multiple tests across different browsers, operating systems,
and machines in parallel.
•Selenium Grid has 2 versions - the older Grid 1 and the newer Grid 2.
We will only focus on Grid 2 because Grid 1 is gradually being
deprecated by the Selenium Team.
•Selenium Grid uses a hub-node concept where you only run the test
on a single machine called a hub, but the execution will be done by
different machines called nodes.
When to Use Selenium Grid?
You should use Selenium Grid when you want to do either one or both
of following:
•Run your tests against different browsers, operating systems, and
machines all at the same time. This will ensure that the application you
are testing is fully compatible with a wide range of browser-O.S
combinations.
•Save time in the execution of your test suites. If you set up Selenium
Grid to run, say, 4 tests at a time, then you would be able to finish the
whole suite around 4 times faster.
• As we create software we always wish it should work differently with
a different set of data. When it comes to testing the same piece of
software, we can't be unfair to test it with just one set of data. Here
again, we need to verify that our system is taking all set of
combinations which it expected to support.
• Here comes Parameterization in picture. To pass multiple data to
the application at runtime, we need to parameterize our test scripts.
• This concept which we achieve by parameterization is called Data
Driven Testing .
Type of Parameterization in TestNG-
•To make parameterization more clear, we will go through the
parameterization options in one the most popular framework for
Selenium Webdriver - TestNG.
There are two ways by which we can achieve parameterization in
TestNG
•With the help of Parameters annotation and TestNG XML file.
•With the help of DataProvider annotation.
•Cross Browser Testing is a type of functional test to check that your
web application works as expected in different browsers.
Why do we need Cross Browser Testing?
•Web based applications are totally different from windows
applications. A web application can be opened in any browser by the
end user. For example some people prefer to open http://twitter.comin
Firefox browser, while other's can be using Chrome browser or IE.
•In the diagram below you can observe that in IE, the login box of
twitter is not showing curve at all corners but we are able to see it in
chrome browser.
•File IO is a critical part for any software process. We frequently create
a file, open it & update something or delete it in our Computers. Same
is the case with Selenium Automation. We need a process to
manipulate files with Selenium.
•Java provides us different classes for File Manipulation with Selenium.
In this tutorial we are going to learn how can we read and write on
excel file with the help of Java IO package and Apache POI library.
•Frameworks help to structure our code and make maintenance easy.
Without frameworks we will place all our code and data in same place
which is neither re-usable nor readable. Using Frameworks, produce
beneficial outcomes like increase code re-usage , higher portability ,
reduced script maintenance cost etc
There are mainly three type of frameworks created by Selenium
WebDriver to automate manual testcases
•Data Driven Test Framework
•Keyword Driven Test Framework
•Hybrid Test Framework
Before we learn about Page Object Model, lets understand -
Why POM ?
•Starting a UI Automation in Selenium WebDriver is NOT a tough task.
You just need to find elements, perform operations on it .
•Consider this simple script to login into a website
What is POM?
•Page Object Model is a design pattern to create Object Repository for
web UI elements.
•Under this model, for each web page in the application there should
be corresponding page class.
•This Page class will find the WebElements of that web page and also
contains Page methods which perform operations on those
WebElements.
Why do we need reporting ?
•When we are using Selenium or any other automation tool, we are
performing operations on the web application. But our purpose of
automation is not just to exercise the Application Under Test.
•We, as an automation tester are supposed to test the application, find
bugs and report it to development team or higher management.
Here the reporting gets importance for software testing process
•TestNG Reporting
•TestNG library provides a very handy reporting feature. After
execution, TestNG will generate a test-output folder at the root of the
project. This folder contains two type of Reports-
•If a simple XPath is not able to find a complicated web element for our
test script, we need to use the functions from XPath 1.0 library. With
the combination of these functions, we can create more specific XPath.
Let's discuss a 3 such functions –
•Contains
•Sibiling
•Ancestor
Let's study them in detail -
•Contains: By using 'contains' function in XPath, we can extract all the
elements which matches a particular text value.
•Sibling: Using sibling keyword, we can fetch a web element on the
which is related to some other element.
•Ancestor: To find an element on the basis of the parent element we
can use ancestor attribute of XPath.
To understand extensions, lets first understand the three pillars of
selenium IDE
•Action: What operation you are performing on UI Screen
•Assessors/Assertion: What verification you do on data you get from UI
•Locator Strategy: How can we find the element in UI.
•In this presentation, I have giv en the introduction of
webdriver and explained about comparison of selenium
RC.
•Further topics will be expain in nest presentation.
•If you are interested to join in the training reach us-
8122241286
•Visit us-http://thecreatingexperts.com/selenium-training-in-
chennai/

Weitere ähnliche Inhalte

Was ist angesagt?

DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
Simplilearn
 
Cisco webex zend con2010 presentation
Cisco webex zend con2010 presentationCisco webex zend con2010 presentation
Cisco webex zend con2010 presentation
Enterprise PHP Center
 
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
Simplilearn
 

Was ist angesagt? (17)

devops online training in hyderabad
devops online training in hyderabaddevops online training in hyderabad
devops online training in hyderabad
 
DATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAIDATA SCIENCE TRAINING IN CHENNAI
DATA SCIENCE TRAINING IN CHENNAI
 
Industrial training in noida
Industrial training in noidaIndustrial training in noida
Industrial training in noida
 
DevOps made simple - Understand DevOps and steps to become a DevOps expert
DevOps made simple  - Understand DevOps and steps to become a DevOps expertDevOps made simple  - Understand DevOps and steps to become a DevOps expert
DevOps made simple - Understand DevOps and steps to become a DevOps expert
 
DevOps Online Training
DevOps Online TrainingDevOps Online Training
DevOps Online Training
 
Devops online training ppt
Devops online training pptDevops online training ppt
Devops online training ppt
 
Roles and Responsibilities of a DevOps Engineer
Roles and Responsibilities of a DevOps EngineerRoles and Responsibilities of a DevOps Engineer
Roles and Responsibilities of a DevOps Engineer
 
The DevOps Journey in an Enterprise - DOES 2021
The DevOps Journey in an Enterprise - DOES 2021The DevOps Journey in an Enterprise - DOES 2021
The DevOps Journey in an Enterprise - DOES 2021
 
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
DevOps Tutorial For Beginners | DevOps Tutorial | DevOps Tools | DevOps Train...
 
Continuous Delivery vs Continuous Deployment | DevOps Methodology | Devops Tr...
Continuous Delivery vs Continuous Deployment | DevOps Methodology | Devops Tr...Continuous Delivery vs Continuous Deployment | DevOps Methodology | Devops Tr...
Continuous Delivery vs Continuous Deployment | DevOps Methodology | Devops Tr...
 
An introduction to DevOps
An introduction to DevOpsAn introduction to DevOps
An introduction to DevOps
 
Dev ops
Dev opsDev ops
Dev ops
 
Cisco webex zend con2010 presentation
Cisco webex zend con2010 presentationCisco webex zend con2010 presentation
Cisco webex zend con2010 presentation
 
Grokking TechTalk #19: Software Development Cycle In The International Moneta...
Grokking TechTalk #19: Software Development Cycle In The International Moneta...Grokking TechTalk #19: Software Development Cycle In The International Moneta...
Grokking TechTalk #19: Software Development Cycle In The International Moneta...
 
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
DevOps Training | DevOps Training Video | DevOps Tools | DevOps Tutorial For ...
 
Continuous integration. Short overview
Continuous integration. Short overviewContinuous integration. Short overview
Continuous integration. Short overview
 
DevOPS training - Day 1/2
DevOPS training - Day 1/2DevOPS training - Day 1/2
DevOPS training - Day 1/2
 

Andere mochten auch

Lista de estatistica
Lista de estatisticaLista de estatistica
Lista de estatistica
BriefCase
 

Andere mochten auch (12)

Task 4
Task 4Task 4
Task 4
 
Selenium training in chennai
Selenium training in chennaiSelenium training in chennai
Selenium training in chennai
 
Alle porte dell'Europa. Raccontare le migrazioni in musei e archivi
Alle porte dell'Europa. Raccontare le migrazioni in musei e archiviAlle porte dell'Europa. Raccontare le migrazioni in musei e archivi
Alle porte dell'Europa. Raccontare le migrazioni in musei e archivi
 
AnĂĄlisis de estratĂŠgico de precios
AnĂĄlisis de estratĂŠgico de precios AnĂĄlisis de estratĂŠgico de precios
AnĂĄlisis de estratĂŠgico de precios
 
4G no brasil
4G no brasil 4G no brasil
4G no brasil
 
Urban Open Data in Ghana and West Africa
Urban Open Data in Ghana and West AfricaUrban Open Data in Ghana and West Africa
Urban Open Data in Ghana and West Africa
 
Aula18 - EstatĂ­stica Suficiente
Aula18 - EstatĂ­stica SuficienteAula18 - EstatĂ­stica Suficiente
Aula18 - EstatĂ­stica Suficiente
 
Lista de estatistica
Lista de estatisticaLista de estatistica
Lista de estatistica
 
Diapositivas de matematicas bloque7
Diapositivas de matematicas bloque7Diapositivas de matematicas bloque7
Diapositivas de matematicas bloque7
 
Internet y sus servicios
Internet y sus serviciosInternet y sus servicios
Internet y sus servicios
 
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOSPASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
PASOS PARA RESOLVER PROBLEMAS MATEMÁTICOS
 
Entrepreneur Way #25 - Februari 2017
Entrepreneur Way #25 - Februari 2017Entrepreneur Way #25 - Februari 2017
Entrepreneur Way #25 - Februari 2017
 

Ähnlich wie Selenium training in chennai

Selenium - The Way Of Success
Selenium - The Way Of SuccessSelenium - The Way Of Success
Selenium - The Way Of Success
Zbyszek Mockun
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Simplilearn
 

Ähnlich wie Selenium training in chennai (20)

Tools for Software Testing
Tools for Software TestingTools for Software Testing
Tools for Software Testing
 
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdfLesson_06_Software_and_Automation_Testing_Frameworks.pdf
Lesson_06_Software_and_Automation_Testing_Frameworks.pdf
 
Selenium and JMeter Testing
Selenium and JMeter TestingSelenium and JMeter Testing
Selenium and JMeter Testing
 
Selenium and JMeter
Selenium and JMeterSelenium and JMeter
Selenium and JMeter
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-54&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
4&5.pptx SOFTWARE TESTING UNIT-4 AND UNIT-5
 
Test automation
Test automationTest automation
Test automation
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVENAUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
AUTOMATION FRAMEWORK USING SELENIUM & TESTNG ALONG WITH MAVEN
 
Selenium - The Way Of Success
Selenium - The Way Of SuccessSelenium - The Way Of Success
Selenium - The Way Of Success
 
Data Driven Framework in Selenium
Data Driven Framework in SeleniumData Driven Framework in Selenium
Data Driven Framework in Selenium
 
Testing Frameworks
Testing FrameworksTesting Frameworks
Testing Frameworks
 
jDriver Presentation
jDriver PresentationjDriver Presentation
jDriver Presentation
 
Selenium institute in bangalore
Selenium institute in bangaloreSelenium institute in bangalore
Selenium institute in bangalore
 
Katalon studio vs selenium comparision
Katalon studio vs selenium comparisionKatalon studio vs selenium comparision
Katalon studio vs selenium comparision
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
Selenium Interview Questions And Answers | Selenium Interview Questions | Sel...
 
Selenium training
Selenium trainingSelenium training
Selenium training
 
Slides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testingSlides for Automation Testing or End to End testing
Slides for Automation Testing or End to End testing
 

Mehr von Thecreating Experts

Mehr von Thecreating Experts (20)

Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2 Selenium Training in Chennai Demo Part-2
Selenium Training in Chennai Demo Part-2
 
Selenium Training in Chennai
Selenium Training in ChennaiSelenium Training in Chennai
Selenium Training in Chennai
 
SAP BASIS Training in Chennai Demo Part-7
SAP BASIS Training in Chennai Demo Part-7SAP BASIS Training in Chennai Demo Part-7
SAP BASIS Training in Chennai Demo Part-7
 
SAP SD Training in Chennai Demo Part-4
SAP SD Training in Chennai Demo Part-4SAP SD Training in Chennai Demo Part-4
SAP SD Training in Chennai Demo Part-4
 
SAP MM Training in Chennai Demo Part-5
SAP MM Training in Chennai Demo Part-5SAP MM Training in Chennai Demo Part-5
SAP MM Training in Chennai Demo Part-5
 
SAP HR Training in Chennai Demo Part-4
SAP HR Training in Chennai Demo Part-4SAP HR Training in Chennai Demo Part-4
SAP HR Training in Chennai Demo Part-4
 
SAP BASIS Training in Chennai Demo Part-6
SAP BASIS Training in Chennai Demo Part-6SAP BASIS Training in Chennai Demo Part-6
SAP BASIS Training in Chennai Demo Part-6
 
SAP SD Training in Chennai Demo Part-3
SAP SD Training in Chennai Demo Part-3SAP SD Training in Chennai Demo Part-3
SAP SD Training in Chennai Demo Part-3
 
SAP HR Training in Chennai Demo Part-3
SAP HR Training in Chennai Demo Part-3SAP HR Training in Chennai Demo Part-3
SAP HR Training in Chennai Demo Part-3
 
SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5SAP BASIS Training in Chennai Demo Part-5
SAP BASIS Training in Chennai Demo Part-5
 
SAP HR Training in Chennai Demo Part-1
SAP HR Training in Chennai Demo Part-1SAP HR Training in Chennai Demo Part-1
SAP HR Training in Chennai Demo Part-1
 
SAP BASIS Training in Chennai Demo Part-4
SAP BASIS Training in Chennai Demo Part-4SAP BASIS Training in Chennai Demo Part-4
SAP BASIS Training in Chennai Demo Part-4
 
SAP SD Training in Chennai Demo Part-2
SAP SD Training in Chennai Demo Part-2SAP SD Training in Chennai Demo Part-2
SAP SD Training in Chennai Demo Part-2
 
SAP SD Training in Chennai
SAP SD Training in Chennai SAP SD Training in Chennai
SAP SD Training in Chennai
 
SAP MM Training in Chennai Demo Part-2
SAP MM Training in Chennai Demo Part-2SAP MM Training in Chennai Demo Part-2
SAP MM Training in Chennai Demo Part-2
 
SAP BASIS Training in Chennai Demo Part-3
SAP BASIS Training in Chennai Demo Part-3SAP BASIS Training in Chennai Demo Part-3
SAP BASIS Training in Chennai Demo Part-3
 
SAP MM Training in Chennai
SAP MM Training in ChennaiSAP MM Training in Chennai
SAP MM Training in Chennai
 
SAP BASIS Training in Chennai
SAP BASIS Training  in ChennaiSAP BASIS Training  in Chennai
SAP BASIS Training in Chennai
 
SAP BASIS Training in Chennai
SAP BASIS Training in ChennaiSAP BASIS Training in Chennai
SAP BASIS Training in Chennai
 
SAP HR Training in Chennai
SAP HR Training in ChennaiSAP HR Training in Chennai
SAP HR Training in Chennai
 

KĂźrzlich hochgeladen

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

KĂźrzlich hochgeladen (20)

Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 
Plant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptxPlant propagation: Sexual and Asexual propapagation.pptx
Plant propagation: Sexual and Asexual propapagation.pptx
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
80 ĐỀ THI THỬ TUYỂN SINH TIẾNG ANH VÀO 10 SỞ GD – ĐT THÀNH PHỐ HỒ CHÍ MINH NĂ...
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 

Selenium training in chennai

  • 2. What is TestNG? •So far we had been doing Selenium tests without generating a proper format for the test results. From this point on, we shall tackle how to make these reports using a test framework called TestNG. •TestNG is a testing framework that overcomes the limitations of another popular testing framework called JUnit. The "NG" means "Next Generation". •Most Selenium users use this more than JUnit because of its advantages. There are so many features of TestNG, but we will only focus on the most important ones that we can use in Selenium.
  • 3. Advantages of TestNG over JUnit There are three major advantages of TestNG over JUnit: Annotations are easier to understand Test cases can be grouped more easily Parallel testing is possible
  • 4. What is Selenium Grid? •Selenium Grid is a part of the Selenium Suite that specializes on running multiple tests across different browsers, operating systems, and machines in parallel. •Selenium Grid has 2 versions - the older Grid 1 and the newer Grid 2. We will only focus on Grid 2 because Grid 1 is gradually being deprecated by the Selenium Team. •Selenium Grid uses a hub-node concept where you only run the test on a single machine called a hub, but the execution will be done by different machines called nodes.
  • 5. When to Use Selenium Grid? You should use Selenium Grid when you want to do either one or both of following: •Run your tests against different browsers, operating systems, and machines all at the same time. This will ensure that the application you are testing is fully compatible with a wide range of browser-O.S combinations. •Save time in the execution of your test suites. If you set up Selenium Grid to run, say, 4 tests at a time, then you would be able to finish the whole suite around 4 times faster.
  • 6. • As we create software we always wish it should work differently with a different set of data. When it comes to testing the same piece of software, we can't be unfair to test it with just one set of data. Here again, we need to verify that our system is taking all set of combinations which it expected to support. • Here comes Parameterization in picture. To pass multiple data to the application at runtime, we need to parameterize our test scripts. • This concept which we achieve by parameterization is called Data Driven Testing .
  • 7. Type of Parameterization in TestNG- •To make parameterization more clear, we will go through the parameterization options in one the most popular framework for Selenium Webdriver - TestNG. There are two ways by which we can achieve parameterization in TestNG •With the help of Parameters annotation and TestNG XML file. •With the help of DataProvider annotation.
  • 8. •Cross Browser Testing is a type of functional test to check that your web application works as expected in different browsers. Why do we need Cross Browser Testing? •Web based applications are totally different from windows applications. A web application can be opened in any browser by the end user. For example some people prefer to open http://twitter.comin Firefox browser, while other's can be using Chrome browser or IE. •In the diagram below you can observe that in IE, the login box of twitter is not showing curve at all corners but we are able to see it in chrome browser.
  • 9. •File IO is a critical part for any software process. We frequently create a file, open it & update something or delete it in our Computers. Same is the case with Selenium Automation. We need a process to manipulate files with Selenium. •Java provides us different classes for File Manipulation with Selenium. In this tutorial we are going to learn how can we read and write on excel file with the help of Java IO package and Apache POI library.
  • 10. •Frameworks help to structure our code and make maintenance easy. Without frameworks we will place all our code and data in same place which is neither re-usable nor readable. Using Frameworks, produce beneficial outcomes like increase code re-usage , higher portability , reduced script maintenance cost etc There are mainly three type of frameworks created by Selenium WebDriver to automate manual testcases •Data Driven Test Framework •Keyword Driven Test Framework •Hybrid Test Framework
  • 11. Before we learn about Page Object Model, lets understand - Why POM ? •Starting a UI Automation in Selenium WebDriver is NOT a tough task. You just need to find elements, perform operations on it . •Consider this simple script to login into a website What is POM? •Page Object Model is a design pattern to create Object Repository for web UI elements. •Under this model, for each web page in the application there should be corresponding page class. •This Page class will find the WebElements of that web page and also contains Page methods which perform operations on those WebElements.
  • 12. Why do we need reporting ? •When we are using Selenium or any other automation tool, we are performing operations on the web application. But our purpose of automation is not just to exercise the Application Under Test. •We, as an automation tester are supposed to test the application, find bugs and report it to development team or higher management. Here the reporting gets importance for software testing process •TestNG Reporting •TestNG library provides a very handy reporting feature. After execution, TestNG will generate a test-output folder at the root of the project. This folder contains two type of Reports-
  • 13. •If a simple XPath is not able to find a complicated web element for our test script, we need to use the functions from XPath 1.0 library. With the combination of these functions, we can create more specific XPath. Let's discuss a 3 such functions – •Contains •Sibiling •Ancestor Let's study them in detail - •Contains: By using 'contains' function in XPath, we can extract all the elements which matches a particular text value. •Sibling: Using sibling keyword, we can fetch a web element on the which is related to some other element. •Ancestor: To find an element on the basis of the parent element we can use ancestor attribute of XPath.
  • 14. To understand extensions, lets first understand the three pillars of selenium IDE •Action: What operation you are performing on UI Screen •Assessors/Assertion: What verification you do on data you get from UI •Locator Strategy: How can we find the element in UI.
  • 15. •In this presentation, I have giv en the introduction of webdriver and explained about comparison of selenium RC. •Further topics will be expain in nest presentation. •If you are interested to join in the training reach us- 8122241286 •Visit us-http://thecreatingexperts.com/selenium-training-in- chennai/