Forum Discussion

FICO's avatar
FICO
Community Manager
13 years ago

Running tests in precompiled assembly from command line

Running tests in precompiled assembly from command line

Hi all, 

According to the online documentation one should be able to run tests in precompiled Blaze Advisor project. The code below shows what I try to use: 

<TestSuiteConfig> <SuiteName>Rules Test Suite</SuiteName>  <TestConfig>  <Name>Exported Project Example</Name>  <Factory>com.blazesoft.test.rules.NdAdvisorTestConfig</Factory>  <RulesProjectLoaderFactory>   <JavaName> com.blazesoft.server.rules.NdRulesProjectFileLoader </JavaName>   <Project>myPrecompiledProject.adb</Project>  </RulesProjectLoaderFactory> </TestConfig></TestSuiteConfig>

 I keep getting this error: 

There was 1 failure:

1) warning(com.blazesoft.test.framework.NdDefaultTestSuite$1)

FAILURES!!!

Tests run:1, Failures:1, Errors: 0

Anyone could point me in the right direction?

Thanks a lot in advance!

1 Reply

  • FICO's avatar
    FICO
    Community Manager

    When you work with precompiled ADB files you need to use the *Serialized*Loader* classes, check the API documentation on NdAdvisorTestConfig for an example.

    NdRulesProjectLoaderFactory/NdRulesProjectFileLoader is for loading from a _project_ file in a repository, not from a compiled _adb_ file (http://blaze.i.lithium.com/i/smilies/16x16_smiley-happy.gif)