Mohanapriya
Mohanapriya

Reputation: 1

How to give jdbc connection in gatling

val testData2 = jdbcFeeder("jdbc:oracle:thin:@10.86.55.77:7777:studiodb", "sample", "sample", """

insert into  RunRecords(username,password) values('mohana','priya')""")

While simulating , Values are inserted but I am getting " Invalid SQL statement" error.

Please help.

Upvotes: -1

Views: 2950

Answers (1)

Stephane Landelle
Stephane Landelle

Reputation: 7038

You're supposed to pass a SELECT SQL query!!! https://docs.gatling.io/reference/script/core/session/feeders/#jdbc-feeder

Upvotes: 0

Related Questions