Hi Guys,
We are looking into transitioning from NeoLoad to LoadRunner.
Our Performance project has a dedicated Java framework with common methods to handle different types of business logic.
The team uses a JavaScript Action where the required logic can be executed by a simple JS snippet.
They would then either grab the object being retrieved from that specific method and have it provided to a downstream transaction, or simply move on to the next one, when the logic has been processed.
I have seen some tutorial where JAR files were added the classpath, and a method was then executed by a Java Vuser script.
I have exported a simple class that just prints out a message to see how that works. the class has no imports, no variables - nothing.
I use the following commands from the action block:
lr.start_transaction("EXTERNAL_LOGIC");
fully.qualified.class.name.SomeClass.main(new String[]{"x"});
When this is executed, it throw an error saying:
Error: Vuser started transaction "EXTERNAL_LOGIC", but did not reach a corresponding end transaction statement. The transaction ended automatically with status 'fail'.
I would have further explored that issue if the console had provided some more details than that vague description.
Can you guys help me with this?
I use version 24.1 build 264.
Thanks!