Download the PHP package dziadul/codeception-test-generator without Composer
On this page you can find all versions of the php package dziadul/codeception-test-generator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dziadul/codeception-test-generator
More information about dziadul/codeception-test-generator
Files in dziadul/codeception-test-generator
Package codeception-test-generator
Short Description Module generate codeception tests base on postman collection.
License MIT
Informations about the package codeception-test-generator
Codeception test generator
Module generate tests base on Postman collection and is dedicated for Codeception framework. Generator supports GET, POST, PUT, DELETE, PATCH method's. Script overwrite AcceptanceTester class with a generated step's definition. Tests save in feature files and are based on Gherkin syntax.
How to start ?
1.Prepare collection follow by Postman collection guide
2.Install Codeception
3.Install codeception-test-generator
Notice
Export Postman collection as 2.1.0 version.
For create step with json schema matches, please add Examples
in collection and fill witch response schema.Example
Use valid request url
Pay atention for naming conventionse
Please make sure, don't use special characters when named collection's.
Sample valid name
Validation log available:
Four steps to run
1.Install Codeception framework.
2.Install codeception-test-generator package.
3.Setup Codecepion.
4.Run test generator.
1. Preinstaled and configured codeception framework
Please follow by official Codeception framework guide.
Required packages
2. Install codeception-test-generator
composer.json
run
3. Setup codeception
codeception.yml
acceptance.suite.yml
create file, locate it in main project folder and setup credentials
4. Run test generator
- paste your's postman collection in to folder
- run
- run
Feature example
Example GET method without api access key
Example GET method with json schema matches
Example POST method with api access key
Feel free to change name
Upgrade Feature by validation example
You can also add response validation rules by specifying postman collection examples each feature.
How it is work ?
- Open saved request from collection
- Press on right corner Postman tool
- Press
- On Body section paste requests validation roles eg.
Name it eg and save
Pay atention for naming conventionse
Please make sure, use + empty space + .
Example GET method with json schema matches and validation with api access key
Feel free to change name