Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is...

23
Automation Testing WITH SELENIUM Overview, from 90,000 ft.

Transcript of Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is...

Page 1: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Automation TestingWITH SELENIUM

Overview, from 90,000 ft.

Page 2: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

What we’ll cover today:1. We’ll cover what we will be covering today

2. What is Automation?• Its use in everyday life – group activity• Its use in business – the pros and cons

3. Things to consider when choosing to automate testing

4. What is Selenium? History and tools

5. Live Demo of Selenium IDE and Selenium Web Driver with NUnit Framework

Presenter
Presentation Notes
We’ll cover what we will be covering today What is Automation? Its use in everyday life – group activity Its use in business – the pros and cons Should testing be automated or not? What is Selenium? Its history Its tools Live Demo of Selenium IDE and Selenium Web Driver with NUnit Framework
Page 4: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

automation[ aw-tuh-mey-shuh n ]English origin Automation is the technology by which a process or procedure is performed with minimal human assistance. Automation or automatic control is the use of various control systems for operating equipment such as machinery, processes where there is minimal or reduced human intervention.

In control complexity, automation can range from simple on-off control to multi-variable high-level algorithms.

Presenter
Presentation Notes
English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.[1] Automation [2] or automatic control is the use of various control systems for operating equipment such as machinery, processes where there is minimal or reduced human intervention. Automation covers applications ranging from a household thermostat controlling a boiler, to a large industrial control system with ten of thousands of input measurements and output control signals. In control complexity, it can range from simple on-off control to multi-variable high-level algorithms. Kids Definition of automation 1. the method of making a machine, a process, or a system work without being directly controlled by a person. Automatic working of a machine, process, or system by mechanical or electronic devices that take the place of humans
Page 5: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation
Page 6: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Pencil, Paper, Brain Calculatorvs

Page 7: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Paper Mail Emailvs

Page 8: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Map GPSvs

Page 9: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Toothbrush Electric Toothbrushvs

Page 10: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Tying your shoes Self-tying shoesvs

Page 11: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Folding your laundry Laundroidvs

Page 12: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Cashier Self-checkoutvs

Page 13: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Sweeping Roombavs

Page 14: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Driving your car Self-driving carvs

Page 15: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Toilet Paper Bidetvs

Page 16: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Chick-Fil-A Popeyesvs

Page 17: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Automation in Business

Backing up your computer (Both Mac and PC) All-in-one messages app, and more…

• Automate social media posts by scheduling in advance

• Manage multiple social media accounts

• 49% fewer emails• 25% less meetings• 32% more productivity

Email-free communication

Automated social media posting

• Instantly find and correct over 250 types of grammatical mistakes

• Plagiarism detection

Automated grammar checking

Easy and secure online password management

• Multi-platform secure password manager

• One click logins on Chrome, Firefox, Safari, IE, Opera, Edge, Windows, Mac, iOS, Android.

Page 18: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Pros and Cons of Automation in Business

• Reduction in the labor force results in unemployment

– which means that the displaced workers may not

have the income to purchase the products created

with automation – causing economic downturn

• When growth and change occurs, automated

processes are not as flexible. These changes can be

daunting and expensive.

• Higher initial set up cost in the short term

PROS CONS

• Increased productivity

• Improved quality/increased predictability of quality

• Improved consistency of processes/product/output

• Replaces human operators in tasks that involve:

o hard physical or monotonous work

o occupational injuries and danger (e.g., fewer

strained backs from lifting heavy objects, fire, etc.)

• Saves businesses money in the long term by replacing

salary and hourly wages to employees

Page 19: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Things to consider when choosing to automate testing.

We should automate testing because...• Confirmation of the known – checks to ensure the

application is working after changes have been made

• Fast execution of checks – writing automated scripts take a while to set up, but always faster than manually testing

• Frees up the time of to do other tasks – can spend time on exploratory testing of new features

• The development team can contribute – when the tests are written in the same language as the application, responsibility can be shared

But sometimes …• It can be time-consuming to setup, and maintain

• It can create a false sense of quality assurance – it will only test what’s been coded to test, well-designed test scenarios are needed

• The harvest is plenty, but the laborers are few

• It’s Not always reliable – tests can fail due to issues unrelated to the functionality of the application

• It doesn’t encompass the whole scope of what testing actually is – lacks human input and intelligence which is essential in the testing field.

Page 20: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

What is Selenium, really?Free (open source) tool, an automated testing suite (multiple tools) for testing web applications across different browsers and platforms

Works on any operating system Tests can be executed on any browser

Other open source tools include… Appium, Robotium, Cucumber, Watir, Sikuli, Jmeter, WatiN, SoapUI, Katalon Studio, Tarantula, Testlink, Windmill, TestNG

Many language bindings (Ruby, C#, Java, Python)

Page 21: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

200820062005

The History of Selenium2004

Jason Huggins from the company ThoughtWorkscreated Javascript Test Runner

A competitor, Mercury Interactive, developed QTP (Quick Test Pro)

ThoughtWorks renamed Javascript Test Runner to Selenium Core as somewhat of a joke (The element Selenium counteracts Mercury poisoning)

Paul Hammond created Selenium RC as a result of the issues with Selenium Core and the “same origin policy” issue

Selenium Web Driver was created as the first cross platform testing framework that can automate the browser from the operating system

Shinya, of Japan, created Selenium IDE as a FireFoxextension – record and playback feature

Selenium Web Driver was merged with RC to become Selenium 2.

Page 22: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Works Cited

• https://www.meistertask.com/blog/12-things-youre-doing-every-day-that-can-be-automated/

• https://www.guru99.com/introduction-to-selenium.html• https://devqa.io/test-automation-advantages-and-disadvantages/• www.seleniumhq.org• https://en.wikipedia.org/wiki/Automation• www.edureka.com• www.pluralsight.com• www.Lynda.com

Page 23: Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is the technology by which a process or procedure is performed with minimal human assistance.Automation

Example Tutorials from the Lunch and Learn

• Simple Google Search Test Pt. 1

• Simple Google Search Test Pt. 2

• Simple Google Search Test Pt. 3

Make sure you subscribe to my channel, to be notified when new testing tutorials are available!!