Upgrade to PRO for Only $50/Yearโ€”Limited-Time Offer! ๐Ÿ”ฅ

Automation Frameworks: First Contact

Avatar for apetkova 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

Avatar for apetkova

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