Diese Präsentation wurde erfolgreich gemeldet.
Die SlideShare-Präsentation wird heruntergeladen. ×

Selenium And Its Types

Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Anzeige
Wird geladen in …3
×

Hier ansehen

1 von 34 Anzeige
Anzeige

Weitere Verwandte Inhalte

Aktuellste (20)

Anzeige

Selenium And Its Types

  1. 1. PRESENTATION ON Selenium Uttara Saha Priyanshu Pal Dutta Vivek Kumar Verma Subhrajit Saikia Kaushik Baruah
  2. 2. The testing phase of the (SDLC) is where we focus on investigation and discovery. During the testing phase, developers find out whether their code and programming work according to customer requirements. Testin g
  3. 3. Properly tested software Reliability Security High performanc e Time saving Cost effectivene ss Customer Satisfaction
  4. 4. Manual testing of web apps involves: • Loading all the transactions • Downloading those transactions • Creating pass/fail reports for each of them • Validating the form • Taking screenshots for each validation
  5. 5. AUTOMATION TESTING Faster Execution More Accurate 01 02 05 04 Support Regression Testing Frequent Executions Lesser investment in human Resources 06 Supports Lights out Execution 03
  6. 6. 01 It is an open source tool which is used for automating the tests carried out on web browsers. 02 It provides a single interface that lets us write test scripts in programming languages like Ruby, Java, NodeJS, PHP, Perl, Python, and C#, among others. 03 It also supports parallel test execution which reduces time and increases the efficiency of tests. 04 It supports multiple browsers like Google Chrome, Safari, Firefox, Opera, etc. One can launch any browser by just giving simple commands. 05 06 Selenium is not just one tool or API but it composes many tools. ABOUT SELENIUM Selenium was introduced by Jason Huggins in 2004
  7. 7. It records the users’ actions in the browser for us, using existing Selenium commands, with parameters defined by the context of that element. IDE WebDriver uses browser automation APIs provided by browser vendors to control the browser and run tests. RC Selenium Remote Control(RC) is used to write web application tests in different PL. WebDriver Selenium Grid allows us to run test cases in different machines across different platforms. Grid SELENIUM SUITE
  8. 8. ABOUT SELENIUM IDE •The Selenium IDE is a browser extension that records and plays back a user’s actions. •Chrome, Firefox and Edge add-on that will do simple record-and-playback of interactions with the browser.
  9. 9. 01 •It offers an easy and simple record and playback features 05 •Walkthrough tests 02 •Supports Intelligent field selection 06 •Save tests as HTML, Ruby, Python, C# scripts, or any other format 03 •Auto-completion of Selenium commands 07 •Easy Debugging capabilities Features of Selenium IDE 04 •Supports automatic assertion of title for all pages 08 •Save tests as HTML, Ruby, Python, C# scripts, or any other format
  10. 10. Download and install Selenium IDE
  11. 11. Interface of Selenium IDE
  12. 12. LIMITATIONS OF SELENIUM IDE Not suitable for testing extensive data Connections with the database can not be tested 01 02 05 04 Does not support capturing of screenshots on test failures feature available for generating result reports Cannot handle the dynamic part of web-based applications 03
  13. 13. SELENIUM WEB DRIVER
  14. 14. DEFINITION Selenium WebDriver is a Tool that run automated tests accross different browsers
  15. 15. SELENIUM WEB DRIVER WORKS ON ALL DIFFERENT KIND OF BROWSERS
  16. 16. 01 Founded By Simon Stewart 02 Makes Provison to perform action on web elements 03 It is a cross Platform Testing Framework 04 Supports JAVA , C#, PHP, PYTHON ,Perl ,Ruby etc 05 Programming Interface to Run and Create Test cases 06 Supports Frameworks Like TestNG,JUnit,Nunit ABOUT SELENIUM WEB DRIVER
  17. 17. SELENIUM WEB DRIVER ARCHITECTURE
  18. 18. http over Http server Http over Http Server
  19. 19. LET'S UNDERSTAND! WITH A DEMO !!
  20. 20. As a user I want go to amazon.in site and search for Cricket Bat 1 From Amazon.in navigate to Tezpur university Website and navigate back to Amazon.in, Print the Title Close The Browser 2 3 DEMO SCRIPT
  21. 21. Can't Test Mobile Applications Limited Image Testing Limited Reporting .Third Party tools Like TestNG are required LIMITATIONS OF WEB DRIVER Can only perform Sequential Testing Hance Grid Is required
  22. 22. SELENIUM GRID
  23. 23. Selenium Grid: What is it ? • feature in Selenium • run test cases in different machines • across different platforms.
  24. 24. Selenium Grid: When to use ? • Testers should use Selenium Grid in the following circumstances: ⚬ To run tests on multiple browsers and their versions, different devices, and operating systems ⚬ To reduce the time that a test suite takes to complete execution
  25. 25. Selenium Grid: Architectur e HUB & Nodes
  26. 26. Selenium Grid: What does hub do ? • A Hub is a central point or a local machine that receives all the test requests and distributes them to the right nodes. • The machine which actually triggers the test case known as Hub. • There can be only one hub in a selenium grid. • The machine which is containing the hub triggers the test case, but you will see the browser being automated on other machines.
  27. 27. Selenium Grid: What does Node do ? • Nodes are the selenium instances which will execute the test cases that you loaded on the hub. • Nodes can be launched on multiple machines with different platforms and browsers.
  28. 28. Selenium Grid: Example : Using sequential tests Time : 27.09 s Using Parellel Execution Time: 16.09 s
  29. 29. ADVANTAGES OF SELENIUM: 1.Open-Source: 2.Language support: 3.Supports Operating Systems: 4.Support across browsers: 5.Support for programming languages and framework 6.Tests across devices 7.Constant updates 9.Ease of implementation 10.Reusability and Add-ons
  30. 30. DISADVANTAGES OF USING SELENIUM: 1) No reliable Technical Support from anybody. 2) It supports Web-based applications only. 3) Difficult to use, takes more time to create Test cases. 4) Difficult to Setup Test Environment when it compares to Vendor Tools like UFT, RFT, SilkTest etc... 5) Limited support for Image Testing. 6) New features may not work properly. 7) No Test Tool integration for Test Management. 8) No Built-in Reporting facility.
  31. 31. SALENIUM Vs Other Tools
  32. 32. KEY TAKEAWAYS What is TESTING ,types of Testing 1 What is SELENIUM 2 What is SELENIUM IDE and Its USE 3 4 What is SELENIUM Web Driver ,Its Architechture Demo Of Selenium Web Driver 1 What is SELENIUM Grid and Its Architecture 2 Advantages and Disadvantages of SELENIUM 3 4 SELENIUM VS OTHER TOOLS
  33. 33. THANK YOU

×