XPath and XPath2 extractors insert a new line in the failure message which breaks CSV log file formatting for the listener.
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 65/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- testing-qa
Hướng nghiên cứu
Bắt đầu với src/components/src/main/java/org/apache/jmeter/extractor/XPathExtractor.java và XPath2Extractor.java tại các lệnh gọi thông báo lỗi được liên kết trong issue. Kiểm tra cách văn bản được nối thêm đi tới đầu ra CSV của listener, sau đó bổ sung coverage nếu dự án có vị trí kiểm thử phù hợp. Hoàn thành nghĩa là các lỗi của extractor vẫn giữ lại văn bản giải thích mà không chèn một ký tự xuống dòng làm gián đoạn quá trình xử lý CSV.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Using an XPath or XPath2 extractor on a http sampler.
If the http sampler fails, or the response is empty, or not in the expected format, the extractor fails and appends text to its failure message
This appended text inserts a new line character before the appended text.
The new line character is logged by listener when logging the failure message, and breaks the file format when the listener is logging as CSV.
These files
ass.setFailureMessage(thrown.getLocalizedMessage()+"\nSee log file for further details.");
Line 199 XPath Extractor
ass.setFailureMessage(thrown.getLocalizedMessage()+"\nSee log file for further details.");
[Line 165 XPath2] (https://github.com/apache/jmeter/blob/c7279348335b820c35ee570462cb2e0b4eb1c370/src/components/src/main/java/org/apache/jmeter/extractor/XPath2Extractor.java)
Example CSV output :
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Filename,Latency,Encoding,SampleCount,ErrorCount,Hostname,IdleTime,Connect
2023/02/03 10:16:46.263,213,Test,502,FailureMessage,Thread Group 1-1,text,false,"Premature end of file.
See log file for further details.",0,0,1,1,null,,0,ISO-8859-1,1,1,MachineName,0,0
This should look like
timeStamp,elapsed,label,responseCode,responseMessage,threadName,dataType,success,failureMessage,bytes,sentBytes,grpThreads,allThreads,URL,Filename,Latency,Encoding,SampleCount,ErrorCount,Hostname,IdleTime,Connect
2023/02/03 10:16:46.263,213,Test,502,FailureMessage,Thread Group 1-1,text,false,"Premature end of file. See log file for further details.",0,0,1,1,null,,0,ISO-8859-1,1,1,SBGMLXNK094VJCR,0,0
The problem this causes is the file then cannot be processed as a valid CSV without manually correcting/removing the new lines, eg a post test JMeter report cannot be generated as it cannot read the file as a CSV format.
- Ngôn ngữ chính
- Java
- Star
- 9.6k
- Fork
- 2.3k
- Merge trung bình
- 18 giờ 33 phút
- Pull request đã merge (30 ngày)
- 12
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của apache/jmeter
-
[Bug] Typo in assertion property name: "Asserion.test_strings" missing 't'Có thể đã có người làm @waterWang đã nhận 47 ngày trước. Đang mởdefect to-triage
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
apache/jmeter#6751 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
RandomDate ignores inclusive end date and throws when start == endCó thể đã có người làm @weillercarvalho đã nhận 323 ngày trước. Đang mởdefect to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
apache/jmeter#6609 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation to-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày
-
P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của apache/jmeter
Issue tương tự
-
Bump up AWS SDK to 2.54.3Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
jenkinsci/ec2-plugin#2041 ·
-
L: github:actions L: php:composer
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
dependabot/dependabot-core#16493 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
SHOW EDIT of a subclass for an object of its superclass: the form fails to open with AssertionErrorĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
FlashyReese/sodium-extra#608 ·