SlideShare una empresa de Scribd logo
1 de 25
SKILLWISE- SELENIUM
Selenium 2.x
What is Selenium?
Selenium is a free (open source) automated testing suite for web
applications across different browsers and platforms.
It is quite similar to HP Quick Test Pro (QTP) only that Selenium focuses on
automating web-based applications.
Selenium QTP
Open Source Licensed
Can Execute on Cross Browsers Can Execute on Some Specific version of I.E,
Chrome and FireFox.
Can Run on various Operating System Only For Windows
Only Test Web Based Applications Can Test Desktop and Web Based
Application
No default Test Generation Report Default test result generation with in the
tool.
Selenium is not just a single tool but a suite of softwares, each catering to
different testing needs of an organization. It has four components.
Who Develop Selenium?
Selenium was created by Jason Huggins in
2004. An engineer at ThoughtWorks, he was
working on a web application that required
frequent testing. Having realized that the
repetitious manual testing of their
application was becoming more and more
inefficient, he created a JavaScript program
that would automatically control the
browser's actions. He named this program as
the "JavaScriptTestRunner."
Seeing potential in this idea to help automate
other web applications , he made
JavaScriptRunner open-source which was
later re-named as Selenium Core
Selenium IDE
Selenium Integrated Development Environment (IDE) is the simplest
framework in the Selenium suite and is the easiest one to learn. It is
a Firefox plugin that you can install as easily as you can with other plugins.
Installing Selenium IDE , FireBug and
FirePath
1. Selenium IDE Setup
2. Creating Test Case and TestSuite
3. Debugging Selenium IDE (BreakPoint and Power Debugger)
4. Verify vs Assert
5. Handling Alerts, FileUpload
6. Pattern Matching
a) globbing
eg.
command Target Value
verifyTextPresent id=txt glob: taxyear*
globbing can be * ? []
[] - used to match any single character
e.g [0-9]
e.g [a-c]
b) Exact
e.g.
command Target Value
verifyTextPresent id=txt exact: amit[0-9]
c) RegEx
command Target Value
verifyTextPresent id=txt regexp: [Aa]mit[0-9]+
command Target Value
verifyTextPresent id=txt regexpi: amit[0-9]+
Create a Script Manually with Firebug
Now, we shall recreate the same test case manually, by typing in the commands.
This time, we will need to use Firebug.
Step 1 Open Firefox and Selenium IDE.
Type the base URL
The record button should be OFF.
Step 2 Click on the topmost blank line in the Editor.
WebDriver is a web automation framework that allows
you to execute your tests against different browsers
WebDriver also enables you to use a programming language in creating your
test scripts(not possible in Selenium IDE).
You can now use conditional operations like if-then-else or switch-case
You can also perform looping like do-while.
Following programming languages are supported by WebDriver
•Java
•.Net
•PHP
•Python
•Perl
•Ruby
You do not have to know all of them. You just need to be knowledgeable in one
WebDriver Vs Selenium RC
Setup WebDriver
Step 1 - Install Java on your computer
Step 2 - Install Eclipse IDE
Step-3 Download WebDriver
http://docs.seleniumhq.org/download/
Step -4
Download Chrome Driver
http://chromedriver.storage.googleapis.com/index.html?path=2.14/
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-OS combinations.
Save time in 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.
Download Selenium Server from
http://docs.seleniumhq.org/download/
Run the Hub
Hub - The hub is the central point where you load your tests into.
There should only be one hub in a grid.
http://www.seleniumhq.org/download/
java -jar selenium-server-standalone-2.30.0.jar -role hub
http://localhost:4444/grid/console
Run the Node
Nodes-Nodes are the Selenium instances that will execute the tests that you
loaded on the hub.
There can be one or more nodes in a grid.
Nodes can be launched on multiple machines with different platforms and
browsers.
The machines running the nodes need not be the same platform as that of the
hub.
java –jar selenium-server-standalone-2.44.0.jar –role node –hub
http://192.168.1.6:4444/grid/register -browser browser Name=firefox -port 5555
Add Code on Hub Machine
DesiredCapabilities capability =
DesiredCapabilities.firefox();
capability.setBrowserName("firefox");
capability.setPlatform(Platform.LINUX);
WebDriver driver = new RemoteWebDriver(new
URL("http://192.168.1.6:4444/wd/hub"),capabil
ity);
SKILLWISE_SELENIUM

