Skip to content

Commit

Permalink
Release 1.10 (#337)
Browse files Browse the repository at this point in the history
Features

- Simplify image matching by implementing an OPENCV locator strategy (see qa.justtestlah.base.ByImage and qa.justtestlah.base.ImageWebElement). This works differently from Appium's image locator by performing the check on the client machine (i.e. where the test runs) and not the Appium server. It requires OpenCV and, currently, only works with Selenium. For Appium, the IMAGE locator type can be used.
- Update Selenium to 4, Appium to 8 and Cucumber to 7.
- Update all other libraries to the latest available version.

Documentation

- Update and simplify the README.
- Maintain the demos.
- Add a JustTestLah! logo.

Testing
-  Add various integration tests to the build pipeline (Android test with Appium, Firefox/Opera tests, Maven archetype test).
  • Loading branch information
martinschneider authored Dec 31, 2021
1 parent c2bf5d2 commit 8a33fbe
Show file tree
Hide file tree
Showing 63 changed files with 930 additions and 681 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/android.yml

This file was deleted.

83 changes: 83 additions & 0 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
name: Integration tests
on: [push]

jobs:
opera:
env:
DISPLAY: :0
runs-on: ubuntu-latest
name: Opera
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 17
architecture: x64
- name: Run Opera tests
run: chmod +x ./scripts/opera-verifier.sh && ./scripts/opera-verifier.sh
firefox:
env:
DISPLAY: :0
runs-on: ubuntu-latest
name: Firefox
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 17
architecture: x64
- name: Run Firefox tests
run: chmod +x ./scripts/firefox-verifier.sh && ./scripts/firefox-verifier.sh
visual:
env:
DISPLAY: :0
runs-on: ubuntu-latest
name: OpenCV and Tesseract
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 17
architecture: x64
- name: Run visual tests
run: chmod +x ./scripts/visual-verifier.sh && ./scripts/visual-verifier.sh
archetype:
runs-on: ubuntu-latest
name: Maven archetype
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 17
architecture: x64
- name: Create and test archetype
run: chmod +x ./scripts/archetype-verifier.sh && ./scripts/archetype-verifier.sh
android:
runs-on: macos-11
name: Android
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v2
with:
distribution: zulu
java-version: 17
architecture: x64
- name: Run Appium test
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: 29
script: chmod +x ./scripts/android-verifier.sh && ./scripts/android-verifier.sh
5 changes: 5 additions & 0 deletions .mvn/jvm.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
--add-exports jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.parser=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED
--add-exports jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED
1 change: 1 addition & 0 deletions images/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
18 changes: 8 additions & 10 deletions justtestlah-awsdevicefarm/pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>justtestlah-awsdevicefarm</artifactId>
<name>JustTestLah! AWS Devicefarm</name>
<description>JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.</description>
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.10-SNAPSHOT</version>
<version>1.10</version>
</parent>
<artifactId>justtestlah-awsdevicefarm</artifactId>
<name>JustTestLah! AWS Devicefarm</name>
<description>JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
Expand Down Expand Up @@ -109,10 +107,10 @@
<executions>
<execution>
<id>copy-dependencies</id>
<phase>package</phase>
<goals>
<goal>copy-dependencies</goal>
</goals>
<phase>package</phase>
<configuration>
<outputDirectory>${project.build.directory}/dependency-jars/</outputDirectory>
</configuration>
Expand All @@ -137,10 +135,10 @@
<executions>
<execution>
<id>tests</id>
<phase>package</phase>
<goals>
<goal>single</goal>
</goals>
<phase>package</phase>
<configuration>
<finalName>justtestlah-awsdevicefarm</finalName>
<appendAssemblyId>false</appendAssemblyId>
Expand All @@ -162,4 +160,4 @@
</build>
</profile>
</profiles>
</project>
</project>
14 changes: 6 additions & 8 deletions justtestlah-browserstack/pom.xml
Original file line number Diff line number Diff line change
@@ -1,16 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<artifactId>justtestlah-browserstack</artifactId>
<name>JustTestLah! Browserstack</name>
<description>JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.</description>
<parent>
<groupId>qa.justtestlah</groupId>
<artifactId>justtestlah-parent</artifactId>
<version>1.10-SNAPSHOT</version>
<version>1.10</version>
</parent>
<artifactId>justtestlah-browserstack</artifactId>
<name>JustTestLah! Browserstack</name>
<description>JustTestLah! is a JAVA test framework targeting projects that support multiple platforms, in particular Web, Android and iOS. It follows a BDD approach and allows testing against all platforms using the same feature files. JustTestLah's main aim is to make the configuration and the actual test code as easy as possible.</description>
<licenses>
<license>
<name>Apache License, Version 2.0</name>
Expand Down Expand Up @@ -99,4 +97,4 @@
<scope>test</scope>
</dependency>
</dependencies>
</project>
</project>
Loading

0 comments on commit 8a33fbe

Please sign in to comment.