Eriophorum chamissonis C.A. Mey. (Chamisso’s cottongrass ...
Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is...
Transcript of Automation Testing WITH SELENIUM...automation [ aw-t uh-mey-sh uh n ] English origin Automation is...
Automation TestingWITH SELENIUM
Overview, from 90,000 ft.
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
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.
Pencil, Paper, Brain Calculatorvs
Paper Mail Emailvs
Map GPSvs
Toothbrush Electric Toothbrushvs
Tying your shoes Self-tying shoesvs
Folding your laundry Laundroidvs
Cashier Self-checkoutvs
Sweeping Roombavs
Driving your car Self-driving carvs
Toilet Paper Bidetvs
Chick-Fil-A Popeyesvs
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.
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
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.
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)
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.
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
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!!