How to pass JVM parameters into DevTest

Document ID:  TEC1842803
Last Modified Date:  08/05/2017
{{active ? 'Hide' : 'Show'}} Technical Document Details

Products

  • CA Service Virtualization

Releases

  • CA Service Virtualization:Release:10.0
  • CA Service Virtualization:Release:10.1.0
  • CA Service Virtualization:Release:8.1
  • CA Service Virtualization:Release:8.2
  • CA Service Virtualization:Release:8.3
  • CA Service Virtualization:Release:9.0
  • CA Service Virtualization:Release:8.5
  • CA Service Virtualization:Release:9.5
  • CA Service Virtualization:Release:9.1
  • CA Service Virtualization:Release:9.5.1

Components

  • CA ITKO LISA TEST / FRAME:ITKOTF
Introduction:

This document shows you how to pass JVM properties to DevTest

Question:

I am using ant build and build.xml to trigger tests from Jenkins, I need to pass the Jenkins variables to DevTest test as properties so that I can use it during run time. How do we do that? 

jvmarg value="-DmyProperty=MyProperty

Environment:
All DevTest supported releases.
Answer:

To pass a JVM variable to DevTest as a  property , follow the below approach :

Use "jvmarg" tags inside junitlisa tag. so that, value assigned to jvmarg will be considered as a jvm property and you can directly use it as DevTest property.

 

Ex: in the build.xml file 

 

<junitlisa toDir="${testReportDir}" 

outputtoformatters="false" 

test="Tests/DevTest_config_info.tst" 

stagingDoc="StagingDocs/1User0Think_RunContinuously.stg" 

user="admin" 

password="admin"> 

<jvmarg value="-DmyProperty=MyProperty"/> 

<jvmarg value="-Dlisa.tmpdir=${lisa.test.project.temp.dir}"/> 

<jvmarg value="-XX:+HeapDumpOnOutOfMemoryError"/> 

<jvmarg value="-XX:HeapDumpPath=/app/lisa/tmp"/> 

 

</junitlisa> 

 

Additional Information:

Note: This property will work when you run test locally. To run the test locally, modify staging doc with simulator name as local (instead of auto). 

If you want to use the property from build.xml file to test suite, make sure you give coordinator and simulator name are local while running the suite. 

Please help us improve!

Will this information enable you to resolve your issue?

Please tell us what we can do better.

{{feedbackText.length ? feedbackText.length : '0'}}/255

{{status}}

Not what you were looking for?

Search Again >

Product Information

Support by Product >

Communities

Join a Community >