首页 \ 问答 \ Jmeter / Ant测试运行失败,“转换期间出现致命错误”(Jmeter/Ant test run fails with “Fatal error during transformation”)

Jmeter / Ant测试运行失败,“转换期间出现致命错误”(Jmeter/Ant test run fails with “Fatal error during transformation”)

我一直在遵循Jmeter Ant任务中的说明,但我继续收到以下错误:

Buildfile: C:\Users\Chris Gill\apache-jmeter-3.1\extras\build.xml

run:
     [echo] funcMode = false
   [jmeter] Executing test plan: C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jmx ==> C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl

_message_xalan:

xslt-report:
     [xslt] Processing C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl to C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.html
 [xslt] Loading stylesheet C:\Users\Chris Gill\apache-jmeter-3.1\extras\jmeter-results-report_21.xsl
 [xslt] C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl:1:1: Fatal Error! Premature end of file.
 [xslt] Failed to process C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl

BUILD FAILED
C:\Users\Chris Gill\apache-jmeter-3.1\extras\build.xml:124: Fatal error during transformation using C:\Users\Chris Gill\apache-jmeter-3.1\extras\jmeter-results-report_21.xsl: Premature end of file.; SystemID: file:/C:/Users/Chris%20Gill/apache-jmeter-3.1/Tests/Test.jtl; Line#: 1; Column#: 1

我一直在寻找解决方案,并尝试重新安装Ant和Jmeter,然后再次执行说明,但我仍然得到相同的结果。

我对build.xml文件进行了如下更改:

在此处输入图像描述

我的build.xml文件中有什么问题吗?


I've been following the instructions in the Jmeter Ant Task, but I keep on getting the following error:

Buildfile: C:\Users\Chris Gill\apache-jmeter-3.1\extras\build.xml

run:
     [echo] funcMode = false
   [jmeter] Executing test plan: C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jmx ==> C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl

_message_xalan:

xslt-report:
     [xslt] Processing C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl to C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.html
 [xslt] Loading stylesheet C:\Users\Chris Gill\apache-jmeter-3.1\extras\jmeter-results-report_21.xsl
 [xslt] C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl:1:1: Fatal Error! Premature end of file.
 [xslt] Failed to process C:\Users\Chris Gill\apache-jmeter-3.1\Tests\Test.jtl

BUILD FAILED
C:\Users\Chris Gill\apache-jmeter-3.1\extras\build.xml:124: Fatal error during transformation using C:\Users\Chris Gill\apache-jmeter-3.1\extras\jmeter-results-report_21.xsl: Premature end of file.; SystemID: file:/C:/Users/Chris%20Gill/apache-jmeter-3.1/Tests/Test.jtl; Line#: 1; Column#: 1

I've been searching for solutions and have tried reinstalling Ant and Jmeter, then going through the instructions again, but I still get the same result.

I made the changes to my build.xml file as follows:

enter image description here

Is there something I've done wrong in my build.xml file?


原文:https://stackoverflow.com/questions/43226641
更新时间:2023-10-21 22:10

最满意答案

那么,如果你想完全透明,你可以使用

border: 5px solid transparent;

如果你的意思是不透明/透明,那么你可以使用它

border: 5px solid rgba(255, 255, 255, .5);

在这里, a可以缩放a手段alpha,可以是0-1。

还有些人可能会建议你使用opacity ,它也可以做同样的工作,唯一的区别是它会导致子元素也变得不透明,是的,有一些解决方法,但rgba似乎比使用opacity更好。

对于旧版本的浏览器,请始终使用# (十六进制)声明背景颜色,以便旧版浏览器无法识别rgba ,它们会将hex颜色应用于元素。

演示

演示2 (带嵌套div的背景图像)

