SlideServe
Menu
Préférences
© SlideServe · v2026

Selenium Grid and Jenkins

kael avatar
23 diapositives · 1.5K Views · Jul 10, 2014

Selenium Grid and Jenkins. Outline. Why Selenium Grid Features / Components of Grid Grid Node and Grid Hub Why we thought of Selenium Grid Jenkins plug-in for selenium How to write tests – test design Working example. What is Selenium Grid . Usual Selenium Setup. Issues ?.

Selenium Grid and Jenkins - slide 1
01 / 23Selenium Grid and Jenkins
1 / 17

Télécharger la présentation

Selenium Grid and Jenkins
Une image / un lien ci-dessous est fourni (tel quel) pour télécharger la présentation

Politique de téléchargement : le contenu du site vous est fourni TEL QUEL pour votre information et votre usage personnel ; il ne peut être vendu, concédé sous licence ni partagé sur d’autres sites sans l’accord de son auteur.Le contenu vous est fourni TEL QUEL, pour votre information et votre usage personnel uniquement. Téléchargez la présentation en cliquant sur ce lien. Lors du téléchargement, si vous ne parvenez pas à télécharger une présentation, l’éditeur a peut-être supprimé le fichier de son serveur.Pendant le téléchargement, si vous ne parvenez pas à obtenir une présentation, le fichier a peut-être été supprimé par l’éditeur.

F I N

Plus de contenu associé

Transcription de la présentation
  1. Selenium Grid and Jenkins

  2. Outline • Why Selenium Grid • Features / Components of Grid • Grid Node and Grid Hub • Why we thought of Selenium Grid • Jenkins plug-in for selenium • How to write tests – test design • Working example

  3. What is Selenium Grid • Usual Selenium Setup

  4. Issues ? • RC (Remote Control) is quite slow. • Takes a lot of time to complete all your test suits • Not suitable for large scale testing • Can run a limited number of concurrent tests. • About six browsers On same RC

  5. Work around ..

  6. Work around… • Multiple RC’s to avoid the limitation on # of parallel tests. • Issues: • Test needs to be aware of the RC being used. • Have to maintain a series of RC’s.

  7. Solution : Selenium Grid • All your components • All Can be in different machines.. • All of them can communicate using selenese.

  8. Selenium Grid • A Distributed grid of RC’s. • Main two components • Grid Hub • Grid Nodes • Grid Hub • Allocates RC’s for tests • Keeps an eye on test sessions • Entry point for all your tests • Load balances test requests to the RC’s.

  9. Grid Node • It is configured and started using a command. • Provide all your capabilities in the command. • browserType • Version • Platform – i.e. Windows,linux,CentOS • applicationName – a specific name for your node.

  10. Grid Node • Capabilities are the unique attributes for a node. • Selenium Grid code uses “DesiredCapabilities” • This capability object is passed into RemoteWebDriver instance

  11. Selenium Grid Console • It shows you all the connected grid clients(nodes)

  12. More features • Supports parallel execution • We need to write our test to execute in parallel. • Use Junit4 ParallelComputer features.

  13. Features.. • Supports Selenium WebDriver / Remote WebDriver • Grid 2.0 is the latest, more features with it. • Easy to start the Grid Hub as well as the node.

  14. Why we thought of Using Selenium • Our product has a GWT (Google web tool kit) based front end. • Complex user scenarios involved. • Big , distributed team working on features. • Usual scrum team, a single tester • No enough time to do end – end UI tests.

  15. Why we thought of Selenium Grid • Different platforms to support • Windows/IE9 • XP/IE8 • CentOS/FF • 64 bit/ 32 bit machine combinations. • Limited time and Need to execute all in one shot. “Grid allows multiple environments and parallel executions….”

  16. Selenium Grid in Jenkins • Jenkins is a CI server. • Why Jenkins ? • Our code base is huge. • Needs to ensure clean builds. • It has lot of plugins. • Its free and open • Jenkins has a plug-in for selenium grid • Easy installation. • Selenium grid is executed within the Jenkins server. • You can start grid node by pointing to this grid url. • With your desired capabilities.

  17. Jenkins JOB

  18. Jenkins Selenium Plugin

  19. How we write Tests

  20. Our Demo Setup

  21. Demo.. • Show time..