0

大家好,我实际上是在使用 Jenkins 和 testlink(带有 testLink 插件)来进行测试自动化。

我对 IC 和 testlink 不熟悉,所以我尝试从“TestLink 插件教程”开始。

但是当我运行构建时,我收到以下错误:

[工作区] $ C:\maven-3.0.4\bin\mvn.bat -s C:\maven-3.0.4\conf\settings.xml -gs C:\maven-3.0.4\conf\settings.xml清洁测试 -DsuiteXmlFiles=suite.xml                                                                     
    [信息] --------------------------------------------- ----------------------
    [INFO] 搭建Jenkins TestLink插件教程0.3-SNAPSHOT   
    [信息] --------------------------------------------- ----------------------
    [信息]             
    [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ jenkins-testlink-plugin- 教程 -------------------- --------------------------------------
    [INFO] 删除 C:\Jenkins\jobs\Jenkins TestLink 插件示例\workspace\target
    [信息]       
    [信息] --- docbkx-maven-plugin:2.0.11:generate-pdf (book-output) @ jenkins-testlink-plugin-tutorial ---   
    [INFO] 处理输入文件:book.xml   
    [信息] --------------------------------------------- -------------------------
    [信息] 构建失败   
    [信息] --------------------------------------------- -------------------------
    [INFO] 总时间:23.377s   
    [INFO] 完成时间:2013 年 2 月 19 日星期二 17:43:14 CET  
    [INFO] 最终内存:8M/112M  
    [信息] --------------------------------------------- -------------------------
    [错误] 无法在项目 jenkins-testlink-plugin-tutorial 上执行目标 com.agilejava.docbkx:docbkx-maven-plugin:2.0.11:generate-pdf (book-output):无法读取源:连接超时:连接 -> [帮助 1]
[错误]   
[错误] 要查看错误的完整堆栈跟踪,请使用 -e 开关重新运行 Maven。  
[错误] 使用 -X 开关重新运行 Maven 以启用完整的调试日志记录。  
[错误]   
[错误] 有关错误和可能的解决方案的更多信息,请阅读以下文章:  
[错误] [帮助 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

我正在使用我在 maven/conf 的 settings.xml 中定义的代理。

我认为maven在生成pdf时无法达到目标测试。

我用谷歌搜索了很多,但没有什么真正有用的,有人可以帮助我吗?

4

1 回答 1

0

好的,谢谢你的第一个建议!我不知道这个命令有什么用 -DsuiteXmlFiles=suite.xml 但没有它就没有变化。使用 -X 我有这个:

[DEBUG] -----------------------------------------------------------------------
[DEBUG] Goal:          com.agilejava.docbkx:docbkx-maven-plugin:2.0.11:generate-pdf (book-output)
[DEBUG] Style:         Regular
[DEBUG] Configuration: <?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <artifacts>${plugin.artifacts}</artifacts>
  <draftMode>no</draftMode>
  <foCustomization>src/main/book/stylesheets/style.xsl</foCustomization>
  <fop1Extensions>1</fop1Extensions>
  <generatedSourceDirectory>C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target/book/generated/en</generatedSourceDirectory>
  <highlightSource>1</highlightSource>
  <includes default-value="*.xml">book.xml</includes>
  <postProcess>
    <copy todir="C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace/target/book/media">
      <fileset dir="C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace/src/main/book/media/">
        <include name="**/*.css"/>
        <include name="**/*.png"/>
        <include name="**/*.gif"/>
        <include name="**/*.jpg"/>
      </fileset>
    </copy>
  </postProcess>
  <project>${project}</project>
  <sourceDirectory>C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace/src/main/book/en/</sourceDirectory>
  <targetDirectory>C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target/book/en/</targetDirectory>
  <targetFileExtension default-value="fo"/>
  <xincludeSupported>true</xincludeSupported>
</configuration>

和这个 :

[DEBUG]   (f) draftMode = no
[DEBUG]   (f) foCustomization = src/main/book/stylesheets/style.xsl
[DEBUG]   (f) fop1Extensions = 1
[DEBUG]   (f) generatedSourceDirectory = C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target\book\generated\en
[DEBUG]   (f) highlightSource = 1
[DEBUG]   (f) includes = book.xml
[DEBUG]   (f) postProcess = 
[DEBUG]   (f) project = MavenProject: com.tupilabs:jenkins-testlink-plugin-tutorial:0.3-SNAPSHOT @ C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\pom.xml
[DEBUG]   (f) sourceDirectory = C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\src\main\book\en
[DEBUG]   (f) targetDirectory = C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target\book\en
[DEBUG]   (f) targetFileExtension = fo
[DEBUG]   (f) xincludeSupported = true
[DEBUG] -- end configuration --
[DEBUG] Catalogs to load: jar:file:/C:/Users/rlyonnet/.m2/repository/net/sf/docbook/docbook-xsl/1.75.2/docbook-xsl-1.75.2-ns-resources.zip!/docbook/catalog.xml
[DEBUG] Using stylesheet: jar:file:/C:/Users/rlyonnet/.m2/repository/net/sf/docbook/docbook-xsl/1.75.2/docbook-xsl-1.75.2-ns-resources.zip!/docbook/fo/docbook.xsl
[DEBUG] SourceFile: C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\src\main\book\en\book.xml
[DEBUG] TargetFile: C:\Jenkins\jobs\Jenkins TestLink Plug-in examples\workspace\target\book\en\book.fo
[INFO] Processing input file: book.xml
[DEBUG] Advanced XInclude mode entered
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 23.450s
[INFO] Finished at: Wed Feb 20 09:23:37 CET 2013
[INFO] Final Memory: 7M/76M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.agilejava.docbkx:docbkx-maven-plugin:2.0.11:generate-pdf (book-output) on project jenkins-testlink-plugin-tutorial: Failed to read source: Connection timed out: connect -> [Help 1]
于 2013-02-20T08:45:17.233 回答