Service Virtualization

 View Only

Tech Tips: How to run sample build.xml file in the examples project. 

Mar 22, 2018 09:57 AM

In DevTest Home examples folder , you have a build.xml file that configured to run  one Test  and  the AllTestSuite.ste

 

Here are the steps to follow:

******************************

Set ANT_HOME = C:\ANT1.9\apache-ant-x.x\
 Add it to the path =;C:\ANT1.9\apache-ant-x.x\bin

in the environment variables.

 

1. To run one test

  • The oneTest target runs a test case as a JUnit test. The test case is specified with the test attribute.

 

  In the build.xml we provide the name of the testcase  and the path as below

<junitlisa toDir="${testReportDir}"
test="Tests/DevTest_config_info.tst"
stagingDoc="StagingDocs/1User0Think_RunContinuously.stg"
user="admin"
password="admin"
registry="tcp://10.xx.xx.***:2010/Registry">
<jvmarg value="-Dlisa.tmpdir=${lisa.temp.dir}"/>
</junitlisa>

 

Open a command window, and navigate to the example project.. 

Devtest/example:>ant oneTest

 

2. To run a suite

  • The lisaTests target runs a suite as JUnit tests. The suite is specified with the lisatest nested element.

suite test part…
<junitlisa toDir="${testReportDir}"
user="admin"
password="admin"
registry="tcp://10.xx.xx.***:2010/Registry">
<jvmarg value="-Dlisa.tmpdir=${lisa.temp.dir}"/>
<lisatest suite="${basedir}/Suites/AllTestsSuite.ste"/>
</junitlisa>

 

in the Command window

 

Devtest/example:>ant    ( this will run the suite) 

Statistics
0 Favorited
2 Views
0 Files
0 Shares
0 Downloads

Tags and Keywords

Related Entries and Links

No Related Resource entered.