Code Monkey home page Code Monkey logo

clearth's Introduction

ClearTH

This is the official ClearTH project repository.

Introduction

ClearTH is a test automation tool whose primary purpose is testing of Clearing, Settlement and Back-Office Systems.

It is able to simultaneously execute multiple end-to-end test scenarios in batches. Test scenarios can be executed within a schedule, thus providing fully autonomous test execution capabilities.

ClearTH typically interacts with the system under test via its gateways / APIs, but can be easily extended with new protocols and data formats to work with.

ClearTH Core provides basic functionality to execute test scenarios, some automation actions and connectivity support. ClearTH modules extend this functionality with new data formats support and other features.

Applications that use ClearTH are built on top of ClearTH Core, optionally including its modules.

Tutorials

Here are the links to the tutorial videos introducing you to the main features of ClearTH and helping you get set up.

How to build

JDK 11 is required.

Build and publish ClearTH Core and modules to a local repository, i.e. "shared" directory in the repository root by executing the following command from the repository root:

$ ./gradlew clean build publish

Create a new project that will use ClearTH Core and its GUI module by executing the following command from the repository root:

$ ./gradlew createProject -PnewProjectDir=../PROJECTDIR -PnewProjectName=PROJECTNAME

The new project will be created in the directory adjacent to the repository root.

Starting ClearTH

JDK 11 is required on ClearTH host.

Navigate to the directory with your new project and execute the following command to start ClearTH within the Jetty server:

$ ./gradlew jettyRun

Alternatively, you can use the following command to explicitly build the WAR file with your project and deploy it to the Jetty server:

$ ./gradlew runClearTH

ClearTH GUI will be available at http://localhost:8080/clearth

You can log-in by using the following login/password:

admin/admin

ClearTH in Docker

Navigate to the directory with your new project and create the WAR file with your project:

$ ./gradlew copyWar

Build Docker image:

$ docker build -t NAME:TAG -f docker/Dockerfile .

Create a directory for persistent data, give it write permissions:

$ mkdir docker-volume-data && chmod o+wx docker-volume-data/

Now you can start ClearTH from the image you built:

$ docker run -v ./docker-volume-data:/clearth/persistentFiles -p 8080:8080 -it NAME:TAG

ClearTH GUI will be available at http://localhost:8080/clearth

You can log-in by using the following login/password:

admin/admin

clearth's People

Contributors

alexey-suknatov-exactpro avatar andrey-yeltsov avatar danielsamatov avatar danilkozlovtrainee avatar ibragimovam avatar lily-ab avatar o083to49rus avatar vasilymikhailov avatar viktor-235 avatar vladimir-panarin-exactpro avatar yarchiksmith avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

clearth's Issues

ClearTH build fails with an exception - errors in message.xsd

` Task :clearth-core:generateJavaFromXsd FAILED
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
[ant:xjc] line 2 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
[ant:xjc] line 4 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw 'nginx'.
[ant:xjc] line 5 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]
[ant:xjc] [ERROR] The element type "hr" must be terminated by the matching end-tag "".
[ant:xjc] line 6 of http://exactpro.com/clearth/message/message.xsd
[ant:xjc]

FAILURE: Build failed with an exception.

  • Where:
    Build file '/Users/Alex/Work/Tools/clearth-master/clearth-core/build.gradle' line: 19

  • What went wrong:
    Execution failed for task ':clearth-core:generateJavaFromXsd'.

unable to parse the schema. Error messages should have been provided`

ClearTH build fails with an exception - testSuccessfulExecute FAILED

Добрый день, помогите пожалуйста разораться с проблемой при сборке. 1 тест почему то не проходит, отдельно ошибок нет. все вместе - по командам сборки - не работает, проект на фронте не создается, все валится. Проблема с testSuccessfulExecute FAILED. Внизу простыня:

PS C:\Windows\system32> cd
PS C:> cd E:\Project\clearth-master
PS E:\Project\clearth-master> ./gradlew clean build publish
Downloading https://services.gradle.org/distributions/gradle-8.0.1-bin.zip
...........10%............20%............30%............40%............50%............60%...........70%............80%............90%............100%

Welcome to Gradle 8.0.1!

Here are the highlights of this release:

  • Improvements to the Kotlin DSL
  • Fine-grained parallelism from the first build with configuration cache
  • Configurable Gradle user home cache cleanup

For more details see https://docs.gradle.org/8.0.1/release-notes.html

Starting a Gradle Daemon (subsequent builds will be faster)

Task :clearth-core:compileJava
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :clearth-core:compileTestJava
Note: E:\Project\clearth-master\clearth-core\src\test\java\com\exactprosystems\clearth\automation\MatrixFunctionsTest.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

Task :clearth-core:test
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.mockito.cglib.core.ReflectUtils$2 (file:/C:/Users/%d0%9b%d0%b8%d0%bb%d0%b8%d1%8f/.gradle/caches/modules-2/files-2.1/org.mockito/mockito-all/2.0.2-beta/3e24f450275812fb354d29a58b66b8f26e13002f/mockito-all-2.0.2-beta.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain)
WARNING: Please consider reporting this to the maintainers of org.mockito.cglib.core.ReflectUtils$2
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release

com.exactprosystems.clearth.automation.actions.executeScript.ExecuteScriptTest > testSuccessfulExecute FAILED
java.lang.AssertionError at ExecuteScriptTest.java:49

112 tests completed, 1 failed

Task :clearth-core:test FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':clearth-core:test'.

There were failing tests. See the report at: file:///E:/Project/clearth-master/clearth-core/build/reports/tests/test/index.html

  • Try:

Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 3m 25s
20 actionable tasks: 8 executed, 12 up-to-date
PS E:\Project\clearth-master> ./gradlew createProject -PnewProjectDir=../PROJECTDIR -PnewProjectName=PROJECTNAME

FAILURE: Build failed with an exception.

  • What went wrong:
    Task '../PROJECTDIR' not found in root project 'clearth-master' and its subprojects.

  • Try:

Run gradlew tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 4s

FAILURE: Build failed with an exception.

root project > Resolve dependencies of :classpath

  • What went wrong:
    Task 'runClearTH' not found in root project 'clearth-master' and its subprojects.

  • Try:

Run gradlew tasks to get a list of available tasks.
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.

BUILD FAILED in 3s
PS E:\Project\clearth-master>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.