ABLunit with ant on jenkins not working

Posted by ankitagrawal1234 on 29-Aug-2019 11:52

Hi Folks,

I have a project on Jenkins to execute ablunit test suite but it is throwing below error-

"C:\workspace\ABLUnit\build.xml:1788: typede calss com.phenix.pct.ABLUnit cannot be found."

This error I am getting only when I run from Jenkins, the same build.xml runs perfectly fine when I run from my local or bat file. I have Jenkins to install on another server and it seems ant pct version is not updated there.

Is anyone have any idea??

Thanks,

Ankit

Posted by Riverside Software on 29-Aug-2019 12:05

PCT is probably not installed on your server, or not correctly referenced from your Ant command line in Jenkins

All Replies

Posted by Riverside Software on 29-Aug-2019 12:05

PCT is probably not installed on your server, or not correctly referenced from your Ant command line in Jenkins

Posted by Riverside Software on 29-Aug-2019 12:05

PCT is probably not installed on your server, or not correctly referenced from your Ant command line in Jenkins

Posted by ankitagrawal1234 on 06-Sep-2019 09:38

Yes, PCT version was not updated on jenkins server, after updating it to my local version it seems to be work now but facing another issue. I am getting below error-

** unknown Field or Variable name - assert. (201)

I have changed reference of ABLUnit as below

Old: classname="com.progress.openedge.ant.ablunit.ablunittask" and classpath="ant-ablunit.jar" to

New: classname="com.phenix.pct.ABLUnit" and classpath="${env.PCT_HOME}/lib/PCT.jar"

It seems like it is unable to find ablunit library files. Can you please suggest what I am missing.

Posted by ankitagrawal1234 on 06-Sep-2019 09:38

Yes, PCT version was not updated on jenkins server, after updating it to my local version it seems to be work now but facing another issue. I am getting below error-

** unknown Field or Variable name - assert. (201)

I have changed reference of ABLUnit as below

Old: classname="com.progress.openedge.ant.ablunit.ablunittask" and classpath="ant-ablunit.jar" to

New: classname="com.phenix.pct.ABLUnit" and classpath="${env.PCT_HOME}/lib/PCT.jar"

It seems like it is unable to find ablunit library files. Can you please suggest what I am missing.

Posted by bronco on 06-Sep-2019 09:56

- pct.jar should be in you lib folder of the Ant install you're using.

- OpenEdge.Core.pl should be in your PROPATH, this has the Assert class.

Posted by ankitagrawal1234 on 06-Sep-2019 10:28

Does it support on Unix?

Posted by fromeverybody on 06-Sep-2019 12:17

How is your jenkins Ant config? The environment variable ANT_HOME should point to an identical ANT_HOME instalment used in your bat file

Posted by ankitagrawal1234 on 12-Sep-2019 09:07

This is working on windows but not in unix(may be my Jenkins server does not have complete configuration). I only need to run this on windows so it is working fine. Thank you all for your comments.

This thread is closed