演示3 (使用img标签而不是background-image

body {
    background: url(http://www.desktopas.com/files/2013/06/Images-1920x1200.jpg);   
}

div.wrap {
    border: 5px solid #fff; /* Fall back, not used in fiddle */
    border: 5px solid rgba(255, 255, 255, .5);
    height: 400px;
    width: 400px;
    margin: 50px;
    border-radius: 50%;
}

div.inner {
    background: #fff; /* Fall back, not used in fiddle */
    background: rgba(255, 255, 255, .5);
    height: 380px;
    width: 380px;
    border-radius: 50%; 
    margin: auto; /* Horizontal Center */
    margin-top: 10px; /* Vertical Center ... Yea I know, that's 
                         manually calculated*/
}

注意(对于演示3):图像将根据提供的高度和宽度进行缩放,因此请确保不会缩小缩放比例。


Well if you want fully transparent than you can use

border: 5px solid transparent;

If you mean opaque/transparent, than you can use

border: 5px solid rgba(255, 255, 255, .5);

Here, a means alpha, which you can scale, 0-1.

Also some might suggest you to use opacity which does the same job as well, the only difference is it will result in child elements getting opaque too, yes, there are some work arounds but rgba seems better than using opacity.

For older browsers, always declare the background color using #(hex) just as a fall back, so that if old browsers doesn't recognize the rgba, they will apply the hex color to your element.

Demo

Demo 2 (With a background image for nested div)

Demo 3 (With an img tag instead of a background-image)

body {
    background: url(http://www.desktopas.com/files/2013/06/Images-1920x1200.jpg);   
}

div.wrap {
    border: 5px solid #fff; /* Fall back, not used in fiddle */
    border: 5px solid rgba(255, 255, 255, .5);
    height: 400px;
    width: 400px;
    margin: 50px;
    border-radius: 50%;
}

div.inner {
    background: #fff; /* Fall back, not used in fiddle */
    background: rgba(255, 255, 255, .5);
    height: 380px;
    width: 380px;
    border-radius: 50%; 
    margin: auto; /* Horizontal Center */
    margin-top: 10px; /* Vertical Center ... Yea I know, that's 
                         manually calculated*/
}

Note (For Demo 3): Image will be scaled according to the height and width provided so make sure it doesn't break the scaling ratio.

相关问答

更多
  • 那么,如果你想完全透明,你可以使用 border: 5px solid transparent; 如果你的意思是不透明/透明,那么你可以使用它 border: 5px solid rgba(255, 255, 255, .5); 在这里, a可以缩放a手段alpha,可以是0-1。 还有些人可能会建议你使用opacity ,它也可以做同样的工作,唯一的区别是它会导致子元素也变得不透明,是的,有一些解决方法,但rgba似乎比使用opacity更好。 对于旧版本的浏览器,请始终使用# (十六进制)声明背景颜 ...
  • 不幸的是, opacity元素使得整个元素(包括任何文本)都是半透明的。 使边框半透明的最佳方法是使用rgba颜色格式。 例如,这将给出一个具有50%不透明度的红色边框: div { border: 1px solid rgba(255, 0, 0, .5); -webkit-background-clip: padding-box; /* for Safari */ background-clip: padding-box; /* for IE9+, Firefox 4+, Ope ...
  • opacity适用于整个元素。 您可以使用父元素包装初始元素并放置边框,或者您可以使用rgba并将您的不透明度专门应用于背景,而不是整个元素。 http://css-tricks.com/rgba-browser-support/ opacity applies to the whole element. You can wrap the initial element with a parent element and put a border, or you can use rgba and apply ...
  • 您可以使用“透明”作为颜色。 在某些版本的IE中,出现黑色,但IE6以后我没有测试过。 http://www.researchkitchen.de/blog/archives/css-bordercolor-transparent.php You can use "transparent" as a colour. In some versions of IE, that comes up as black, but I've not tested it out since the IE6 days. ht ...
  • 有什么需要在背景以外的左侧/右侧? - 三十岁 @thirtydot也许在未来 - “是”,但现在让我们说“不”。 如果可能需要进入内容,这是一个选项: http : //jsfiddle.net/M5UqW/ (尝试调整窗口的大小) 它适用于IE7 +和所有现代浏览器。 HTML:
    content
    ...
  • 你可以使用: border: 5px rgba(0, 255, 0, 0.6) solid; 更新的例子 #white_box { position: absolute; min-width: 90%; max-width: 90%; margin: 0 auto; height: 92%; top: 0%; left: 5%; right: 5%; background: white; z-index: 1; widt ...
  • 这不是一件容易的事,因为图像是替换元素并且有一些限制(伪元素不起作用,插入框阴影不起作用,......)。 你有几个选择(可能还有更多,我只列出两个): 解决方案1:使图像成为普通div的背景图像并应用边框 - 此边框将自动与图像重叠。 顺便说一下,你可以使用background-clip和background-origin来改变这种行为。 问题:您需要知道图像的尺寸,以相应地调整div的大小。 解决方案2:将图像包装到另一个元素中,并声明应用边框的伪元素。 重要的是display:block上的img和p ...
  • 创建一个:after或:before元素,它绝对位于div的底部。 .box { position: relative; background-color: #F00; border: 1px solid #000; width: 50px; height: 50px; } .box:after { content: ""; width: 16px; height: 16px; position: absolute; background- ...
  • 像这样的东西? 小提琴 li a:hover { color: #222; border-bottom: 1px solid transparent; /* Added styles */ background-image: linear-gradient(white, white), url("http://img05.deviantart.net/7fa2/i/2015/185/2/1/neon_rainbow_stripes_by_wolfy9r9r-d8zv7ba.png"); ...

相关文章

更多

最新问答

更多
  • 获取MVC 4使用的DisplayMode后缀(Get the DisplayMode Suffix being used by MVC 4)
  • 如何通过引用返回对象?(How is returning an object by reference possible?)
  • 矩阵如何存储在内存中?(How are matrices stored in memory?)
  • 每个请求的Java新会话?(Java New Session For Each Request?)
  • css:浮动div中重叠的标题h1(css: overlapping headlines h1 in floated divs)
  • 无论图像如何,Caffe预测同一类(Caffe predicts same class regardless of image)
  • xcode语法颜色编码解释?(xcode syntax color coding explained?)
  • 在Access 2010 Runtime中使用Office 2000校对工具(Use Office 2000 proofing tools in Access 2010 Runtime)
  • 从单独的Web主机将图像传输到服务器上(Getting images onto server from separate web host)
  • 从旧版本复制文件并保留它们(旧/新版本)(Copy a file from old revision and keep both of them (old / new revision))
  • 西安哪有PLC可控制编程的培训
  • 在Entity Framework中选择基类(Select base class in Entity Framework)
  • 在Android中出现错误“数据集和渲染器应该不为null,并且应该具有相同数量的系列”(Error “Dataset and renderer should be not null and should have the same number of series” in Android)
  • 电脑二级VF有什么用
  • Datamapper Ruby如何添加Hook方法(Datamapper Ruby How to add Hook Method)
  • 金华英语角.
  • 手机软件如何制作
  • 用于Android webview中图像保存的上下文菜单(Context Menu for Image Saving in an Android webview)
  • 注意:未定义的偏移量:PHP(Notice: Undefined offset: PHP)
  • 如何读R中的大数据集[复制](How to read large dataset in R [duplicate])
  • Unity 5 Heighmap与地形宽度/地形长度的分辨率关系?(Unity 5 Heighmap Resolution relationship to terrain width / terrain length?)
  • 如何通知PipedOutputStream线程写入最后一个字节的PipedInputStream线程?(How to notify PipedInputStream thread that PipedOutputStream thread has written last byte?)
  • python的访问器方法有哪些
  • DeviceNetworkInformation:哪个是哪个?(DeviceNetworkInformation: Which is which?)
  • 在Ruby中对组合进行排序(Sorting a combination in Ruby)
  • 网站开发的流程?
  • 使用Zend Framework 2中的JOIN sql检索数据(Retrieve data using JOIN sql in Zend Framework 2)
  • 条带格式类型格式模式编号无法正常工作(Stripes format type format pattern number not working properly)
  • 透明度错误IE11(Transparency bug IE11)
  • linux的基本操作命令。。。