+ All Categories
Home > Engineering > Continuous Delivery With Selenium Grid And Docker

Continuous Delivery With Selenium Grid And Docker

Date post: 06-Apr-2017
Category:
Upload: barbara-gonzalez
View: 79 times
Download: 7 times
Share this document with a friend
21
BOARD PRESENTATION 201 7 CONTINUOUS DELIVERY WITH SELENIUM GRID AND DOCKER Selenium Grid and Docker BY BARBARA GONZALEZ +
Transcript
Page 1: Continuous Delivery With Selenium Grid And Docker

B O A R D P R E S E N TAT I O N

2017

C O N T I N U O U S D E L I V E RY W I T H S E L E N I U M G R I D A N D D O C K E R

Selenium Grid and DockerBY B A R B A R A G O N Z A L E Z

+

Page 2: Continuous Delivery With Selenium Grid And Docker

Continuous Delivery

Page 3: Continuous Delivery With Selenium Grid And Docker

Benefits of Continuous Delivery

Believable Progress

User Feedback

Reduced Deployme

nt Risk

Page 4: Continuous Delivery With Selenium Grid And Docker

Automated Tests

Bug Detection Mechanis

m

Courage To Make Big Changes

Minimize Resources and Costs

Page 5: Continuous Delivery With Selenium Grid And Docker

The Test Pyramid

Page 6: Continuous Delivery With Selenium Grid And Docker

Design Framework to End-To-End Testing

Page 7: Continuous Delivery With Selenium Grid And Docker

B O A R D P R E S E N TAT I O N

Our ProblemRun large test suites for multiple products as part of our continuous integration process with a very small number of QA Analysts and addressing all the security concerns.

$ $ $ $ $ $ $

$ $ $ $ $ $ $

Page 8: Continuous Delivery With Selenium Grid And Docker

Selenium Grid

• Run your tests against different browsers, operating systems, and machines all at the same time.

• Save time in the execution of your test suite.

Page 9: Continuous Delivery With Selenium Grid And Docker

Selenium Grid

Page 10: Continuous Delivery With Selenium Grid And Docker

Docker

• Secure by default.

• Build for scale.

• Extensible and flexible.

Page 11: Continuous Delivery With Selenium Grid And Docker

Our Solution (Mirage)

Page 12: Continuous Delivery With Selenium Grid And Docker

The Grid

Dulce Garcia
Revenue Expe
Page 13: Continuous Delivery With Selenium Grid And Docker

The Results

Dulce Garcia
Revenue Expe
Page 14: Continuous Delivery With Selenium Grid And Docker

Compose File

Dulce Garcia
Revenue Expe
Page 15: Continuous Delivery With Selenium Grid And Docker

Some Scripts• Application Up

• docker-compose docker-compose.yml –project-name mirage up -d

• Scale application• docker-compose docker-compose.yml –project-name mirage scale

firefox=50 chrome=50

• Application Down• docker-compose docker-compose.yml –project-name mirage down -d

Dulce Garcia
Revenue Expe
Page 16: Continuous Delivery With Selenium Grid And Docker

Some Code• Selenium

• <add key="hubUrl" value="http://10.202.10.186:4445/wd/hub" />• var driver = new RemoteWebDriver(hubUrl, desiredCapabilities);• driver.FindElement(By.Id(”myId"));

• Protractor• exports.config = { framework: 'jasmine', seleniumAddress: params.hubUrl}• element(by.name('username'))

Dulce Garcia
Revenue Expe
Page 17: Continuous Delivery With Selenium Grid And Docker

B O A R D P R E S E N TAT I O N

The Difference

Develop against

local grid

Increased Reliability

and Stability

Scheduled and

ad/hoc Test Runs

for all products

Write tests using

different framework

s

Page 18: Continuous Delivery With Selenium Grid And Docker

Our Future

• Move Grid to Swarm Cluster in Azure.

• Docker Container for IE.

• Improve Mobile Emulation.

Dulce Garcia
Revenue Expe
Page 20: Continuous Delivery With Selenium Grid And Docker

B O A R D P R E S E N TAT I O N

Weekend ?

Page 21: Continuous Delivery With Selenium Grid And Docker

B O A R D P R E S E N TAT I O N

Thank You• Special Thanks to:• Best Quality Engineer in the World! Today, our Selenium Grid Engineer• Mamatha Medasani

B A R B A R A G O N Z A L E ZB G P E R E D A @ G M A I L . C O M


Recommended