如何克服无法在Jenkins中找到或加载主类org.testng.TestNG?

时间:2015-10-07 11:19:29

标签: linux shell jenkins selenium-webdriver testng

我正在使用硒2.47.1&amp; TestNG用于自动化过程。我正在使用Jenkins进行持续集成。 Jenkins安装在Linux服务器上。 Jenkins工作空间目录如下: <td>DOB - Age:</td> <td> <table> <tr> <td> @Html.TextBoxFor(x=>x.Dob, new { id = "txtdob", style = "width:100px"}) <br /> @Html.ValidationMessageFor(x=>x.Dob) </td> <td> @Html.TextBoxFor(x => x.Age, new { id = "txtAge", style = "width:30px"})<br /> @Html.ValidationMessageFor(x => x.Age) </td> </tr> </table> </td> //birth date - no future dates and go back 100 years, set age $("#txtdob").datepicker({ changeMonth: true, changeYear: true, yearRange: "-100:+0", maxDate: '+0d', onSelect: function (date) { var dob = new Date(date); var today = new Date(); var age = today.getFullYear() - dob.getFullYear(); $("#txtAge").val(age); } });

我已将lib文件存储在另一个位置。 lib文件存储在以下路径/home/probe7qa/probe7qa.svn/icoreemrtests/onc2014/170.314.a.9/src/eNotes

我正在使用以下Shell命令来运行Job /home/probe7qa/probe7qa.svn/icoreemrtests/onc2014/170.314.a.9/lib

每当我尝试使用Shell Command运行Jenkins作业时,我都会收到以下错误java -cp /home/probe7qa/probe7qa.svn/icoreemrtests/onc2014/170.314.a.9/lib/*:/home/probe7qa/probe7qa.svn/icoreemrtests/onc2014/170.314.a.9/src/eNotes/bin org.testng.TestNG testng.xml

如何解决这个问题......?

0 个答案:

没有答案