Más contenido relacionado

La actualidad más candente

Building the Test Automation Framework - Jenkins for Testers
Building the Test Automation Framework - Jenkins for TestersBuilding the Test Automation Framework - Jenkins for Testers
Building the Test Automation Framework - Jenkins for TestersWilliam Echlin
 
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...Alex Balhatchet
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAllRun Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAllDaniel Herken
 
Automated-Testing-inside-containers
Automated-Testing-inside-containersAutomated-Testing-inside-containers
Automated-Testing-inside-containersManoj Kumar Kumar
 
How To Automate Cross Browser Testing
How To Automate Cross Browser TestingHow To Automate Cross Browser Testing
How To Automate Cross Browser TestingDaniel Herken
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationRIA RUI Society
 
GitHub Actions for 5 minutes
GitHub Actions for 5 minutesGitHub Actions for 5 minutes
GitHub Actions for 5 minutesSvetlin Nakov
 
No more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerNo more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerSylwester Madej
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...eleksdev
 
Mastering PowerShell Testing with Pester
Mastering PowerShell Testing with PesterMastering PowerShell Testing with Pester
Mastering PowerShell Testing with PesterMark Wragg
 
Setup Build & Deploy with Jenkins CI
Setup Build & Deploy with Jenkins CISetup Build & Deploy with Jenkins CI
Setup Build & Deploy with Jenkins CIwalming
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - IntroductionAmr E. Mohamed
 
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...DevOpsGroup
 
Appium: Mobile Automation Made Awesome
Appium: Mobile Automation Made AwesomeAppium: Mobile Automation Made Awesome
Appium: Mobile Automation Made AwesomeNetcetera
 
Introduction to Selenium IDE
Introduction to Selenium IDEIntroduction to Selenium IDE
Introduction to Selenium IDEdrnikki
 
Selenium webcrawler
Selenium webcrawlerSelenium webcrawler
Selenium webcrawlerRabia Khalid
 
Selenium Basics Crashcourse
Selenium Basics CrashcourseSelenium Basics Crashcourse
Selenium Basics CrashcourseDaniel Herken
 

La actualidad más candente (20)

