Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

jdbc sampler to run script (multiple statements)

Aperta
#6,467 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
30/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
java
Ambito
databases

Direzione di ricerca

La issue propone un nuovo sampler “JDBC Script Request” con una Script window per più istruzioni. Esamina il JDBC sampler esistente e la Query window, quindi definisci come devono funzionare l’esecuzione delle istruzioni, le transazioni, gli errori, i commit e il rollback; il lavoro è completato quando gli script vengono eseguiti come un unico sampler con il comportamento transazionale richiesto.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
Java
Stelle
9.6k
Fork
2.3k
Merge medio
18h 33m
PR unite (30g)
12

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di apache/jmeter

Tutte le issue di apache/jmeter

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.