Demystifying

Encore Testing

Goal

Increase dev confidence in functional test writing

Covering A lot

  • Test architecture:

    • File structure, mock data, global variables

  • Turning story requirements into tests

  • Better practices and styles, including:

    • Better testing practices for initializing variables, variable reuse, page search/redirect placement, element selectors

    • Framework testing tools: rx-page-objects

    • DRY (Don't Repeat Yourself) vs DAMP (Descriptive And Meaningful Phrases) testing methods
  • Debugging with the node and protractor debugging tools

...ready?

Test Architecture

Folder structure

Mock data

Global variables

turn

story

reqs

into

tests

Better Practices & Styles

File Structure

  • initializing variables
  • variable reuse
  • page search/redirect placement

Page Objects

  • rootElement
  • element selectors
  • methods/functions                      

Tools

rx-page-objects

rxTable

rxMetadata & common.js

  • internal resource in project, ask your QE

D R Y  vs  D A M P

Don't Repeat Yourself

vs

Descriptive And Meaningful Phrases

Debugging

Protractor - browser.pause();

(Protractor REPL)

Node - debugger;

(Node REPL)

http://www.protractortest.org/#/debugging

Covered A lot!

  • Test architecture:

    • File structure, mock data, global variables

  • Turning story requirements into tests

  • Better practices and styles, including:

    • Better testing practices for initializing variables, variable reuse, page search/redirect placement, element selectors

    • Framework testing tools: rx-page-objects

    • DRY (Don't Repeat Yourself) vs DAMP (Descriptive And Meaningful Phrases) testing methods
  • Debugging with the node and protractor debugging tools

Are we closer?

Increase dev confidence in functional test writing​

Demystifying Encore Testing

By Kayden Arias Sharky Althen

Demystifying Encore Testing

Functional testing presentation for Encore developers

  • 491
Loading comments...

More from Kayden Arias Sharky Althen