Skip to content

Instantly share code, notes, and snippets.

@sketchings
Last active December 14, 2023 23:53
Show Gist options
  • Select an option

  • Save sketchings/5b20efa0a5cf735b75f215cc06a2058d to your computer and use it in GitHub Desktop.

Select an option

Save sketchings/5b20efa0a5cf735b75f215cc06a2058d to your computer and use it in GitHub Desktop.
Browser Testing

Browser Testing: Outline

Prerequisite

Project Setup

  • Install Symfony Demo Project
  • Install codeception
  • cd my_project
  • composer require "codeception/codeception" --dev

Steps

  • Acceptance with PhpBrowser
    • Read Blog Articles
  • Take a look at Gherkins
  • Move to Functional
    • Requires a framework module but doesn't need a server
  • More Gherkins
    • Manage Articles
    • Background
    • TableNode
    • Scenerio Outline Examples
    • haveinDatabase
  • Cleanup
    • Access database
    • Use another database in codeception.yml
  • Acceptance with Selenium
    • Stand Alone
    • Recorder
  • More Browser Functions
    • tags
    • waitForElement
    • performOn
      • ActionSequence::build()

TIPS

MAKE SURE of suite case Acceptance or acceptance If the actor classes are not created or updated as you expect, try to generate them manually with the build command: php vendor/bin/codecept build

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment