Bat file is missing in jmeter bin folder - batch-file

I just tried to install jmeter - (Apache-j meter-5.1.1) but when I view the bin folder bat file is missing. My configuration details: version of jdk is 12.0.2, my operation system is 64 bit. View the screenshot of bin folder -
https://www.screencast.com/t/apWQkxP3dD4h

Type Windows Batch File is a file type with extension .bat
You have such jmeter file in your screenshot
A batch file is a script file in DOS, OS/2 and Microsoft Windows.
The filename extension .bat is used in DOS and Window

The jmeter.bat file can be obtained from JMeter sources at any time if you removed it by accident.
However in fact you do have the file:
You might want to configure Windows Explorer to show file extensions
In general I would recommend launching JMeter from Windows Command Prompt as in case of i.e. Java misconfiguration you will not be able to see the output given you launch JMeter by double-clicking the shortcut because it will blink and close immediately.
More information: How to Get Started With JMeter: Part 1 - Installation & Test Plans

Just double click on file type named as Jmeter with type as "Windows Batch File" or else open it from command prompt/terminal.
refer to the attached screenshot.
Cliek here to open a screenshot

Related

How to run batch file inside Visual Studio 2022 Developer Command Prompt

I recently upgraded to VS2022 I cannot find a way to start developer command prompt and run a batch file inside it. Previously I called vsvars32.bat and it set all variables and paths, allowing me to continue in my .bat file. In the current version it does not work and when I call VsDevCmd.bat, the rest of commands in my batch file are not executed.
Is there a way to call developer command prompt or set paths and variables from batch file and continue?
I did not find any other solution so ended up using pipe like this:
type cmds.txt | "c:\Program Files\Microsoft Visual
And cmds.txt contains batch file invocation:
buildall.bat
Not pretty, but works.
I just want to thank you and confirm that this was the only way to automate compilation of a C++ project trhough VS Code.
I tried setting up tasks.json in VS Code and multiple other setups but after 4 days of that nothing worked except your solution PiotrK.
So I ended up preparing a TXT file with a list of commands like so:
set PATH=%PATH%;"C:\Users\DEKOLEV\AppData\Local\Programs\Microsoft VS Code\bin"
cd "C:\path\to\some\folder\with\C++\source\code\files"
code .
}
and I piped the text file directly to the Developer Console link. So now I have a batch file containing the following
type "C:\Some\path\to\file\commands.txt" | "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio 2022\Visual Studio Tools\VC\x64 Native Tools Command Prompt for VS 2022.lnk"
Starting the batch file starts the x64 developer command prompt and runs VS Code from it which enables VS Code to compile the source C++ files with the environment x64 Native Tools Command Prompt for VS 2022 provides.
I don't have enough points to post a comment so I am posting this feedback as an answer. :)

Jmeter jp#gc - WebDriver Sampler in a batch file is running from local command prompt but not from windows command prompt in Jenkins

I am having a Frame work with relative paths. Jmeter scripts having jp#gc - WebDriver Sampler in headless mode. This batch works fine from local command prompt but when I run the batch file using "Execute Windows batch command" in Jenkins it doesn't works.
Screenshot of batch file execution from command prompt:
enter image description here
Screenshot of same batch file execution from Jenkins:
enter image description here
As we can see in above screenshot that "org.openqa.selenium.remote.ProtocolHandshake createsession" is not triggered from jenkins
Framework structure: enter image description here
batch file is available in batch, under tools we have the Jmeter and so on...
enter image description here
Screenshot of the commands to call the script from batch file enter image description here
enter image description here
Always take a look a jmeter.log file, it should contain at least a clue for the error if not the root cause. If you cannot figure out the reason yourself - add the file to your question so we could take a look.
One of possible reasons I can think of at the moment is that if you installed Jenkins as the Windows Service it cannot interact with the desktop so you need to allow this
Another option is ticking "Use Chrome headless mode" box:
More information: Headless Execution of Selenium Tests in Jenkins

