Any pro-tips for writing automated tests with Selenium PHP?

This page summarizes the projects mentioned and recommended in the original post on /r/PHP

InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • core

    The server component of API Platform: hypermedia and GraphQL APIs in minutes (by api-platform)

  • For a great setup to use as an example, see https://github.com/api-platform/core. The Behat library config is in behat.yml.dist, the feature files (process descriptions) are in the ./features directory, and the context files (Feature file Steps resolved to Context functions) can be found in ./tests/Behat.

  • Symfony Panther

    A browser testing and web crawling library for PHP and Symfony

  • Personal experience: - don’t use Behat unless you really needed a “story telling”, it has a intermediate layer Gherkin that you’ll need to code. You can write “Given/When/Then” steps but you’ll also need to write “php code” that will interpret this step. - using real browser be prepared for instability - any interaction with JavaScript can broken/delay execution - be prepared that this tests are call functional they are the most expensive test, so start small unit then integration and only then functional. - use https://github.com/symfony/panther or https://codeception.com/ you’ll have phpunit alike interface to run them. - you’ll need to reset state of your database each time to provide “isolation” and stability

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Codeception

    Full-stack testing PHP framework

  • Personal experience: - don’t use Behat unless you really needed a “story telling”, it has a intermediate layer Gherkin that you’ll need to code. You can write “Given/When/Then” steps but you’ll also need to write “php code” that will interpret this step. - using real browser be prepared for instability - any interaction with JavaScript can broken/delay execution - be prepared that this tests are call functional they are the most expensive test, so start small unit then integration and only then functional. - use https://github.com/symfony/panther or https://codeception.com/ you’ll have phpunit alike interface to run them. - you’ll need to reset state of your database each time to provide “isolation” and stability

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Shopware Changes since the 6.0 Dev Training Videos

    5 projects | dev.to | 12 Dec 2023
  • PHP libraries and tools

    47 projects | dev.to | 18 Oct 2023
  • Any good resources on how to do “interaction” tests?

    6 projects | /r/PHP | 27 May 2023
  • Templates available in Yii3.

    11 projects | /r/yii3 | 11 Jan 2023
  • Using Pest to test Laravel Livewire validation rules

    2 projects | dev.to | 12 Aug 2022