Skip to main content
deleted 13 characters in body
Source Link
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

On a Windows based system,

Open notepad and write the below piece of code in it.

@ECHO OFF 

C:\ set SAVESTAMP=%DATE:/=-%@%TIME::=-%
C:\ set SAVESTAMP=%SAVESTAMP: =%
C:\ set SAVESTAMP=%SAVESTAMP:,=.%.jtl

jmeter -n -t "Your .jmx file path" -l %SAVESTAMP%

Now save this as a batch cript - filename.bat

Go to the location where you saved your file and run it by double-click or select and enter.

This should do the trick for you.

On Linux based system you might want to run it with a similar shell script.

On a Windows based system,

Open notepad and write the below piece of code in it.

@ECHO OFF 

C:\ set SAVESTAMP=%DATE:/=-%@%TIME::=-%
C:\ set SAVESTAMP=%SAVESTAMP: =%
C:\ set SAVESTAMP=%SAVESTAMP:,=.%.jtl

jmeter -n -t "Your .jmx file path" -l %SAVESTAMP%

Now save this as a batch cript - filename.bat

Go to the location where you saved your file and run it by double-click or select and enter.

This should do the trick for you.

On Linux based system you might want to run it with a similar shell script.

On a Windows based system,

Open notepad and write the below piece of code in it.

C:\ set SAVESTAMP=%DATE:/=-%@%TIME::=-%
C:\ set SAVESTAMP=%SAVESTAMP: =%
C:\ set SAVESTAMP=%SAVESTAMP:,=.%.jtl

jmeter -n -t "Your .jmx file path" -l %SAVESTAMP%

Now save this as a batch cript - filename.bat

Go to the location where you saved your file and run it by double-click or select and enter.

This should do the trick for you.

On Linux based system you might want to run it with a similar shell script.

Source Link
IAmMilinPatel
  • 7.8k
  • 7
  • 43
  • 68

On a Windows based system,

Open notepad and write the below piece of code in it.

@ECHO OFF 

C:\ set SAVESTAMP=%DATE:/=-%@%TIME::=-%
C:\ set SAVESTAMP=%SAVESTAMP: =%
C:\ set SAVESTAMP=%SAVESTAMP:,=.%.jtl

jmeter -n -t "Your .jmx file path" -l %SAVESTAMP%

Now save this as a batch cript - filename.bat

Go to the location where you saved your file and run it by double-click or select and enter.

This should do the trick for you.

On Linux based system you might want to run it with a similar shell script.