From ed5dcef5f0f1eecb1ef77c98db73298ec34f6574 Mon Sep 17 00:00:00 2001 From: Thomas Landauer Date: Fri, 17 May 2024 13:25:18 +0200 Subject: [PATCH] Update GettingStarted.md: Removing `generate:scenarios` Sister-PR of https://github.com/Codeception/Codeception/pull/6758 --- docs/GettingStarted.md | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/docs/GettingStarted.md b/docs/GettingStarted.md index a468f6be..c5cf4640 100644 --- a/docs/GettingStarted.md +++ b/docs/GettingStarted.md @@ -119,25 +119,6 @@ final class SigninCest } ``` -This scenario can probably be read by everybody, even non-developers. If you just remove all special characters, -this test transforms into plain english text: - -```yaml -I amOnPage '/login' -I fillField 'Username', 'davert' -I fillField 'Password', 'qwerty' -I click 'Login' -I see 'Hello, davert' -``` - -Codeception generates this text representation from PHP code by executing: - -```bash -php vendor/bin/codecept generate:scenarios Acceptance -``` - -These generated scenarios will be stored in your `tests/Support/Data/scenarios/Functional` directory in `*.txt` files. - Before we execute this test, we should make sure that the website is running on a local web server. Let's open the `tests/Acceptance.suite.yml` file and fill in the URL of your web application: @@ -302,7 +283,6 @@ There are plenty of useful Codeception commands: * `generate:test` *suite* *filename* - Generates a sample PHPUnit Test with Codeception hooks * `generate:feature` *suite* *filename* - Generates Gherkin feature file * `generate:suite` *suite* *actor* - Generates a new suite with the given Actor class name -* `generate:scenarios` *suite* - Generates text files containing scenarios from tests * `generate:helper` *filename* - Generates a sample Helper File * `generate:pageobject` *suite* *filename* - Generates a sample Page object * `generate:stepobject` *suite* *filename* - Generates a sample Step object