Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update GettingStarted.md: Removing generate:scenarios #863

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 0 additions & 20 deletions docs/GettingStarted.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down