Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
Cucumber
Intro į integracinį testavimą. Salotoms.

Vidmantas Kabošis @ VilniusPHP, 2014-02-06
Integracinis testavimas
Unit testing
(TDD / BDD*)
Integracinis testavimas
Unit testing
(TDD / BDD*)

Integration
(Acceptance)
testing
Integracinis testavimas
●
●
●
●
●
●

Programavimo kalba (PHP, Ruby, Java, …)
Duomenų bazė(s)
HTML, CSS
Javascript
Kešavima...
Funkciniai reikalavimai
Tai yra visada istorijos (user story):
Žodžiu, kai aš paspaudžiu ant “Išsaugoti”
Turi iššokti lang...
Meet the
Žingsniai
Given any uploaded picture
When I press the “Save” button
Then the window should pop up
And I should be able to ...
Scenarijai
Scenario: save with default name
Given any uploaded picture
When I press the “Save” button
...
Funkcijos (feature)
Feature: gallery
Scenario: save with default name
Given any uploaded picture
When I press the “Save” b...
Gherkin
When(/(I ?)press the “(.+)” button$/) do |name|
wait_for_page_to_load
click_button(name)
end
Hands on!
FAQ
● Kada naudoti?
● Kada nenaudoti?
● Kuo tai geriau nei “įprastas”, gerai
struktūrizuotas testavimo kodas?
● Ar tai gre...
PHP pasaulyje
● Cucumber (surprise)
● Behat
● cuke4php
VilniusRB
Kovo 1 d. 14:00
Intro to Ruby/Rails for developers
Registracija: www.vilniusrb.lt
Javascript developer!
bit.ly/enlarge-your-js
Such workplace

So javascript
Very table tennis

So conference

Much 10%

Ver...
Klausimai?
@vidmantas / vidmantas@kabosis.lt
Cucumber @ VilniusPHP
Upcoming SlideShare
Loading in …5
×

Cucumber @ VilniusPHP

1,418 views

Published on

Presented in VilniusPHP event on 2014-02-06.

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Cucumber @ VilniusPHP

  1. 1. Cucumber Intro į integracinį testavimą. Salotoms. Vidmantas Kabošis @ VilniusPHP, 2014-02-06
  2. 2. Integracinis testavimas Unit testing (TDD / BDD*)
  3. 3. Integracinis testavimas Unit testing (TDD / BDD*) Integration (Acceptance) testing
  4. 4. Integracinis testavimas ● ● ● ● ● ● Programavimo kalba (PHP, Ruby, Java, …) Duomenų bazė(s) HTML, CSS Javascript Kešavimas (redis, memcached, …) Paieškos varikliai (elastic, solr, …)
  5. 5. Funkciniai reikalavimai Tai yra visada istorijos (user story): Žodžiu, kai aš paspaudžiu ant “Išsaugoti” Turi iššokti langas, kur galiu įvesti pavadinimą Tada paspaudžiu “Gerai” Ir man tą nuotraukikę rodo albume
  6. 6. Meet the
  7. 7. Žingsniai Given any uploaded picture When I press the “Save” button Then the window should pop up And I should be able to enter the name When I press “OK” Then I should see my picture in the gallery
  8. 8. Scenarijai Scenario: save with default name Given any uploaded picture When I press the “Save” button ...
  9. 9. Funkcijos (feature) Feature: gallery Scenario: save with default name Given any uploaded picture When I press the “Save” button ...
  10. 10. Gherkin When(/(I ?)press the “(.+)” button$/) do |name| wait_for_page_to_load click_button(name) end
  11. 11. Hands on!
  12. 12. FAQ ● Kada naudoti? ● Kada nenaudoti? ● Kuo tai geriau nei “įprastas”, gerai struktūrizuotas testavimo kodas? ● Ar tai greita? (rašymo prasme) ● Ar tai greita? (vykdymo prasme)
  13. 13. PHP pasaulyje ● Cucumber (surprise) ● Behat ● cuke4php
  14. 14. VilniusRB Kovo 1 d. 14:00 Intro to Ruby/Rails for developers Registracija: www.vilniusrb.lt
  15. 15. Javascript developer! bit.ly/enlarge-your-js Such workplace So javascript Very table tennis So conference Much 10% Very team Wow computer Much code Such salary
  16. 16. Klausimai? @vidmantas / vidmantas@kabosis.lt

×