How to embed a jmeter jmx file in an executable file - build

I have created a test script jmx from Jmeter and I'm able to execute it in GUI mode and in non-GUI mode,
but it needs always jmeter application as prerequisite in order to invoke the jmx script as input to jmeter application.
Now I would build the jmx script in an executable file to launch it from cli and free from jmeter application.
Is there a way to build the jmx script (and eventually qith essential jmeter jars) in only one executable file ?
For example I have created the test.jmx.
It prerequisites jmeter and it can executed as /jmeter -n -t test.jmx
I would build it as or test.exe
and run it as test.exe
Is it possible ?

If you really need an ".exe" take a look at Launch4j project
If you just want to have the way of running a .jmx script without having to install JMeter first you can consider the following alternative options:
JMeter Maven Plugin (possibly connected with Maven Wrapper so you won't have to install Maven)
Taurus tool which can automatically download and install JMeter

thanks #Dmitri for you answers and links which has triggered the solution to the question
Other important links applied to build jmeter project with maven are been:
https://sarkershantonu.github.io/2020/09/04/maven-jmeter-reporting/
and
https://github.com/jmeter-maven-plugin/jmeter-maven-plugin/wiki/Adding-Excluding-libraries-to-from-the-classpath

Related

Buildbot : how to manually launch a build?

We are using BuildBot (http://buildbot.net/) to build our C++ project.
Is there any way to run the exact build commands from the command line that are executed when you hit the "force build" button on the web UI? I'm trying to debug a build problem that is present on our build server but not on our local machines, and don't want to spam the email list each time it fails.
Thank you,
Sean
To run a command COMMAND [ARG]... in a clean environment use env --ignore-environement COMMAND [ARG]....
I assume buildbot sends an http request to the buildbot server asking it to build when you hit the force build button. So if you work out what it's senfing you can send the same thing using wget or python or whatever?
That may or may not do what you're trying to do? I guess there's a difference between running buildbot builds from the cmd line and duplicating a buildbot build without using buildbot.

TeamCity buildstep for generating WSDL file

For a project we need to the wsdl files to be published in the artifacts folder.
For continuous integration we use TeamCity.
The project type is a Windows Communication Service Project.
Is it possible to have a buildstep that will generate the wsdl files from a webservice project?
Yes you can do that just from the project. Use a nant script or similar that can execute command line for you. Have the script execute the tool against your project, you can use CmdHelper for example. http://www.stephan-brenner.com/?page_id=82

Jetty runner is not executing the war file

I have a project named as test using spring,hibernate and struts.It is running when am using eclipse.But when i export this project as war and execute it using jetty runner in command prompt it just extracted the project and listed the contents in the browser.But i want the project to be executed.I have tried with some other simple web application war using the same procedure and it works fine.But in my project its not working with jetty.
here is my code for jetty
D:\>java -jar jetty-runner-7.0.0.v20091005.jar test.war
i just listing some console output of jetty
INFO::RUNNER
NO tx manager found
deploying file:D:/test.war #/[webAppContext#86f241#86f241/,null,file:D:/test.war
can any one tell me a solution for my problem
1) use a newer version of runner, 7.6.3.v20120416
2) what context are you trying to navigate to, you might want to experiment with some of the other cli options on the runner to set the context and whatnot from the command line and experiment with that. This site has some good information on using this artifact as well.

deploying scalatra onto Jetty

How does one deploy scala or scalatra onto Jetty servlet container? Does anyone have experience or can point me to some resources online?
If you're using sbt, run the package command from within the sbt shell. This will create you a war file in the target dir. You can drop that into jetty's webapps directory and configure a context xml file in its contexts directory.
If you're using maven, I believe the command you want is mvn package.
Are you using Simple Build Tool (SBT) for your project? If you do, it's as easy as running "sbt jetty"
Check it out: http://code.google.com/p/simple-build-tool/

Tapestry webapp with embedded Jetty

How can I configure a Tapestry5 project to run standalone (via java -jar) with embedded Jetty?
I'm looking for a short "recipe" regarding Tapestry5, Jetty, configuration of servlets/ handlers/ whatever is needed to connect the dots...
I've seen a few dots: How to Create an Executable War, Configuring Tapestry (ref Tapestry as servlet filter)
Edit: I'm thinking about a standalone running webapp due to server circumstances. It doesn't have to be embedded Jetty, but I can't rely on a stable appserver. Still looking for a recipe, though, so I don't spend much time on dead ends...
Also, I'd like for Jenkins (Hudson) to be able to stop and start the server automatically when deploying updates - I don't know if that influences what I can do with Jetty, f.ex.
Well, i believe this is a general "how to run a war question". Assuming you indeed have a war, you can use jetty or winstone to "run" it - see :
http://winstone.sourceforge.net
and
http://www.enavigo.com/2008/08/29/deploying-a-web-application-to-jetty/
In the first case, you can directly do
java -jar winstone.jar --warfile=<warfile>
https://github.com/ccordenier/tapestry5-hotel-booking/
<-- Check its maven build
http://tapestry.zones.apache.org:8180/tapestry5-hotel-booking/signin
I did some digging, and this is the short recipe I basically ended up following:
Start with the Maven Jetty plugin as configured in the pom.xml of the Tapestry 5 archetype
Add the stopKey and stopPort attribute to Maven Jetty plugin configuration
Let Jenkins CI run maven target jetty:stop and then clean install
Let Jenkins run shell script mvn jetty:run &
Voila - my Java app is up and running with automatically updated code, without any appserver.