Building the Test Automation Framework - Jenkins for Testers
Building the Test Automation Framework - Jenkins for TestersBuilding the Test Automation Framework - Jenkins for Testers
Building the Test Automation Framework - Jenkins for Testers
 
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
Continuous testing and deployment in Perl (London.pm Technical Meeting Octobe...
 
Run Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAllRun Selenium Tests With Jenkins and BrowseEmAll
Run Selenium Tests With Jenkins and BrowseEmAll
 
Selenium
SeleniumSelenium
Selenium
 
Automated-Testing-inside-containers
Automated-Testing-inside-containersAutomated-Testing-inside-containers
Automated-Testing-inside-containers
 
How To Automate Cross Browser Testing
How To Automate Cross Browser TestingHow To Automate Cross Browser Testing
How To Automate Cross Browser Testing
 
Selenium
SeleniumSelenium
Selenium
 
Smarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automationSmarter ways to do selenium automation @ work, Selenium, automation
Smarter ways to do selenium automation @ work, Selenium, automation
 
GitHub Actions for 5 minutes
GitHub Actions for 5 minutesGitHub Actions for 5 minutes
GitHub Actions for 5 minutes
 
No more waiting for API - Android Stub Server
No more waiting for API - Android Stub ServerNo more waiting for API - Android Stub Server
No more waiting for API - Android Stub Server
 
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
Continuous Delivery concept overview. Continuous Integration Systems. DevOps ...
 
Mastering PowerShell Testing with Pester
Mastering PowerShell Testing with PesterMastering PowerShell Testing with Pester
Mastering PowerShell Testing with Pester
 
Setup Build & Deploy with Jenkins CI
Setup Build & Deploy with Jenkins CISetup Build & Deploy with Jenkins CI
Setup Build & Deploy with Jenkins CI
 
Selenium - Introduction
Selenium - IntroductionSelenium - Introduction
Selenium - Introduction
 
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...
Pester & PSScriptAnalyser - Power Test your PowerShell with PowerShell - Futu...
 
Appium: Mobile Automation Made Awesome
Appium: Mobile Automation Made AwesomeAppium: Mobile Automation Made Awesome
Appium: Mobile Automation Made Awesome
 
Introduction to Selenium IDE
Introduction to Selenium IDEIntroduction to Selenium IDE
Introduction to Selenium IDE
 
Selenium webcrawler
Selenium webcrawlerSelenium webcrawler
Selenium webcrawler
 
Protractor
ProtractorProtractor
Protractor
 
Selenium Basics Crashcourse
Selenium Basics CrashcourseSelenium Basics Crashcourse
Selenium Basics Crashcourse
 

Destacado (18)

SKILLWISE-BIGDATA ANALYSIS
SKILLWISE-BIGDATA ANALYSISSKILLWISE-BIGDATA ANALYSIS
SKILLWISE-BIGDATA ANALYSIS
 
Skillwise Profile
Skillwise ProfileSkillwise Profile
Skillwise Profile
 
[Topper's interview] i fo...nadu, be (ece) mrunal
[Topper's interview] i fo...nadu, be (ece)   mrunal[Topper's interview] i fo...nadu, be (ece)   mrunal
[Topper's interview] i fo...nadu, be (ece) mrunal
 
Softskill skillwise consulting ppt
Softskill skillwise consulting pptSoftskill skillwise consulting ppt
Softskill skillwise consulting ppt
 
Skillwise profile
Skillwise profileSkillwise profile
Skillwise profile
 
Technical Skillwise
Technical SkillwiseTechnical Skillwise
Technical Skillwise
 
Skillwise Consulting
Skillwise ConsultingSkillwise Consulting
Skillwise Consulting
 
Skillwise_Technical competency
Skillwise_Technical competencySkillwise_Technical competency
Skillwise_Technical competency
 
Insurace brochure for clients
Insurace brochure for clientsInsurace brochure for clients
Insurace brochure for clients
 
Skillwise consulting _Soft Skills
Skillwise consulting _Soft SkillsSkillwise consulting _Soft Skills
Skillwise consulting _Soft Skills
 
Skillwise Consulting_Android
Skillwise Consulting_AndroidSkillwise Consulting_Android
Skillwise Consulting_Android
 
Skillwise Consulting -Technical competency
Skillwise Consulting -Technical competencySkillwise Consulting -Technical competency
Skillwise Consulting -Technical competency
 
Advanced Soft skill_Skillwise Consulting
Advanced Soft skill_Skillwise ConsultingAdvanced Soft skill_Skillwise Consulting
Advanced Soft skill_Skillwise Consulting
 
Technical Comptency_ppt
Technical Comptency_pptTechnical Comptency_ppt
Technical Comptency_ppt
 
JMETER-SKILLWISE
JMETER-SKILLWISEJMETER-SKILLWISE
JMETER-SKILLWISE
 
Technology platform
Technology platformTechnology platform
Technology platform
 
Android Application Fundamentals.
Android Application Fundamentals.Android Application Fundamentals.
Android Application Fundamentals.
 
Skillwise Consulting_Soft skills
Skillwise Consulting_Soft skillsSkillwise Consulting_Soft skills
Skillwise Consulting_Soft skills
 

Similar a SKILLWISE_SELENIUM

Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With SeleniumJodie Miners
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium Rohit Thakur
 
Selenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI TestingSelenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI Testingmikereedell
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverPankaj Biswas
 
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautureszahid32
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASITASIT
 
Selenium Testing with TestingBot.com
Selenium Testing with TestingBot.comSelenium Testing with TestingBot.com
Selenium Testing with TestingBot.comtestingbot
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScriptSimon Guest
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVAmahirayavarapu
 

Similar a SKILLWISE_SELENIUM (20)

Sel
SelSel
Sel
 
Selenium
SeleniumSelenium
Selenium
 
Selenium Testing
Selenium Testing Selenium Testing
Selenium Testing
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI TestingSelenium2 and Jenkins: Almost pain-free UI Testing
Selenium2 and Jenkins: Almost pain-free UI Testing
 
Selenium
SeleniumSelenium
Selenium
 
Selenium using C# by Yogesh Kumar
Selenium using C# by  Yogesh KumarSelenium using C# by  Yogesh Kumar
Selenium using C# by Yogesh Kumar
 
Selenium
SeleniumSelenium
Selenium
 
Codeception
CodeceptionCodeception
Codeception
 
Automation Testing using Selenium Webdriver
Automation Testing using Selenium WebdriverAutomation Testing using Selenium Webdriver
Automation Testing using Selenium Webdriver
 
Selenium introduction and some feautures
Selenium introduction and some feauturesSelenium introduction and some feautures
Selenium introduction and some feautures
 
Learn SELENIUM at ASIT
Learn SELENIUM at ASITLearn SELENIUM at ASIT
Learn SELENIUM at ASIT
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium Testing with TestingBot.com
Selenium Testing with TestingBot.comSelenium Testing with TestingBot.com
Selenium Testing with TestingBot.com
 
Automated Web Testing using JavaScript
Automated Web Testing using JavaScriptAutomated Web Testing using JavaScript
Automated Web Testing using JavaScript
 
Selenium Introduction
Selenium IntroductionSelenium Introduction
Selenium Introduction
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 

Último

KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxTier1 app
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureDinusha Kumarasiri
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Velvetech LLC
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024StefanoLambiase
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)jennyeacort
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfLivetecs LLC
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...OnePlan Solutions
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceBrainSell Technologies
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprisepreethippts
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...OnePlan Solutions
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Matt Ray
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEEVICTOR MAESTRE RAMIREZ
 

Último (20)

KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptxKnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
KnowAPIs-UnknownPerf-jaxMainz-2024 (1).pptx
 
Implementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with AzureImplementing Zero Trust strategy with Azure
Implementing Zero Trust strategy with Azure
 
Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...Software Project Health Check: Best Practices and Techniques for Your Product...
Software Project Health Check: Best Practices and Techniques for Your Product...
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
Dealing with Cultural Dispersion — Stefano Lambiase — ICSE-SEIS 2024
 
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
Call Us🔝>༒+91-9711147426⇛Call In girls karol bagh (Delhi)
 
2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva2.pdf Ejercicios de programación competitiva
2.pdf Ejercicios de programación competitiva
 
How to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdfHow to Track Employee Performance A Comprehensive Guide.pdf
How to Track Employee Performance A Comprehensive Guide.pdf
 
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
Maximizing Efficiency and Profitability with OnePlan’s Professional Service A...
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
Advantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your BusinessAdvantages of Odoo ERP 17 for Your Business
Advantages of Odoo ERP 17 for Your Business
 
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort ServiceHot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
Hot Sexy call girls in Patel Nagar🔝 9953056974 🔝 escort Service
 
Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
CRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. SalesforceCRM Contender Series: HubSpot vs. Salesforce
CRM Contender Series: HubSpot vs. Salesforce
 
Odoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 EnterpriseOdoo 14 - eLearning Module In Odoo 14 Enterprise
Odoo 14 - eLearning Module In Odoo 14 Enterprise
 
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
Tech Tuesday - Mastering Time Management Unlock the Power of OnePlan's Timesh...
 
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
Open Source Summit NA 2024: Open Source Cloud Costs - OpenCost's Impact on En...
 
Cloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEECloud Data Center Network Construction - IEEE
Cloud Data Center Network Construction - IEEE
 

SKILLWISE_SELENIUM

  • 2.
  • 4. What is Selenium? Selenium is a free (open source) automated testing suite for web applications across different browsers and platforms. It is quite similar to HP Quick Test Pro (QTP) only that Selenium focuses on automating web-based applications.
  • 5. Selenium QTP Open Source Licensed Can Execute on Cross Browsers Can Execute on Some Specific version of I.E, Chrome and FireFox. Can Run on various Operating System Only For Windows Only Test Web Based Applications Can Test Desktop and Web Based Application No default Test Generation Report Default test result generation with in the tool.
  • 6. Selenium is not just a single tool but a suite of softwares, each catering to different testing needs of an organization. It has four components.
  • 7. Who Develop Selenium? Selenium was created by Jason Huggins in 2004. An engineer at ThoughtWorks, he was working on a web application that required frequent testing. Having realized that the repetitious manual testing of their application was becoming more and more inefficient, he created a JavaScript program that would automatically control the browser's actions. He named this program as the "JavaScriptTestRunner." Seeing potential in this idea to help automate other web applications , he made JavaScriptRunner open-source which was later re-named as Selenium Core
  • 8. Selenium IDE Selenium Integrated Development Environment (IDE) is the simplest framework in the Selenium suite and is the easiest one to learn. It is a Firefox plugin that you can install as easily as you can with other plugins.
  • 9. Installing Selenium IDE , FireBug and FirePath
  • 10. 1. Selenium IDE Setup 2. Creating Test Case and TestSuite 3. Debugging Selenium IDE (BreakPoint and Power Debugger) 4. Verify vs Assert 5. Handling Alerts, FileUpload 6. Pattern Matching a) globbing eg. command Target Value verifyTextPresent id=txt glob: taxyear* globbing can be * ? [] [] - used to match any single character e.g [0-9] e.g [a-c] b) Exact e.g. command Target Value verifyTextPresent id=txt exact: amit[0-9] c) RegEx command Target Value verifyTextPresent id=txt regexp: [Aa]mit[0-9]+ command Target Value verifyTextPresent id=txt regexpi: amit[0-9]+
  • 11.
  • 12.
  • 13.
  • 14.
  • 15. Create a Script Manually with Firebug Now, we shall recreate the same test case manually, by typing in the commands. This time, we will need to use Firebug. Step 1 Open Firefox and Selenium IDE. Type the base URL The record button should be OFF. Step 2 Click on the topmost blank line in the Editor.
  • 16. WebDriver is a web automation framework that allows you to execute your tests against different browsers
  • 17. WebDriver also enables you to use a programming language in creating your test scripts(not possible in Selenium IDE). You can now use conditional operations like if-then-else or switch-case You can also perform looping like do-while. Following programming languages are supported by WebDriver •Java •.Net •PHP •Python •Perl •Ruby You do not have to know all of them. You just need to be knowledgeable in one
  • 19. Setup WebDriver Step 1 - Install Java on your computer Step 2 - Install Eclipse IDE Step-3 Download WebDriver http://docs.seleniumhq.org/download/ Step -4 Download Chrome Driver http://chromedriver.storage.googleapis.com/index.html?path=2.14/
  • 20. 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.
  • 21. 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-OS combinations. Save time in 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.
  • 22. Download Selenium Server from http://docs.seleniumhq.org/download/
  • 23. Run the Hub Hub - The hub is the central point where you load your tests into. There should only be one hub in a grid. http://www.seleniumhq.org/download/ java -jar selenium-server-standalone-2.30.0.jar -role hub http://localhost:4444/grid/console Run the Node Nodes-Nodes are the Selenium instances that will execute the tests that you loaded on the hub. There can be one or more nodes in a grid. Nodes can be launched on multiple machines with different platforms and browsers. The machines running the nodes need not be the same platform as that of the hub. java –jar selenium-server-standalone-2.44.0.jar –role node –hub http://192.168.1.6:4444/grid/register -browser browser Name=firefox -port 5555
  • 24. Add Code on Hub Machine DesiredCapabilities capability = DesiredCapabilities.firefox(); capability.setBrowserName("firefox"); capability.setPlatform(Platform.LINUX); WebDriver driver = new RemoteWebDriver(new URL("http://192.168.1.6:4444/wd/hub"),capabil ity);