fabien neibaf

BRUnit and TestCases / Rule verification from the outside

Discussion created by fabien neibaf on Jun 15, 2009
Latest reply on Feb 15, 2010 by Kevin McBrady

Hi,

 

I want to use the BRUnit feature for testing test-entites of the repository from command-line or by using Java-calls. Theres is an example available for configuring tests using XML-formatted-files with ".brunit"-extension. But this example is related to testing the whole project:

 

<PromTestSuiteConfig>
  <SuiteName>Prom Rules Test Suite</SuiteName>
 
  <TestConfig>
    <Name>PromRules</Name>
    <Factory>com.blazesoft.test.rules.NdPromTestConfig</Factory>

    <RulesProjectInnovatorLoaderFactory>
     
      <InnovatorRepositoryAccessorFactory>
        <WorkspaceConnection>
           <Factory>com.blazesoft.repository.file.NdFileRepositoryConnection</Factory>
           <RepositoryFolder>C:/Blaze/Advisor66/examples/repositories/ExamplesRepository</RepositoryFolder>
        </WorkspaceConnection>
      </InnovatorRepositoryAccessorFactory>

      <JavaName>com.blazesoft.server.rules.NdRulesProjectPromInnovatorLoader</JavaName>
      <MapAllPropertiesEnabled> false </MapAllPropertiesEnabled>
      <Project> /JSR94Test-Ordner/JSR94Test</Project>

    </RulesProjectInnovatorLoaderFactory>

    <Name>Prom Rules Tests</Name>


  </TestConfig>
</PromTestSuiteConfig>

 

 So my question is: Is it possible to test only the defined test-cases (that can be defined as properties of a function) of the repository?

 

 

 

And yet another question: Is it possible to run verification tests from the commandline (outside Builder / RMA?) or with the use of some API-calls?

 

Thanks in advance!

Outcomes