Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/zewa666/aurelia-po-generator
Demo E2E Page Objects generator for the Aurelia platform
https://github.com/zewa666/aurelia-po-generator
Last synced: about 12 hours ago
JSON representation
Demo E2E Page Objects generator for the Aurelia platform
- Host: GitHub
- URL: https://github.com/zewa666/aurelia-po-generator
- Owner: zewa666
- Created: 2015-02-22T13:56:46.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-02-22T13:58:31.000Z (over 9 years ago)
- Last Synced: 2023-04-06T14:20:36.100Z (over 1 year ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# aurelia-po-generator
This is an automatic Page Object generator, for the [Aurelia](http://www.aurelia.io/) platform. It is created just for demonstration purposes and should finally land in the Aurelia-CLI tool.
Currently it parses a given html file and creates an PO template useful to get your E2E-Testing up and running faster.For more info please visit the official site: http://www.aurelia.io/
> To keep up to date on [Aurelia](http://www.aurelia.io/), please visit and subscribe to [the official blog](http://blog.durandal.io/). If you have questions, we invite you to join us on [our Gitter Channel](https://gitter.im/aurelia/discuss).
## Running The Generator
To use the generator follow these steps:
1. Ensure that [NodeJS](http://nodejs.org/) is installed. This provides the platform on which the build tooling runs.
2. Place the file `po.generator.js` within an working aurelia project
3. Install the dependencies of the generator with following commands:```shell
npm install --save-dev cheerio
npm install --save-dev readline-sync
```
4. Start the generator with following command from the project root:```shell
node po.generator.js RELATIVE-PATH-TO-FILENAME PONAME
```> **Note:** the current version expects your project to have your Page Objects stored under the folder `test/e2e/src/`, if it locates an already existing file matching your inputs it will ask whether it should overwrite it.