-1

I have a .sh file in which I want to run in Scala once a Gatling scenario has finished.

Does anyone have any code that would execute my sh script.

0

1 Answer 1

2

You should use the after block provided by Gattling :-

Refer this : https://docs.gatling.io/reference/script/core/simulation/#hooks

Here you can use after block :-

after {  println("Simulation is finished!")}

Rest all is pure scala so use @Andrey answer above

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.