This project provide a test code generator for Codeception.
Codeception is a modern full-stack testing framework for PHP.
PHP >=5.4.0
- Install Selenium IDE add-on in Firefox.
- Download CodeceptionGenerator and unzip.
If you like git:
$ git clone https://github.com/CodeceptionGenerator/CodeceptionGenerator.git
CodeceptionGenerator/
├── Helper/ ... helper methods
├── Lib/ ... libraries
│ ├── File/ ... file classes
│ └── Generator/ ... test code generator classes
├── input/ ... put your selenium html files
├── output/ ... test codes will be output here
└── generate.php ... an execution file
If you successfully installed CodeceptionGenerator, follow the steps below.
- Use Selenium IDE add-on and generate a html file.
- Put the html file in
inputdirectory. - Execute the following command.
$ cd CodeceptionGenerator/
$ php generate.php
Confirm output directory. There is an acceptance test class of Codeception.
MIT