Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.57 KB

File metadata and controls

44 lines (32 loc) · 1.57 KB

Drools Bot Tests

How to run

At first, please read a general documentation about running bot tests.

To run the tests

$ mvn clean verify -pl tests/org.jboss.tools.drools.ui.bot.test -am -Dtest=SmokeTests

To run the tests with a configuration

$ mvn clean verify -pl tests/org.jboss.tools.drools.ui.bot.test -am -Drd.config=...

The configuration file must follow the SOA XSD schema.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<testrun
  xmlns="http://www.jboss.org/NS/Req"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:runtime="http://www.jboss.org/NS/SOAReq"
  xsi:schemaLocation="http://www.jboss.org/NS/Req http://www.jboss.org/schema/reddeer/RedDeerSchema.xsd
    http://www.jboss.org/NS/SOAReq http://www.jboss.org/schema/reddeer/3rdparty/SOARequirements.xsd">

  <requirements>
    <runtime:runtime-requirement name="BRMS-6.1.0.GA">
      <runtime:brms>
        <runtime:home>/home/apodhrad/Projects/server-installer/brms-6.1.0.GA/target/jboss-brms-6.1.0.GA-redhat-2-engine</runtime:home>
      </runtime:brms>
    </runtime:runtime-requirement>
  </requirements>

</testrun>

To run the tests from IDE import the following projects as an existing maven project

  • org.jboss.tools.common.reddeer
  • org.jboss.tools.runtime.reddeer
  • org.jboss.tools.drools.reddeer
  • org.jboss.tools.drools.ui.bot.test

Then, open Run > Run Configurations... and find the category RedDeer Test. Switch to the tab Arguments and add a VM argument -Drd.config=... if needed.