07/21/2021 Kuhnke, Mark Province Automated Testing Tool .

2y ago
18 Views
3 Downloads
1,020.78 KB
65 Pages
Last View : 29d ago
Last Download : 3m ago
Upload by : Kamden Hassan
Transcription

Automated testing tool similaritiesand differencesIT814: Software Quality AssuranceWorkshop presentationAparna Dasgupta, Niels Hansen, AnnikaKuhnke, Mark Province07/21/2021

Organization IntroductionJUnitSeleniumJenkinsSimilarities and differencesConclusions2

Resources used Bechtold, S., Brannen, S., Link, J., Merdes, M., Philipp, M., de Rancourt, J., Stein, C. (12 April2021). JUnit 5 User Guide. JUnit.org. https://junit.org/junit5/docs/current/user-guide/ JUnit - Quick Guide. t/junit quick guide.htm JUnit - Overview. TutorialsPoint. https://www.tutorialspoint.com/junit/junit overview.htm The Selenium Browser Automation Project. n/en/ Edureka. (22 March 2020). Selenium Full Course - Learn Selenium in 12 Hours SeleniumTutorial For Beginners Edureka. Youtube.https://www.youtube.com/watch?v FRn5J31eAMw Selenium - IDE. TutorialsPoint. https://www.tutorialspoint.com/selenium/selenium ide.htm Jenkins User Documentation. Jenkins.io. https://www.jenkins.io/doc/ Shrikanth, B. (17 December 2020). Jenkins for Test Automation. nkins-for-test-automation3

Introduction - Automated vs manualtestingAutomatedManual Done using tools and scripts Done by hand More testing in less time:greater efficiency Time-consuming and lessefficient Most tasks are automatable,including real user simulations Entirely manual tasks Easy to ensure greater testcoverage Difficult to ensure sufficient testcoverage4

Introduction - Our case study5

Introduction - Our case study6

JUnit What is JUnit?JUnit historyRegression-testing frameworkFeaturesHow JUnit worksAnnotationsDisplay namesAssertionsAssumptionsConditional test executionDynamic testsTest suitesBest practicesDemonstration7

What is JUnit? Unit testing framework for the Javaprogramming languageOriginally written by Erich Gamma and KentBeckPart of the xUnit family8

JUnit history Beck developed the first xUnit, SUnit, in themid-90’sBeck and Gamma developed JUnit on a flightJUnit has become the standard tool fortest-driven development in JavaxUnit tools have since been developed formany other languages9

Regression-testing framework JUnit is a regression-testing framework.It creates a relationship betweendevelopment and testing.Modifications in the code will not break yoursystem without your knowledge.10

Features AssertsTest setup and teardownException testingTest suitesParameterized testingRulesIntegration with popular build systems11

How JUnit works12

Annotations Tags applied to methods or classesTell JUnit when to run a test methodPredefined and can be implemented directlyInclude Test, BeforeEach, AfterEach,BeforeAll, AfterAll, and Disabled13

Display names Declare custom display names with specialcharactersDisplayed in test reportsDefault coresIndicativeSentences14

Assertions Contains methods or statements used to write testsImportant methods ls(boolean expected, boolean actual)assertFalse(boolean condition)assertTrue(boolean condition)assertNotNull(Object object)assertNull(Object object)assertNotSame(boolean expected, boolean actual)assertSame(boolean expected, boolean actual)fail()fail(String message)assertArrayEquals(array expected, array actual)assertArrayEquals(String message, array expected, arrayactual)15

Assumptions Support conditional test executionImportant methods include:–––assumeFalse(boolean assumption)assumeTrue(boolean assumption)assumingThat(boolean assumption, executable)16

Conditional test significant change under the hood forWebDriver is the complete W3C complianceof the WebDriver APIsMore reliable and efficient cross browsertestsDeprecation of JSON Wire ProtocolRelative locators like above, below, toLeftofetc were added43

WebDriver architecture44

WebDriver installation Install Java SDK wnloads.htmlInstall Eclipse IDE http://www.eclipse.org/downloads/Install Selenium WebDriver files https://www.selenium.dev/downloads/45

WebDriver installation46

WebDriver methods Browser methods: Perform actions on a browser. Example:getcurrenturl(), gettitle(), etc.WebElements methods: Perform actions on WebElements.Example: Sendkeys(), getText(), etc.Navigation methods: Load a web page, refresh a web page,or move backwards and forwards in our browser’s history.Example: to(), back(), forward (), etc.Wait methods: Pause between execution statements.Example: pageLoadTimeOut(), ImplicitWait(), etc.Switch methods: Switch to alerts, windows, and frames. Analert is also known as a pop-up. Example: Switchto()47

WebDriver element locating strategies8 built-in element locating strategies: LocatorDescriptionclass nameLocates elements whose class name contains the search value (compound class names arenot permitted)css selectorLocates elements matching a CSS selectoridLocates elements whose ID attribute matches the search valuenameLocates elements whose NAME attribute matches the search valuelink textLocates anchor elements whose visible text matches the search valuepartial link textLocates anchor elements whose visible text contains the search value. If multiple elements arematching, only the first one will be selected.tag nameLocates elements whose tag name matches the search valuexpathLocates elements matching an XPath expression5 relative locators (above, below, toLeftof,toRightof, near)48

