I ran suddenly to "There is no simulation script. Please check that your scripts are in user-files/simulations" problem

4,453 views
Skip to first unread message

Henri Lämsä

unread,
Dec 27, 2013, 7:24:00 AM12/27/13
to gat...@googlegroups.com
Hi,

I was running Gatling fine with Eclipse until now. I recorded a new scenario and I actually ran the simulation once successfully. But after some modifications to the scenario I can't run any simulations. I get error "There is no simulation script...". I tried removing the new scenario and rerun Engine but I still get the same error and I don't seem to get rid of it. I don't really believe the scenario is causing the problem. There must be something else wrong.

My project structure is: Engine, Recorder and IDEPathHelper are in a same package under src/test/scala. Scenario classes are under another package but they are also under the same source folder. src/test/scala is set as source folder. All the configuration files are under srec/test/resources which is also set as source folder. I can build the project without errors in Eclipse and in command line also. I've tried clean and build and update maven project from Eclipse but no help. I've also tried to remove the source folders from build path and set them again. I still get the error. It's weird because everything was running fine just moments ago. Any help would be appreciated

Thanks in advance. Henri.

Stéphane Landelle

unread,
Dec 27, 2013, 1:57:23 PM12/27/13
to gat...@googlegroups.com
This error means that you have no class that extends Simulation in the target/classes directory.
I can only guess what happens: some IDE error, or maybe you accidentally removed "extends Simulation" from your simulation class?


2013/12/27 Henri Lämsä <henri...@gmail.com>

--
You received this message because you are subscribed to the Google Groups "Gatling User Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gatling+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Henri Lämsä

unread,
Dec 30, 2013, 4:38:27 AM12/30/13
to gat...@googlegroups.com
I had to run maven build from command line and after that it works again. For some reason running maven build in Eclipse didn't work. However, problem solved!

Stéphane Landelle

unread,
Dec 30, 2013, 6:26:39 AM12/30/13
to gat...@googlegroups.com
Looks like a eclipse/m2e issue.
Thanks fro your feedback.


2013/12/30 Henri Lämsä <henri...@gmail.com>

Ayush Anand

unread,
Feb 2, 2017, 5:11:09 AM2/2/17
to Gatling User Group, slan...@excilys.com
I am also running to same problem. It was working for past many days but doesn't work after system restart though I have all files in right place & they extend to Simulation

There is no simulation script. Please check that your scripts are in user-files/simulations

>> *******:gatling-charts-highcharts-bundle-2.2.3 $$$$$$ ls user-files/simulations/computerdatabase/
>> BasicSimulation.scala advanced apisimulation.scala

Code ->

class apisimulation extends Simulation

Michal Farkas

unread,
Feb 12, 2018, 4:08:46 AM2/12/18
to Gatling User Group
same problem here (yes, it is february 2018), i just copied gatling to another machine (win 10 -> win 10), and suddenly there is no simulation script (tried permissions, run as admin, everythings looks good). no idea how to solve this.

proposal: error message should display ABSOLUTE path, maybe it searches somewhere else?
proposal: if the problem is elsewhere, then display APPROPRIATE error message, stack trace, whatever might help ("no simulation script" is really misleading)

Michal Farkas

unread,
Feb 12, 2018, 7:57:46 AM2/12/18
to Gatling User Group
solved! i modified gatling.bat this way: after the label "run:" i forced the java variable like so:
set JAVA="C:\Program Files (x86)\Java\jdk1.8.0_161\bin\java.exe"
i.e. the error message was misleading in this case
Message has been deleted

graceperf

unread,
Oct 26, 2021, 3:04:27 PM10/26/21
to Gatling User Group

It was a compilation error in my case. For troubleshooting, set the log level to WARN in logback.xml:

<root level="WARN">
 <appender-ref ref="CONSOLE" />
</root>

Reply all
Reply to author
Forward
0 new messages