1.0.9 • Published 1 year ago
minipautocore v1.0.9
WeChat MiniProgram automation testing framework
WeChat Mini-program has it’s official SDK published which supports MiniP automation testing, so we are going to use this For testing framework, we are going to use BDD after research
Getting Started
This document can help you to start understand this framework quickly and smoothly.
Prerequisites
To run this project you have to install:
- Node (latest LTS version)
- WeChat Devtools Version > 1.02.1907232
- Debug Base Library > 2.7.7
Installing
Clone this repository to your machine:
git clone https://gitlab.fftech.info/dragon/consumer-products-test/consumer-products-automation-web
Configuration
Open project in VS code or any other IDE, go to file config.js, update your local MiniP project path
How to run feature file
Configured in package.json as below:
npm run featuretest
Project Structure
├── README.md
├── app.json
├── features
| ├── regressionScenarios.feature
| ├── steps
| | ├── baseSteps.js
| | ├── featureSteps.js
| | └── regressionSteps.js
| └── support
| └── hooks.js
├── libraries
| ├── actions.js
| └── selectors.js
├── log
├── package-lock.json
├── package.json
├── page
| ├── HomePage.js
| ├── SearchPage.js
| └── commonMethods.js
├── project.config.json
├── report
└── utils
└── miniPLaunchHelper.js