The project contains UI tests for upgrading free account to a team
-
Install gradle and the latest java
-
Clone the project
-
Go to the project folder
-
Create the file
gradle.properties
-
Add BASE_URL, USER_NAME and PASSWORD there, e.g.
BASE_URL=https://miro.com/app/dashboard/
USER_NAME=${USER_NAME}
PASSWORD=${PASSWORD}
-
Run the command in terminal:
gradle test
or ./gradlew test
(for Windows: gradlew test
)
If you want to run Chrome not in headless mode use the following command:
./gradlew clean test -Dheadless=false
If you don't have Gradle and/or JDK installed on your machine you can run tests in Docker.
-
Install Docker on your local machine
-
Clone the project
-
Go to the project folder
-
Create the file
gradle.properties
-
Add BASE_URL, USER_NAME and PASSWORD there, e.g.
BASE_URL=https://miro.com/app/dashboard/
USER_NAME=${USER_NAME}
PASSWORD=${PASSWORD}
-
Run the command in terminal:
Linux/Mac:
docker run --rm \
-v "$PWD":/home/gradle/project \
-w /home/gradle/project leapci/gradle-chrome:jdk-11 gradle test -q
Windows in PowerShell:
docker run --rm `
-v "$(PWD):/home/gradle/project" `
-w /home/gradle/project leapci/gradle-chrome:jdk-11 gradle test -q
If you do not want to create gradle.properties
you can use the following command to run tests:
Linux/Mac:
docker run --rm \
--env BASE_URL='${Base_Url}' \
--env USER_NAME=${User_Name} \
--env PASSWORD='${Password}' \
-v "$PWD":/home/gradle/project
-w /home/gradle/project leapci/gradle-chrome:jdk-11 gradle test -q
Windows in PowerShell:
docker run --rm `
--env BASE_URL='${Base_Url}' `
--env USER_NAME=${User_Name} `
--env PASSWORD='${Password}' `
-v "$(PWD):/home/gradle/project" `
-w /home/gradle/project leapci/gradle-chrome:jdk-11 gradle test -q
Open index.html
in a browser to see the tests results. This file will be generated in the folder: /UpgradeAccount/build/reports/tests/test/
You should see the following results:
This repository contains a GitHub Actions build pipeline which is triggered on every push. It executes gradle test
command in a docker container, and then uploads test reports as build artifacts.
You can find and download them by navigating to https://github.com/OlgaLa/UpgradeAccount/actions and selecting the latest run log. The artifacts would be located in Artifacts section at the bottom of the page.