Tomasz Górski: Rapid application development to definicja, która raczej nie kojarzy się z pisaniem testów automatycznych – czy to jednostkowych, czy E2E. Nie ma co ukrywać, testowanie jest kosztowne, ponieważ wymaga dużo czasu. Podczas prezentacji pokażę wam jednak, jak można niskim kosztem pokryć testami dowolną aplikację. Zaprezentuję szereg narzędzi, które pomogą znacznie przyśpieszyć wytwarzanie testów przez developerów, a jednocześnie pozwolą na szybkie prototypowanie.
26. WHAT IF YOU DON’T HAVE
MUCH CODING EXPERIENCE?
27.
28. • Node library
• E2E framework
• Over 50 generic steps which help writing tests
• Check it out on kakunin.io
GET STARTED WITH…
29. EXAMPLE KAKUNIN TEST
Feature: Primality test
Scenario: The number is prime
Given I visit the "prime" page
When I fill the "primeForm" form with:
| testInput | 5 |
And I click the "validateButton" element
Then there is element "theNumberIsPrime" with value "f:isVisible"
45. AVAILABLE METHODS
• saveElement() - saves an image of the screen element
• saveScreen() - saves an image of the screen
• saveFullPageScreens() - saves a full page image of the screen
Saving methods:
Compare methods:
• checkElement() - runs the comparison against an element
• checkScreen() - runs the comparison against the screen
• checkFullPageScreen() - runs the comparison against the full page image
55. RUN THE GALEN TEST
galen check <catalogWithGspecs> --url <url> --size <size> --htmlreport <catalog>
• <catalogWithGspecs> could be a single file or a catalog e.g. ‘isPrimeNumber.gspec’
• <url> - e.g. 'http://localhost:8081'
• <size> - e.g. ‘1280x800’
• <catalog> - e.g. ‘reports’
And the results…