Selenium IDE Is Making a Comeback - Can Codeless Testing - - PDF document

selenium ide is making a comeback can codeless testing
SMART_READER_LITE
LIVE PREVIEW

Selenium IDE Is Making a Comeback - Can Codeless Testing - - PDF document

T8 Test Automation Thursday, October 3rd, 2019 11:15 AM Selenium IDE Is Making a Comeback - Can Codeless Testing Scale? Presented by: Moshe Milman


slide-1
SLIDE 1

T8 ¡

Test ¡Automation ¡ Thursday, ¡October ¡3rd, ¡2019 ¡11:15 ¡AM ¡

Selenium ¡IDE ¡Is ¡Making ¡a ¡ Comeback - Can ¡Codeless ¡Testing ¡ Scale? ¡

Presented ¡by: ¡

Moshe ¡Milman ¡

Applitools ¡

Brought ¡to ¡you ¡by: ¡

888-­‑-­‑-­‑268-­‑-­‑-­‑8770 ¡·√·√ ¡904-­‑-­‑-­‑278-­‑-­‑-­‑0524 ¡-­‑ ¡info@techwell.com ¡-­‑ ¡http://www.starwest.techwell.com/ ¡

slide-2
SLIDE 2

¡ ¡ ¡

¡

Moshe ¡Milman ¡

¡ Moshe ¡Milman ¡is ¡the ¡cofounder ¡of ¡Applitools, ¡a ¡cloud ¡service ¡for ¡automated ¡visual ¡

  • testing. ¡As ¡part ¡of ¡his ¡role ¡at ¡Applitools, ¡he ¡helps ¡dozens ¡of ¡companies ¡across ¡the ¡

industry ¡implement ¡state-­‑of-­‑the-­‑art ¡test ¡automation ¡suites. ¡Moshe ¡is ¡passionate ¡ about ¡software ¡testing ¡and ¡frequently ¡gives ¡talks ¡about ¡it ¡in ¡various ¡conferences ¡ around ¡the ¡globe. ¡Before ¡starting ¡Applitools, ¡he ¡served ¡at ¡various ¡VP ¡roles ¡

  • verseeing ¡product, ¡QA, ¡and ¡professional ¡services. ¡Moshe ¡holds ¡a ¡bachelor’s ¡degree ¡