Execute Process Task runs successfully but does not unzip the required .zip file- Visual Studio 2019

When I execute the package, it opens up the 7Zip window. I want that the files are unzipped to the 'WorkingDirectory' New folder. No error is thrown. The 7Zip window opens up and it can be seen that the desired file has NOT been unzipped. I have included screenshots for reference.
enter image description here
enter image description here
7zFM.exe is the GUI file manager. I tried with 7z.exe as well but that too didn't work. I had other archive tools apart from 7Zip installed in my system like BreeZip, WinRAR. The folder which I was trying to unzip was zipped using BreeZip.
I watched few youtube videos where, for unzipping they used compressed files like the one shown in SS1 unlike the ones compressed with WinRAR or BreeZip. Following the same lines, I uninstalled BreeZip and WinRAR and tried unzipping the folder given in SS1 with Execute Process Task task but it still didn't work(I might be missing something for sure but unable to get to it).
Then I tried working the same with 'Script Task' and it worked successfully.
Attachments:
SS1 zipped folder- showing the compressed file which I unzipped using 7Zip
enter image description here
script task SS
enter image description here

Command Line Installation with SCCM 2012

I have a few applications that I am trying to deploy with SCCM 2012 but the installations are failing through the application catalog. So what I have for the deployment type is a script installer. I have "cmd.exe" (Without quotations) in the Installation program field and "Installer.bat" in the installation start in field.
When I look at the ccmcache folder, all the contents over that application are there but the following error displays the Software Center:
0x8007010B(-217024629)
I have done some reading online and the "10B" is a common command line error for invalid directory. I have tested the batch file when hard coding a path but my question is, how can I edit the batch file or SCCM to pull from the CCMCache path where the files are downloaded to on the local client? Currently the Batch File is simply:
#echo off
ApplicationName.exe
Do I need to edit the file to cd into the CCMCache folder where the files are placed? How can I get the batch file to run the executable that is downloaded to the CCMCache folder?
Thank You!
You need to have the full path to the installation in your script
#echo Off
\\path to .exe
The way the command is written will not be able to find the .exe file. You need to add the full unc path to the .exe into your .cmd file. You should have your installation .exe and .cmd file in the same location on the distribution share
Recommended Solution:
Before starting, since you are only launching an exe with your batch file, I would recommend just using your ApplicationName.exe as your command line parameter in SCCM instead of using a batch. This will eliminate the need to engineer any further.
Modifying the existing solution to work:
If you do still want to use a batch file, keep a few things in mind. The syntax you are using to launch the batch file will not work. I would recommend just using the batch file name "installer.bat" as your command line. If you still want to preface the batch with the cmd.exe, you absolutely need to use the /c switch with it
cmd.exe /c installer.bat
If you don't use /c the console host will only open to a promopt and not execute your batch.
This is not an ideal solution though because using "cmd.exe /c" will set your working directory to the location of cmd.exe (ie "C:\windows\system32") and since your content is staged in ccmcache, you will need to specify its location within your batch. To do this, you would use %~dp0 variable which gives you the directory the current batch is running from. This means modifying your batch to read
#echo off
%~dp0ApplicationName.exe

CMD instead of running command just opens it

OS Win7, GAE 1.7.6, Python 2.7.3
Working on Google app engine project with 2 other people, project leader gave us sample data via sampleData.cmd to run it inside.
nameOfTheApp\main>sampleData
On other 2 computer this command starts to download files, on my just returns.
appcfg.py upload_data --config_file=bulkloader.yam...etc
In other words it just pop up in my text editor, and in CMD, but it doesn't run it.
How to force this command to run?
EDIT: Open sampleData.cmd with editor and c/p content in CMD
python appcfg.py upload_data --config_file=bulkloader.yam...etc
It returns python:can't open file 'appcfg.py' [Errno 2] No such file or directory
ANSWER:
Problem was that I associated .py files with my text editor, when changed to python.exe, it works...
Problem was that I associated .py files with my text editor, when i changed it to .exe, it works...

Resources