Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Automation Frameworks: First Contact

apetkova
September 16, 2018

Automation Frameworks: First Contact

A collection of principal and practical advice on building functional automation frameworks from scratch.
Presented at HackConf 2018, Sofia , Bulgaria

apetkova

September 16, 2018
Tweet

More Decks by apetkova

Other Decks in Technology

Transcript

  1. Q4: SCENARIO FORMAT 9 No format 1. Open a browser

    2. Go to Google 3. Search for a string 4. Assert total number of results is displayed Given-When-Then Given I can open a browser And go to Google When I search for a string Then I should see the total number of results Screenplay As Any (the browsing girl) I want to see the total number of my search results on Google So I know how many results to consider
  2. Q5: TEST RUNNER 10 Ø Experience in your team Ø

    Feature support: reporting, parallelism, CI plugin Ø Popularity
  3. ANSWER TIME! 12 Q6: ARTIFACTS Q5: RUNNER Q4: FORMAT Q3:

    LEVEL Q2: REPO Q1: LANGUAGE RUBY STAND ALONE CUCUMBER API REPORTS LOGS G-W-T
  4. Ruby sample structure demo-framework/ ├── app ├── config ├── features

    ├── test-output ├── Gemfile ├── Gemfile.lock ├── README.md
  5. Ruby sample structure ├── app │ ├── common │ │

    ├── mock_data_factory.rb │ ├── db │ ├── model │ │ ├── credentials.rb │ │ ├── personal_profile.rb │ │ └── user.rb │ └── service │ ├── auth_service.rb │ └── user_service.rb
  6. Ruby sample structure ├── config │ ├── initializers │ │

    ├── app.rb │ │ └── state.rb │ ├── config.yml.sample │ ├── cucumber.yml │ ├── report_builder_config.rb
  7. Ruby sample structure ├── features │ ├── features_api │ │

    └── user_account.feature │ ├── step_definitions │ │ └── user_steps.rb │ └── support │ ├── env.rb │ └── hooks.rb
  8. Ruby Tooling Ø Cucumber Ø DB: ActiveRecord Ø Rest &

    Logging: Sail (internal) § rest-client § colorize Ø ReportBuilder
  9. THANK YOU! Any questions? You can find me at: anetavp

    /apetkova Credits Slides: SlidesCarnival Graphics: https://freepik.com Star Wars/Star Trek/Stargate/Marvel universe objects belong to their respective owners 27