https://github.com/charlyautomatiza/starter-codeceptjs
https://github.com/charlyautomatiza/starter-codeceptjs
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/charlyautomatiza/starter-codeceptjs
- Owner: charlyautomatiza
- License: cc0-1.0
- Created: 2022-04-22T19:08:09.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-02T21:13:15.000Z (almost 3 years ago)
- Last Synced: 2025-02-03T17:58:32.557Z (3 months ago)
- Language: JavaScript
- Size: 117 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CodeceptJS 3 ‐ Supercharged End 2 End Testing
## Boilerplate project created live on [Twitch.tv/CharlyAutomatiza](https://www.twitch.tv/charlyautomatiza) based on [CodeceptJS](https://codecept.io/)
### Overview
Esta documentación está disponible también en [**Castellano**](LEEME.md).
### General requirements
- Install a git client such as [git bash](https://git-scm.com/downloads)
Download and install
- Latest version of [Node.js](https://nodejs.org/es/download/)
### Requirements Mobile
Descargar e instalar
- Java Development Kit [(JDK)](https://www.oracle.com/java/technologies/downloads/)
- Make sure you have the environment variable **JAVA_HOME** set to the path of the respective JDK.
- [Appium](https://appium.io/downloads/) Desktop.
- [Android Studio](https://developer.android.com/studio/index.html) and inside the app install.
- **SDK Platform**: Android 10 or the required version.
- **SDK tools**:
- Android SDK Build Tools.
- Andorid SDK Command Line Tools.
- Android Emulator.
- Android SDK Platform-tools.
- Intel x86 Emulator accelerator.
- Configure at least one emulator from **Android Virtual Device Manager**.
- Make sure to add the following environment variables:
- **ANDROID_HOME**: Add the directory where the Android SDK is located, for example: **C:\Users\USERNAME\AppData\Local\Android\Sdk**.
- Then respecting the order add these environment variables:
- **%ANDROID_HOME%**\emulator
- **%ANDROID_HOME%**\platform-tools
- **%ANDROID_HOME%**\tools
- **%ANDROID_HOME%**\tools\bin
- Starting the emulator from the command line:
- List installed emulators:
- emulator -list-avds
- Iniciar el emulador:
- emulator @emulator_name
- As an alternative to any error it can be started with the following command: **%ANDROID_HOME%**\emulator\emulator.exe -avd
- **Appium Doctor**: To validate that we have everything necessary to carry out our mobile tests, we must install and execute.- npm install -g appium-doctor
- This will install the utility that will allow us to validate that everything is correctly configured.
- appium-doctor --android
- If we have correctly carried out all the steps above with this command, a success message and some warnings will be displayed.
- In case of a blocking error, it will be displayed on the screen, it must be corrected and re-executed until everything is ok.- APK to test.
- We use for the example [the apk](https://github.com/webdriverio/native-demo-app/releases/download/v0.4.0/Android-NativeDemoApp-0.4.0.apk) provided by WebdriverIO.
- You can run the following from the command line as an alternative:
- curl --output Android-NativeDemoApp-0.4.0.apk
- For the example to work, the apk must be inside the folder **/app** in the base of our project with the name configured in the capability **app** of the file [*codecept.conf.js*](codecept.conf.js).### Installation of the testing framework
#### **Clone the repository:**
```bash
git clone https://github.com/charlyautomatiza/starter-codeceptjs.git
```#### **Install dependencies.**
```bash
npm install
```#### **To run the test go to the root of the project and run**
```bash
npm run codeceptjs
```#### **To create and open Allure-Report with test results**
```bash
npm run open-report
```