I am trying to build a REST webservice which helps me record a Neoload script using the Neoload wrapper for selenium. When I run the completed code compiled into a runnable jar, I am getting the results as expected. i.e. open NeoloadGUI.exe, close any Open Proojects, start recording and carry out selenium steps adding transactions wherever required and finally stop the recording. However, when I run the jar file from the webservice using the command Runtime.getRuntime().exec("java -jar C:\\<jarfilename>.jar; the execution flow doesn't start the recording and no selenium steps are carried out.
I am not sure if this is the correct forum for this question. I just wanted to check if there is something in the Neoload wrapper that prevents the functions being called from a webservice.