SlideShare una empresa de Scribd logo
1 de 46
Presentation @ selemium tool Jagdish Patel Sr. QA Engineer
[object Object],[object Object],[object Object],[object Object],[object Object],Topics for today's presentation © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],Functional testing © Copyright 2008: Gateway Group of companies.
[object Object],Regression testing © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Compatibility testing © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],Test Case & Test Suite © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],What is Selenium? © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Why should we care? © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],Where to get Selenium © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],Selenium core concepts © Copyright 2008, Gateway Group of companies.
How Selenium Works © Copyright 2008, Gateway Group of companies.
[object Object],Platforms supported by Selenium © Copyright 2008, Gateway Group of companies. Browser Selenium IDE Selenium RC Selenium Core Firefox 3 Record and playback tests Start browser, run tests Run test Firefox 2 Record and playback tests Start browser, run tests Run test IE 6 not supported Start browser, run tests Run test IE 7 not supported Start browser, run tests Run test Safari 3 not supported Start browser, run tests Run test Safari 2 not supported Start browser, run tests Run test Opera 9 not supported Start browser, run tests Run test
[object Object],Platforms supported by Selenium.. © Copyright 2008, Gateway Group of companies. OS Selenium IDE Selenium RC Selenium Core Windows Works in Firefox 2+ Start browser, run tests Run test OS X Works in Firefox 2+ Start browser, run tests Run test Linux Works in Firefox 2+ Start browser, run tests Run test Solaris Works in Firefox 2+ Start browser, run tests Run test
[object Object],Platforms supported by Selenium.. © Copyright 2008, Gateway Group of companies. Language Selenium IDE Selenium RC Selenium Core C# Generate code Library ("driver") support n/a Java Generate code Library ("driver") support n/a Perl Generate code Library ("driver") support n/a PHP Generate code Library ("driver") support n/a Python Generate code Library ("driver") support n/a Ruby Generate code Library ("driver") support n/a
Selenium Core © Copyright 2008, Gateway Group of companies. ,[object Object],[object Object],[object Object],[object Object]
[object Object],[object Object],[object Object],[object Object],Selenium Core.. © Copyright 2008, Gateway Group of companies.
Platform and Browser Compatibility: Windows:   Internet Explorer 6.0 and 7.0  Firefox 0.8 to 2.0  Mozilla Suite 1.6+, 1.7+  Seamonkey 1.0  Opera 8 & 9 Mac OS X: Safari 2.0.4+  Firefox 0.8 to 2.0  Camino 1.0a1  Mozilla Suite 1.6+, 1.7+  Seamonkey 1.0  Not yet supported: OmniWeb  Selenium Core.. © Copyright 2008, Gateway Group of companies.
Linux:   Firefox 0.8 to 2.0  Mozilla Suite 1.6+, 1.7+  Konqueror  Opera 8 & 9 Selenium Core.. © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],Installing Selenium Core © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],How does Selenium Core Work © Copyright 2008, Gateway Group of companies.
Running Selenium's Test Suite © Copyright 2008, Gateway Group of companies.
Test Suite Application being  tested Test Cases Steps of the test case Execution Control
Run All Tests Run Selected Test Pause/Play Execution Step through Execution Control Speed of  Execution Highlight Elements in  the Execution View the DOM of the current Page being tested Summary of the Test View the log of the  current execution
[object Object],[object Object],[object Object],[object Object],Limitation of  Selenium Core © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],Selenium IDE © Copyright 2008, Gateway Group of companies.
The root of web application you want to test The list of actions in the actual test case to execute The log of the events that were executed, including any errors or warning that have occurred
Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command  Record test actions Specify commands, including asserts
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Selenium IDE.. © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Selenium IDE.. © Copyright 2008, Gateway Group of companies.
Creating a Test Suite ,[object Object],<html xmlns=&quot;http://www.w3.org/1999/xhtml&quot; xml:lang=&quot;en&quot; lang=&quot;en&quot;> <head>  <meta content=&quot;text/html; charset=UTF-8&quot; http-equiv=&quot;content-type&quot; /> <title>Test Suite</title></head> <body>  <table id=&quot;suiteTable&quot; cellpadding=&quot;1&quot; cellspacing=&quot;1&quot; border=&quot;1&quot; class=&quot;selenium&quot;><tbody> <tr><td><b>Test Suite</b></td></tr> <tr><td><a href=&quot;hotel.html&quot;>hotel</a></td></tr> <tr><td> <a href=&quot;Restaurant.html&quot;>Restaurant</a></td> </tr><tr><td> <a href=&quot;Meeting.html&quot;>Meeting</a></td></tr> <tr><td> <a href=&quot;Vacancies.html&quot;>Vacancies</a></td></tr> </tbody></table> </body> </html>
[object Object],[object Object],Selenium-Remote Control © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],Selenium-Remote Control.. © Copyright 2008, Gateway Group of companies.
Selenium-Remote Control © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Selenium-Remote Control.. © Copyright 2008, Gateway Group of companies.
[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],Selenium-Remote Control.. © Copyright 2008, Gateway Group of companies.
Selenium-Remote Control.. © Copyright 2008, Gateway Group of companies.
(+) Java (JUnit)‏ import com.thoughtworks.selenium.*; import junit.framework.*; public class ChagallTest extends TestCase {  private Selenium browser; public void setUp() {  browser = new DefaultSelenium(&quot;localhost&quot;, 4444, &quot;*firefox&quot;, &quot;http://10.0.1.106/chagallhotel/&quot;); browser.start();  } public void testGoogle() {  browser.open(&quot;http://10.0.1.106/chagallhotel/admin&quot;); browser.type(&quot;q&quot;, &quot;ld&quot;); browser.click(&quot;btnG&quot;);  browser.waitForPageToLoad(&quot;5000&quot;); assertEquals(&quot; &quot;, browser.getTitle()); } public void tearDown() {  browser.stop(); } } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
(+) C# (NUnit)‏ using Selenium; using Nunit.Framework; namespace MyTests { [TestFixture] public class ChagallTest {  private ISelenium browser  public void SetUp() { browser = new DefaultSelenium(&quot;localhost&quot;, 4444,&quot;*firefox&quot;,&quot;http://http://10.0.1.106/chagallhotel/&quot;); browser.Start(); } public void testChagall() { browser.Open(&quot;http://10.0.1.106/chagallhotel/&quot;); browser.Type(&quot;q&quot;, &quot;ld&quot;);  browser.Click(&quot;btnG&quot;); browser.WaitForPageToLoad(&quot;5000&quot;); Assert.AreEqual(&quot; &quot;, browser.GetTitle()); }  public void TearDown() {  browser.Stop();  } } } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
(+) PHP (PHPUnit)‏ require_once 'Testing/Selenium.php'; require_once 'PHPUnit/Framework/TestCase.php'; class ChagallTest extends PHPUnit_Framework_TestCase { private $browser;  public function setUp() { $this->browser = new Testing_Selenium(&quot;*firefox&quot;, &quot;http://http://10.0.1.106/chagallhotel/&quot;); $this->browser->start();  } public function tearDown() {$this->browser->stop();} public function testChagall()‏ { $this->browser->open(&quot;/webhp?hl=en&quot;); $this->browser->type(&quot;q&quot;, &quot;ld&quot;); $this->browser->click(&quot;btnG&quot;); $this->browser->waitForPageToLoad(10000); $this->assertRegExp(&quot; &quot;, $this->browser->getTitle()); }  } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
[object Object],© Copyright 2008, Gateway Group of companies.
[object Object],© Copyright 2008, Gateway Group of companies.
Anand Tiwari Thanks to... © Copyright 2008, Gateway Group of companies.
Fulfilling  Customer Needs ,[object Object],[object Object]
Cost Analysis ,[object Object],[object Object]
Strengths and Advantages ,[object Object]
Next Steps of Action ,[object Object]

Más contenido relacionado

La actualidad más candente

Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011Yuriy Gerasimov
 
Selenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsSelenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsTSundberg
 
Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Seleniumvivek_prahlad
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorialmetapix
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaRakesh Hansalia
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With SeleniumDeepak Mittal
 
Automated UI testing with Selenium
Automated UI testing with SeleniumAutomated UI testing with Selenium
Automated UI testing with SeleniumYuriy Gerasimov
 
Selenium interview questions
Selenium interview questionsSelenium interview questions
Selenium interview questionsgirichinna27
 
Automatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsAutomatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsJoseph Chiang
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using SeleniumWeifeng Zhang
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaEdureka!
 
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and BeyondSamit Badle
 

La actualidad más candente (20)

Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011Automated UI testing. Selenium. DrupalCamp Kyiv 2011
Automated UI testing. Selenium. DrupalCamp Kyiv 2011
 
Integration Testing in Python
Integration Testing in PythonIntegration Testing in Python
Integration Testing in Python
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium (1)
Selenium (1)Selenium (1)
Selenium (1)
 
Selenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applicationsSelenium WebDriver - Test automation for web applications
Selenium WebDriver - Test automation for web applications
 
Web Test Automation with Selenium
Web Test Automation with SeleniumWeb Test Automation with Selenium
Web Test Automation with Selenium
 
Selenium Ide Tutorial
Selenium Ide TutorialSelenium Ide Tutorial
Selenium Ide Tutorial
 
Selenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansaliaSelenium webdriver course content rakesh hansalia
Selenium webdriver course content rakesh hansalia
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Automated UI testing with Selenium
Automated UI testing with SeleniumAutomated UI testing with Selenium
Automated UI testing with Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium
SeleniumSelenium
Selenium
 
Selenium interview questions
Selenium interview questionsSelenium interview questions
Selenium interview questions
 
Introduction to Selenium Web Driver
Introduction to Selenium Web DriverIntroduction to Selenium Web Driver
Introduction to Selenium Web Driver
 
Automatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabsAutomatic Functional Testing with Selenium and SauceLabs
Automatic Functional Testing with Selenium and SauceLabs
 
Automated Web Testing Using Selenium
Automated Web Testing Using SeleniumAutomated Web Testing Using Selenium
Automated Web Testing Using Selenium
 
Selenium topic 1- Selenium Basic
Selenium topic 1-  Selenium BasicSelenium topic 1-  Selenium Basic
Selenium topic 1- Selenium Basic
 
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | EdurekaSelenium Interview Questions and Answers For Freshers And Experienced | Edureka
Selenium Interview Questions and Answers For Freshers And Experienced | Edureka
 
Selenium IDE and Beyond
Selenium IDE and BeyondSelenium IDE and Beyond
Selenium IDE and Beyond
 

Similar a Selenium

test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxSyedZaeem9
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automationSrikanth Vuriti
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...sophiabelthome
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium Rohit Thakur
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxSyntax Technologies
 
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdfModule-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdfdevika266518
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVAmahirayavarapu
 
Selenium Testing with TestingBot.com
Selenium Testing with TestingBot.comSelenium Testing with TestingBot.com
Selenium Testing with TestingBot.comtestingbot
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guidebigspire
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsQUONTRASOLUTIONS
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and SeleniumKarapet Sarkisyan
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With SeleniumJodie Miners
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using SeleniumNikhil Kapoor
 

Similar a Selenium (20)

Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
BCS Selenium Workshop
BCS Selenium WorkshopBCS Selenium Workshop
BCS Selenium Workshop
 
QSpiders - Automation using Selenium
QSpiders - Automation using SeleniumQSpiders - Automation using Selenium
QSpiders - Automation using Selenium
 
Selenium Primer
Selenium PrimerSelenium Primer
Selenium Primer
 
test-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptxtest-automation-selenium-160216124839.pptx
test-automation-selenium-160216124839.pptx
 
Selenium test automation
Selenium test automationSelenium test automation
Selenium test automation
 
Selenium
SeleniumSelenium
Selenium
 
International journal of applied sciences and innovation vol 2015 - no 1 - ...
International journal of applied sciences and innovation   vol 2015 - no 1 - ...International journal of applied sciences and innovation   vol 2015 - no 1 - ...
International journal of applied sciences and innovation vol 2015 - no 1 - ...
 
Steps to write Selenium
Steps to write Selenium  Steps to write Selenium
Steps to write Selenium
 
What is selenium
What is seleniumWhat is selenium
What is selenium
 
What is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptxWhat is Selenium Introduction to Selenium Testing.pptx
What is Selenium Introduction to Selenium Testing.pptx
 
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdfModule-1_Getting-Started_with_selenium_and_Java_basics.pdf
Module-1_Getting-Started_with_selenium_and_Java_basics.pdf
 
Selenium by using JAVA
Selenium by using JAVASelenium by using JAVA
Selenium by using JAVA
 
Selenium Testing with TestingBot.com
Selenium Testing with TestingBot.comSelenium Testing with TestingBot.com
Selenium Testing with TestingBot.com
 
Learn Selenium - Online Guide
Learn Selenium - Online GuideLearn Selenium - Online Guide
Learn Selenium - Online Guide
 
Selenium Basics by Quontra Solutions
Selenium Basics by Quontra SolutionsSelenium Basics by Quontra Solutions
Selenium Basics by Quontra Solutions
 
Test Automation and Selenium
Test Automation and SeleniumTest Automation and Selenium
Test Automation and Selenium
 
Automated Web Testing With Selenium
Automated Web Testing With SeleniumAutomated Web Testing With Selenium
Automated Web Testing With Selenium
 
Test Automation Using Selenium
Test Automation Using SeleniumTest Automation Using Selenium
Test Automation Using Selenium
 
Selenium
SeleniumSelenium
Selenium
 

Último

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 

Último (20)

Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 

Selenium

  • 1. Presentation @ selemium tool Jagdish Patel Sr. QA Engineer
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11. How Selenium Works © Copyright 2008, Gateway Group of companies.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17. Platform and Browser Compatibility: Windows: Internet Explorer 6.0 and 7.0 Firefox 0.8 to 2.0 Mozilla Suite 1.6+, 1.7+ Seamonkey 1.0 Opera 8 & 9 Mac OS X: Safari 2.0.4+ Firefox 0.8 to 2.0 Camino 1.0a1 Mozilla Suite 1.6+, 1.7+ Seamonkey 1.0 Not yet supported: OmniWeb Selenium Core.. © Copyright 2008, Gateway Group of companies.
  • 18. Linux: Firefox 0.8 to 2.0 Mozilla Suite 1.6+, 1.7+ Konqueror Opera 8 & 9 Selenium Core.. © Copyright 2008, Gateway Group of companies.
  • 19.
  • 20.
  • 21. Running Selenium's Test Suite © Copyright 2008, Gateway Group of companies.
  • 22. Test Suite Application being tested Test Cases Steps of the test case Execution Control
  • 23. Run All Tests Run Selected Test Pause/Play Execution Step through Execution Control Speed of Execution Highlight Elements in the Execution View the DOM of the current Page being tested Summary of the Test View the log of the current execution
  • 24.
  • 25.
  • 26. The root of web application you want to test The list of actions in the actual test case to execute The log of the events that were executed, including any errors or warning that have occurred
  • 27. Execution Commands Try the test in the Web based TestRunner Reference of the currently selected command Record test actions Specify commands, including asserts
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33. Selenium-Remote Control © Copyright 2008, Gateway Group of companies.
  • 34.
  • 35.
  • 36. Selenium-Remote Control.. © Copyright 2008, Gateway Group of companies.
  • 37. (+) Java (JUnit)‏ import com.thoughtworks.selenium.*; import junit.framework.*; public class ChagallTest extends TestCase { private Selenium browser; public void setUp() { browser = new DefaultSelenium(&quot;localhost&quot;, 4444, &quot;*firefox&quot;, &quot;http://10.0.1.106/chagallhotel/&quot;); browser.start(); } public void testGoogle() { browser.open(&quot;http://10.0.1.106/chagallhotel/admin&quot;); browser.type(&quot;q&quot;, &quot;ld&quot;); browser.click(&quot;btnG&quot;); browser.waitForPageToLoad(&quot;5000&quot;); assertEquals(&quot; &quot;, browser.getTitle()); } public void tearDown() { browser.stop(); } } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
  • 38. (+) C# (NUnit)‏ using Selenium; using Nunit.Framework; namespace MyTests { [TestFixture] public class ChagallTest { private ISelenium browser public void SetUp() { browser = new DefaultSelenium(&quot;localhost&quot;, 4444,&quot;*firefox&quot;,&quot;http://http://10.0.1.106/chagallhotel/&quot;); browser.Start(); } public void testChagall() { browser.Open(&quot;http://10.0.1.106/chagallhotel/&quot;); browser.Type(&quot;q&quot;, &quot;ld&quot;); browser.Click(&quot;btnG&quot;); browser.WaitForPageToLoad(&quot;5000&quot;); Assert.AreEqual(&quot; &quot;, browser.GetTitle()); } public void TearDown() { browser.Stop(); } } } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
  • 39. (+) PHP (PHPUnit)‏ require_once 'Testing/Selenium.php'; require_once 'PHPUnit/Framework/TestCase.php'; class ChagallTest extends PHPUnit_Framework_TestCase { private $browser; public function setUp() { $this->browser = new Testing_Selenium(&quot;*firefox&quot;, &quot;http://http://10.0.1.106/chagallhotel/&quot;); $this->browser->start(); } public function tearDown() {$this->browser->stop();} public function testChagall()‏ { $this->browser->open(&quot;/webhp?hl=en&quot;); $this->browser->type(&quot;q&quot;, &quot;ld&quot;); $this->browser->click(&quot;btnG&quot;); $this->browser->waitForPageToLoad(10000); $this->assertRegExp(&quot; &quot;, $this->browser->getTitle()); } } Programming a Selenium RC Test © Copyright 2008, Gateway Group of companies.
  • 40.
  • 41.
  • 42. Anand Tiwari Thanks to... © Copyright 2008, Gateway Group of companies.
  • 43.
  • 44.
  • 45.
  • 46.