Continuous Integration

cancel
Showing results for 
Search instead for 
Did you mean: 

Running Test Squence file through Jenkins

Hello,

I am trying to call my test sequence file through a Jenkins pipeline. I have written following command in my Jenkins pipeline

dir('C:\\TestStandPath\\Bin'){

bat label: '', script: 'SeqEdit.exe /runEntryPoint "Singe Pass" "C:\\SequenceFilePath\\SeqFile.seq" /quit'

}

This hangs the Jenkins pipeline execution in running above command.

I have tried running above command through through command line then it works. It opens the TestStand and executes the SeqFile.seq

 

I have referred Getting Started with TestStand with Jenkins page.

 

Any suggestions..

0 Kudos
Message 1 of 6
(3,571 Views)

Did you follow the steps in that getting started page to set the DCOM settings for TSAutoMgr and run the Jenkins service as a user?

https://www.linkedin.com/in/trentweaver
0 Kudos
Message 2 of 6
(3,556 Views)

Hello,

 

Thanks for the response yes I did all the steps mentioned on the page

0 Kudos
Message 3 of 6
(3,542 Views)

The test sequence executes with TestExec command.

I replaced the test SeqEdit.exe with TestExec.exe and ran the SeqFile.seq and it worked. 

Message 4 of 6
(3,541 Views)

I'm facing exactly same issue.  I can run my batch file in cmd prompt without any issues.  TestStand SeqEditor opens, runs the sequence and closes.  But when I run it in Jenkins pipeline, then the same batch file hangs.

 

I tried to run with TestExec.exe too.  But the problem persists.  TestExec.exe runs perfectly in cmd prompt, but hangs in Jenkins pipeline.

 

BTW, where is your TestExec.exe is located?  Is it under TestStand Bin directory?  I find it in UserInterfaces directory in my PC (C:\Program Files (x86)\National Instruments\TestStand 2017\UserInterfaces\Simple\LabVIEW\Source Code\TestExec.exe)

--
Ajay MV


0 Kudos
Message 5 of 6
(3,469 Views)

Found a solution to this.  Running Jenkins in CLI gets access to TestStand without any issues.  Looks like there is some issues to run TestStand from windows service (Jenkins by default runs as windows service).

 

java -jar jenkins.war --httpPort=8091

jenkins.war is located under jenkins installation directory.  In my case, I ran this command from C:\Jenkins\ 

A new instance of jenkins starts in the local port 8091 as I sent in args.  http://localhost:8091/

--
Ajay MV


0 Kudos
Message 6 of 6
(3,440 Views)