jmeter-to-k6
jmeter-to-k6 copied to clipboard
Data driven script example please (Unrecognized element: JDBCSampler)
Is your feature request related to a problem? Please describe.
I'm new to k6, and tried to convert my data driven jmeter script to k6, but I'm getting
Unrecognized element: JDBCSampler
$ jmeter-to-k6 -o k6 TestPlan_JDBC_DB_Example.jmx
(node:8151) UnhandledPromiseRejectionWarning: Error: Unrecognized element: JDBCSampler
at element (/usr/lib/node_modules/jmeter-to-k6/src/element.js:61:11)
at module.exports (/usr/lib/node_modules/jmeter-to-k6/src/element.js:3:10)
at elements (/usr/lib/node_modules/jmeter-to-k6/src/elements.js:20:19)
at module.exports (/usr/lib/node_modules/jmeter-to-k6/src/elements.js:2:10)
at Object.hashTree (/usr/lib/node_modules/jmeter-to-k6/src/element/hashTree.js:4:10)
at element (/usr/lib/node_modules/jmeter-to-k6/src/element.js:66:36)
at module.exports (/usr/lib/node_modules/jmeter-to-k6/src/element.js:3:10)
at elements (/usr/lib/node_modules/jmeter-to-k6/src/elements.js:20:19)
at module.exports (/usr/lib/node_modules/jmeter-to-k6/src/elements.js:2:10)
at Object.SetupThreadGroup (/usr/lib/node_modules/jmeter-to-k6/src/element/SetupThreadGroup.js:26:26)
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8151) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:8151) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
The TestPlan_JDBC_DB_Example.jmx is available here.
Describe the solution you'd like
data driven jmeter scripts can be converted to k6.
Describe alternatives you've considered
Provide data driven k6 scripts as official k6 examples.