Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

jdbc sampler to run script (multiple statements)

Đang mở
#6,467 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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ó
5/5
Thời gian dự kiến
Hơn một tuần
Mức phù hợp với người mới
30/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
databases

Hướng nghiên cứu

Issue đề xuất một sampler mới có tên “JDBC Script Request” với một Script window dành cho nhiều câu lệnh. Hãy xem xét JDBC sampler và Query window hiện có, sau đó xác định cách thức thực thi câu lệnh, giao dịch, lỗi, commit và rollback phải hoạt động; hoàn thành có nghĩa là các script chạy như một sampler duy nhất với hành vi giao dịch được yêu cầu.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

enhancement to-triage
Use case
  1. Often we need to run many statements (e.g. to drop then create the tables, indexes and keys needed by a test)
    Splitting each of these into individual samplers is tedious and doesn't help in that they either all work or all fail.
  2. Inserting lots of static data ready for a testing is something which really needs the ability to run as a script (i.e. all the inserts in a single sampler).
  3. combine dependent inserts (i.e those joined by foreign key) into one transaction and sampler). E.g. a user and their address.
Possible solution

a new sampler called "JDBC Script Request", which can execute any number of statements pasted into the "Script" window (which is more or less the same as the "Query" window).
Ideally a check box to run the script in a separate transaction, with an auto rollback after completion (i.e. we would need to add a commit; statement as the last line of the script, in which case the rollback does nothing. that way if one statement fails, they all fail (and get rolled back).

Possible workarounds

No response

JMeter Version

5.6.3

Java Version

21 (zulu)

OS Version

win 11

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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của apache/jmeter

Tất cả issue của apache/jmeter

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.