in ¡information ¡systems ¡from ¡the ¡Technion€”Israel ¡Institute ¡of ¡Technology ¡and ¡an ¡ MBA ¡from ¡IDC ¡(Wharton ¡Business ¡School's ¡Global ¡Consulting ¡Practicum). ¡ ¡

slide-3
SLIDE 3

SELENIUM IDE IS BACK!!! CAN CODELESS TESTING SCALE???

Moshe Milman

Co-Founder @ Applitools

@MosheMilman

slide-4
SLIDE 4

2

INTRODUCTIONS

WHO WHO AM I

  • Co-Founder of Applitools
  • Spent the last years working

with multiple companies on software development and testing/automation projects

slide-5
SLIDE 5

3

  • Codeless Testing
  • Codeless Testing Tools
  • Pros and Cons of Codeless Testing
  • Visual Testing
  • Codeless Visual Testing

AGENDA

slide-6
SLIDE 6

4

slide-7
SLIDE 7

5

5 http://bit.ly/rise-of-no-code

slide-8
SLIDE 8

Your Brand Is Digital

6

OS Types Browser Versions Devices & Screen Types Microservices

slide-9
SLIDE 9

7

AUTONOMOUS TESTING?

slide-10
SLIDE 10

8

AUTONOMOUS TESTING?

slide-11
SLIDE 11

9

  • Record-Playback
  • Selenium IDE
  • Katalon
  • List of other commercial tools J
  • Self generated tests

TEST = INTERACTION + VALIDATION CODELESS TESTING

slide-12
SLIDE 12

10

CODELESS TOOLS?

slide-13
SLIDE 13

11

http://bit.ly/10-features-codeless

slide-14
SLIDE 14

12

1. Smart element locators 2. Conditional waiting 3. Control structures 4. Easy assertions 5. Modification w/o redo 6. Reusable steps 7. Cross-browser support 8. Reporting 9. Ability to insert code 10. Continuous integration

TOP 10

slide-15
SLIDE 15

Selenium m IDE is Back! IDE is Back!

13

slide-16
SLIDE 16

14

NEW MODERN UI

slide-17
SLIDE 17

15

SMART ELEMENT LOCATORS

slide-18
SLIDE 18

16

SMART ELEMENT LOCATORS

slide-19
SLIDE 19

17

REUSABLE STEPS

slide-20
SLIDE 20

18

REUSABLE STEPS

slide-21
SLIDE 21

19

slide-22
SLIDE 22

20

MODIFICATION WITHOUT REDO

slide-23
SLIDE 23

21

MODIFICATION WITHOUT REDO

slide-24
SLIDE 24

22

CONTROL STRUCTURES

slide-25
SLIDE 25

23

CONTROL STRUCTURES

slide-26
SLIDE 26

Conditionals Loops

CONTROL STRUCTURES

slide-27
SLIDE 27

Conditionals

CONTROL STRUCTURES

slide-28
SLIDE 28

26

slide-29
SLIDE 29

Loops

CONTROL STRUCTURES

slide-30
SLIDE 30

28

slide-31
SLIDE 31

29

  • Test runner to easily integrate with CI

§ Parallel execution § Grid execution § E2E test framework…

CI INTEGRATION + CROSS-BROWSER SUPPORT

slide-32
SLIDE 32

30

slide-33
SLIDE 33

31

ABILITY TO INSERT CODE

slide-34
SLIDE 34

32

CODE EXPORT

Code Export Core Java JUnit Java TestNG Ruby RSpec Python pytest etc.

slide-35
SLIDE 35

3 3

slide-36
SLIDE 36

34

  • Test cases sharing between multiple suites groups
  • Takes care of waiting for you
  • Smart and stable selectors
  • Recording on Chrome and Firefox
  • All of your project is portable within a single file
  • Selenium code export

WHAT’S NEW IN SELENIUM IDE?

slide-37
SLIDE 37

35

  • WebDriver compatibility
  • Export to additional languages (C#, JavaScript, etc...)
  • Data driven testing
  • Improved UI/UX
  • Moving to a native app
  • Make it work for wonky websites 💰
  • Internationalization (i18n)

WHAT’S NEXT IN SELENIUM IDE?

slide-38
SLIDE 38

Ca Can Cod Codel eles ess Sc Scale ale???

36

slide-39
SLIDE 39

37

Testers should write

  • code. Record playback

tools are bad because they encourage the exact opposite.

slide-40
SLIDE 40

Yeah, whatever, when will Selenium IDE be supported again?

38

slide-41
SLIDE 41

39

  • No need to develop a complex automation framework
  • Quickly author automated tests
  • Require no programming effort or language specific skills
  • Multiple stakeholders can contribute to the automation effort

PROS OF CODELESS TOOLS

slide-42
SLIDE 42

40

  • Flaky tests / unstable selectors
  • No test reuse
  • Dependency in specific tool
  • Linear test flow
  • Hard to do highly conditional automation
  • Difficult to handle complex validation logic

CONS OF CODELESS TOOLS

slide-43
SLIDE 43

41

  • Code is still my first recommendation
  • Not a knockout victory
  • Codeless can win some rounds
  • Codeless Visual Testing can change the equation for some apps

SO…WHAT DO YOU THINK?

slide-44
SLIDE 44

VISU VISUAL AL TESTING? TESTING?

slide-45
SLIDE 45

Spot The Differences

slide-46
SLIDE 46

SPOT THE DIFFERENCES

slide-47
SLIDE 47

45

  • Visual Testing is the process of

validating all the visual aspects of an application’s UI on all platforms

  • Goes beyond functional testing

tools like Selenium to ensure things like colors, fonts, buttons appear correctly

WHAT IS VISUAL TESTING?

slide-48
SLIDE 48

46

VISUAL BUG EXAMPLE #1

slide-49
SLIDE 49

47

VISUAL BUG EXAMPLE #2

slide-50
SLIDE 50

48

VISUAL BUG EXAMPLE #3

slide-51
SLIDE 51

49

Drive the AUT and take screenshots Compare screenshots with baseline images Report differences Update the baseline

Step 1 Step 2 Step 3 Step 4

WORKFLOW FOR VISUAL TESTING

slide-52
SLIDE 52

C O D E L E S S C O D E L E S S V I S U V I S UA L A L T E S T I N G T E S T I N G

slide-53
SLIDE 53

51

slide-54
SLIDE 54

52

  • Flaky tests / unstable selectors
  • Difficult to handle complex validation logic
  • Hard to do highly conditional automation
  • No test reuse
  • Linear test flow
  • Dependency in specific tool

CONS OF CODELESS TOOLS

slide-55
SLIDE 55

Something for everyone

53

slide-56
SLIDE 56

54

JUST GETTING STARTED

Step 1. Author tests Step 2. Run them (in parallel, cross- browser, on CI)

slide-57
SLIDE 57

55

ALREADY ON YOUR WAY

Bootstrap manual & exploratory testing Code export

slide-58
SLIDE 58

56

  • Using code for automation is still a good choice
  • Record playback tools are becoming smarter and innovative (and in some

cases open source!)

  • Visual Testing super charges your tests
  • Codeless Visual Testing diminishes the impact of not using code and can

actually scale!

  • Selenium IDE is back!

TAKEAWAYS

slide-59
SLIDE 59

57

https://testautomationu.com

slide-60
SLIDE 60

Thank You

Stay in touch! @MosheMilman

58