Coder Social home page Coder Social logo

jsonlenium's Introduction

Jsonlenium

CircleCI Test Coverage
Jsonlenium is a tool to perform E2E tests using JSON files.

Preparation

Java is necessary to execute (Java 8 or later). Please install it.

Usage

$> git clone https://github.com/mapserver2007/Jsonlenium.git
$> cd Jsonlenium
$> .\gradlew uiTest -Ddriver=phantomjs -Dpath=C:\jsonlenium_test_files\test.json
$> .\gradlew uiParallelTest -Ddriver=phantomjs -Dpath=C:\jsonlenium_test_files\test.json -Ddivision=5

Tasks

Available Gradle tasks:

Task Desctiption
uiTest Execute the E2E test.
uiParallelTest Execute the E2E test in parallel.
uiTestCompile It is implicitly called by a uiTest and uiParallelTest task, therefore do not need to explicitly execute it.
cleanAll Delete the compiled files.
When updating the JSON test file, it needs to be executed.
unitTest Execute unit test.
coverageTest Execute unit test and coverage mesurement.

Specifiable parameters

Parameter Description Example Required
-Ddriver Driver used for execution (WebDriver).
phantomjs/chrome/headlesschrome can be specified.
-Ddriver=chrome
-Dpath JSON test file path or directory path. -Dpath=C:\test.json
-Ddivision Number of partitions to allocate to one process when executing tests in parallel.
Increasing the value of the division as the total number of tests increases increases the execution speed.
Only for uiParallelTest task.
Default value is 5.
-Ddivision=5 -
-Dtimeout Maximum response time of running test (sec).
If the response becomes longer than the timeout time, it ends as an NG test.
Timeout is unlimited if not specified.
-Dtimeout=300 -
-i Output the log as standard output (info level). -i -
-d Output the log as standard output (debug level). -d -

Test in each JDK version

JDK name OS build version testing result
OpenJDK windows 1.8 (1.8.0_201) ok
OpenJDK macosx 1.8 (1.8.0_192) ok
AdoptOpenJDK windows 1.8 (1.8.0_202) ok
AdoptOpenJDK macosx 1.8 (1.8.0_202) ok
AdoptOpenJDK windows 11.0.2_9 ok
AdoptOpenJDK macosx 11.0.8 ok
amazon-corretto windows 1.8 (Corretto-8.202.08.2) ok
amazon-corretto macosx 1.8 (Corretto-8.202.08.2) ok
amazon-corretto windows 11.0 ok
amazon-corretto macosx 11.0 ok

License

Licensed under the MIT http://www.opensource.org/licenses/mit-license.php

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.