Selenium GridSelenium Grid allows the execution ofWebDriver scripts on remote machines (virtualor real) by routing commands sent by the clientto remote browser instances. It aims to providean easy way to run tests in parallel on multiplemachines.49

Grid features Central entry point for all testsManagement and control of the nodes /environment where the browsers runScalingRunning tests in parallelCross platform testingLoad balancingReduce the time it takes for the test suite tocomplete a test passGrid 4 offers scalability, observability50

Grid architecture51

Selenium Grid installation Different modes of installation:–––– StandaloneHub and NodeDistributedDockerSelenium server(Grid ) can be downloaded from https://www.selenium.dev/downloads/Complete setup and configuration instructions d 4/setting up your own grid/52

Selenium Demonstration53

10 minute break54

Jenkins What is Jenkins? Jenkins history How Jenkins was built How Jenkins works Various features of Jenkins Demonstration55

What is Jenkins? Open sourceCI/CDWindows/Linux/macOS56

Jenkins history2004 (Hudson) 2011 (Jenkins) 2016 2017 2018 2020 present57

Jenkins – How it was built 58

Jenkins – How it works59

Jenkins – Various features Easy installation Easy configuration Available plugins Extensible Easy distribution Jenkins is free60

Jenkins - Demonstration61

SimilaritiesAll Free and open sourceClient and server-side testingFixtures and group-fixturesIntegrate with each otherGroupingJUnit and Selenium Selenium and Jenkins Support multiple languages Integrates easily with multipleplatformsAre libraries/importsJUnit and Jenkins 62Written in Java

Differences Primary usage Mocks Distributed tests Licensing63

Summary Introduction JUnit Selenium Jenkins Similarities and differences Conclusions64

Conclusions Fit your testing tool to your use caseJUnit for unit testing Java programsSelenium for web testingJenkins is an industry standard for CI/CDUse tools in combination65

donated Selenium IDE to the Selenium project in the year 2006 Patrick Lightbody creates Selenium Grid to support parallel testing Birth of Selenium RC by Paul Hammant to counter same orginin policy (Selenium 1) Simon Stewart created Selenium WebDriver circa 2006 In 2008, RC and WebDriver are merged in

Related Documents:

Matthew 27 Matthew 28 Mark 1 Mark 2 Mark 3 Mark 4 Mark 5 Mark 6 Mark 7 Mark 8 Mark 9 Mark 10 Mark 11 Mark 12 Mark 13 Mark 14 Mark 15 Mark 16 Catch-up Day CORAMDEOBIBLE.CHURCH/TOGETHER PAGE 1 OF 1 MAY 16 . Proverbs 2—3 Psalms 13—15 Psalms 16—17 Psalm 18 Psalms 19—21 Psalms

GE Power NETWORK SECURITY TIL FOR MARK V, VI AND VIE CONTROLLER PLATFORMS APPLICATION All control panels using Mark V or Mark Ve and Mark VI or Mark VIe control platforms. Includes the following Mark VI, VIe, Mark V, Ve generation controllers: EX2100, EX2100e, LS2100, LS2100e, and Mark VIeS systems. All "Windows" based HMI

Mark V Premium, Mark V Max, Mark VII Max, Mark X Premium, and Mark X Max Electric Airless Sprayers For Portable Airless Spraying of Architectural Coatings and Paints. For professional use only. Not approved for use in European explosive atmosphere locations. 3300 psi (227 bar, 22.7 MPa) Maximum Working Pressure IMPORTANT SAFETY INSTRUCTIONS

August 2, 2021 15 August 2, 2021 16 August 2, 2021 17 August 3, 2021 18 August 4, 2021 19 August 5, 2021 20 August 6, 2021 21 August 9, 2021 22 August 9, 2021 23 August 9, 2021 24 August 10, 2021 25 August 11, 2021 26 August 12, 2021 27 August 13, 2021 28 August 16, 2021 29 August 16, 2021 30 August 16, 2021 31

2022 ICPA Mock Mark Scheme Page 5 of 12 22 months from priority date . 13 May 2020 22 months . 1 mark Sunday, 13 March 2022 . 1 mark . Non-working day, so deadline rolls over to Monday, 14 March 2022 . 1 mark . 3 months from International Search Report . 9 September 2021 3 months . 1 mark 9 December 2021 (Thursday) 1 mark . Therefore, the deadline for filing a Demand is 14 March 2022 .

CSEC English A Specimen Papers and Mark Schemes: Paper 01 92 Mark Scheme 107 Paper 02 108 Mark Scheme 131 Paper 032 146 Mark Scheme 154 CSEC English B Specimen Papers and Mark Schemes: Paper 01 159 Mark Scheme 178 Paper 02 180 Mark Scheme 197 Paper 032 232 Mark Scheme 240 CSEC English A Subject Reports: January 2004 June 2004

Counters and Timers Series 50 Counters Kuhnke System Logic Devices Panel Mounted Pneumatic Counter 50670 The pneumatic counter can be used as an event, part or lot counter. The counter registers pneumatic impulses on a 6 digit display. Totalizer operates with impulse pressure between 2 and 8 bar.

Introduction to Academic Writing This study pack is designed to take about 50 minutes. It will give you an introduction to academic writing, sharing the most important principles that will guide you through writing during your degree at UCL. It was put together by the Writing Lab, which is the section of the Academic Communication Centre(ACC) that serves students from Bartlett; Psychology .