Unable to pass the registry URL while running Jenkins using Build.xml file
search cancel

Unable to pass the registry URL while running Jenkins using Build.xml file

book

Article ID: 4288

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder)

Issue/Introduction

When running a test case from Jenkins using Junitlisa, we are not able to pass the expected registry URL to jenkins from build.xml.

It takes local registry(tcp://GAJSR000:2010/Registry) not from build.xml and local.properties file. Getting an error as below

[junitlisa] DevTest Solutions, Copyright (c) 2002-2016 CA, All rights reserved. 

[junitlisa] DevTest Regression Runner - Stage and Execute Tests with Auditing 

[junitlisa] Error locating DevTest Registry: Timed out trying to connect to test registry tcp://GAJSR000:2010/Registry 

[junitlisa] java.rmi.RemoteException: Timed out trying to connect to test registry tcp://GAJSR000:2010/Registry 

[junitlisa] at com.itko.lisa.test.Environment.bootUpTestRegistry(Environment.java:2579)

Environment

Release: All supported Devtest versions
Component:

Cause

N/A

Resolution

Add  lisa.registry.URL=<Complete_tcp_registry_url> in local.properties file where you are running test case (in this case, it is on Jenkins server) or You can add remote registry details to junitlisa tag by giving attribute testRegistry="tcp://<Hot_name>:<port_number>/Registry" in build.xml file 

Ex: <junitlisa testRegistry="tcp://MyHost:2010/Registry" toDir="${testReportDir}" 

                   test="Tests/DevTest_config_info.tst" 

                   stagingDoc="StagingDocs/Run1User1Cycle.stg"

                   user="admin"

                   password="admin">

       </junitlisa>