Skip to content

Commit

Permalink
- update
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanAksionau committed Jul 6, 2023
1 parent 3176a42 commit 5182214
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 38 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci_settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-maven

name: Java CI with Maven

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

jobs:
build:
runs-on: ubuntu-latest
permissions: write-all

steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
uses: actions/setup-java@v3
with:
java-version: '17'
distribution: 'temurin'
cache: maven
- name: Build with Maven
run: mvn clean verify -D"driver.options=--headless,--remote-allow-origins=*" --file pom.xml

- uses: deblockt/cucumber-report-annotations-action@v1.7
with:
access-token: ${{ secrets.GITHUB_TOKEN }}
path: "**/cucumber-report.json"

# Optional: Uploads the full dependency graph to GitHub to improve the quality of Dependabot alerts this repository can receive
- name: Update dependency graph
uses: advanced-security/maven-dependency-submission-action@571e99aab1055c2e71a1e2309b9691de18d6b7d6
35 changes: 0 additions & 35 deletions .github/workflows/maven.yml

This file was deleted.

10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Example of Spring Boot/Selenium test framework for WEB application testing.

# SpringBoot/Selenium/Cucumber test framework for WEB application testing.

### Framework features:
* Test execution from xml files.
Expand All @@ -11,6 +10,7 @@
- Run command 'mvn clean install -D"driver.options=--headless,--remote-allow-origins=*"'
- Run directly any ...xml file located in the root folder.(ex. 'smoke-module_cucumber_runner.xml')


### Remote execution on Selenium grid
- To activate settings you should specify required 'properties' files for spring configuration - 'spring.profiles.active=prod,remote'
- You can also run tests from maven itself with 'mvn clean install -D"spring.profiles.active=prod,remote"'
Expand All @@ -20,9 +20,13 @@
- To increase the number of containers for parallel tests execution run 'docker-compose up -d --scale chrome=4'.
- You can check if hub was started by CURL GET http://localhost:4444/wd/hub/status


### CI integration:
- On each comment push to master branch/pull request tests will be executed with GitHub Actions. You can check the results of the execution in the 'Actions' tab of the repository.


### Useful links:
- Spring bean scopes https://docs.spring.io/spring-framework/reference/core/beans/factory-scopes.html
- Cucumber parallel test execution https://cucumber.io/docs/guides/parallel-execution/?lang=java
- Cucumber reporting https://github.com/damianszczepanik/maven-cucumber-reporting
- Cucumber reporting https://github.com/damianszczepanik/maven-cucumber-reporting
- cucumber-report-annotations-action https://github.com/deblockt/cucumber-report-annotations-action

0 comments on commit 5182214

Please sign in to comment.