GithubHelp home page GithubHelp logo

dcihak / testsuite.next Goto Github PK

View Code? Open in Web Editor NEW

This project forked from hal/testsuite.next

0.0 0.0 0.0 2.01 MB

Testsuite for HAL

License: Apache License 2.0

Shell 0.12% Java 99.71% HTML 0.18%

testsuite.next's Introduction

TC Build

Testsuite

Testsuite for the HAL management console based on Drone & Graphene Arquillian extensions.

Profiles

The testsuite uses various profiles to decide how and which tests to run. The following profiles are available:

  • chrome | firefox | safari: Defines the browser to run the tests (mutual exclusive)
  • basic, rbac, transaction, multihosts, keycloak: Defines which tests to run (can be combined)
  • standalone | domain | microprofile | domain-hc-dc: Defines the operation mode (mutual exclusive)
  • standalone | domain | domain-hc-dc: Defines the operation mode (mutual exclusive).

Combine multiple profiles to define your setup. Choose at least one profile from each line. Please note that you cannot combine profiles which are marked as mutual exclusive.

microprofile profile defines tests which are runnable with expansion pack (XP) which include microprofile. domain-hc-dc means domain mode with master (dc) and slave (hc) host.

Examples of valid combinations:

  • chrome,basic,standalone
  • firefox,basic,rbac,domain
  • firefox,basic,domain-hc-dc
  • safari,rbac,transaction,standalone

Examples of invalid combinations:

  • safari,firefox
  • basic,transaction
  • standalone,domain
  • standalone,domain-hc-dc
  • domain,domain-hc-dc
  • chrome,basic,standalone,domain

Run Tests

In order to run tests you need a running WildFly / JBoss EAP server with an insecure management interface.

The easiest way is to use the provided scripts

  • start-wildfly.sh and
  • stop-wildfly.sh

They use the docker image halconsole/hal-wildfly which is based on jboss/wildfly, the latest HAl console and standalone configurations with insecure management interfaces.

If you rather want to use a custom WildFly instance, use the following commands to remove the security realm from the management interface:

Standalone

/core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)
:reload

Domain

/host=master/core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)
/host=master:reload

Domain hc dc (on master)

/host=master/core-service=management/management-interface=http-interface:undefine-attribute(name=security-realm)
/host=master:reload

Run all tests:

To run the tests you need to set the JBOSS_HOME property pointing to the WildFly directory. If have run the start-wildfly script, you can see the WildFly directory printed out in the console.

mvn test -P<profiles>

Run all tests including product (EAP) specific ones:

mvn test -P<profiles> -Deap

Run a single test:

mvn test -P<profiles> -Dtest=<fully qualified classname>

To debug the test(s) use the maven.surefire.debug property:

mvn test -P<profiles> -Dtest=<fully qualified classname> -Dmaven.surefire.debug

The tests will automatically pause and await a remote debugger on port 5005. You can then attach to the running tests using your IDE.

testsuite.next's People

Contributors

adamecp avatar claudio4j avatar dependabot[bot] avatar honza-kasik avatar hpehl avatar istudens avatar jedla97 avatar panossot avatar spriadka avatar spyrkob avatar tomashofman avatar zebrik avatar

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.