jmeter start in no pause mode from command line - command-line

I have a test plan in JMeter using some Timers.
In some situations I would like to execute the test plan from the command line with all Timers disabled (Same as with the Menu Option "Start no pause"), is it possible to use this option from the command line?

It is not possible as of jmeter 2.13.
You should open an enhancement request.
A possible way to do it is to make timers use a property as pause and pass it as command line property with:
-JmyPauseProperty=0
Edit 10 may 2015:
You created bugzilla enhancement:
https://bz.apache.org/bugzilla/show_bug.cgi?id=57912

Related

Running the same Katalon test case with a different parameter

In our Katalon Studio project we have a test case.
We like that test case to accept a parameter from the command line when running the test suite.
For example, we like to run the same test case one time with parameter=A and another with parameter=B.
This will enable our Jenkins to run different tests without the need to duplicate test cases again and again.
Is there a way to do it?
Actually, you can't specify your parameters in the command line. But it seems to be in demand by the community (Katalon - How to pass user defined parameters from command line)
Solution :
You can define your parameters in profiles. Each profile can contains the same parameters with different values, and can be chosen during the Test Suite execution.
You can choose the profile you need manually or by passing it in command line. To do it you only have to use the -executionProfile option:
katalon -noSplash -runMode=console -consoleLog -noExit -projectPath="C:\MY_PATH" -retry=0 -testSuitePath="Test Suites/MY_TEST_SUITES" -executionProfile="Profile_A"
Finally, don't forget to convert your step input Variables into Global Variables where you need in your Test Case. You can do that manually or by script :
import internal.GlobalVariable as GlobalVariable
GlobalVariable.my_variable
docs: Katalon Docs - Execution Profile (v5.4+)
Hoping it will help you.
Like post above but in more way of showing where to look for the answers.
After You open Your Project, look for Profile :
Need to add to your script(it should be added be default be still remember if you will get error about missing keyword)
You are ready to make your "Build CMD"
From version 5.10, it is possible to override profile variables from the command line.
So, if you have a GlobalVariable.parameter=A as the default, you can add
-g_parameter=B
to the command line command to switch it to B.

How to stop the DebugView tool through command line parameters

In my project I want to start the DebugView tool through command line parameters to capture kernel logs automatically, but after finishing a task I want to stop this DebugView tool. How do I stop this tool through command line parameters?
It depends on what you want,
You could:
taskkill /IM dbgview.exe
But that might not guarantee all logs a written to the output file (I'm not sure what would happen).
You could use Debugview++ UI from https://github.com/djeedjay/DebugViewPP/releases
And define a 'stop' filter. This would stop the scrolling, but not stop collection of the data.
Leave a comment at https://github.com/djeedjay/DebugViewPP/issues/270 which I just filed to add a commandline option to do just this ;) And I will implement it.

trace32 cmm command to load CE symbols

I need to load CE symbols after every target reset in trace32 debugger. I need to every time click this button (load CE symbols)
And i need to select nt A8_0(jumpered) as shown in fig :
How can i do this using cmm command ? I also want to do this every 10 mins time interval like wait or sleep events?
I am almost sure that both the toolbar button and the dialog are not part of a regular TRACE32 installation. Did you know that TRACE32 users can add their own buttons and dialogs? (See commands MENU and DIALOG) The text "Which ASIC?" sounds really like a dialog spedific to your company/department.
So if you have colleagues, which provide scripts for your debug sessions, I suggest to ask them.
Otherwise you might want to try the following:
Check your CMM scripts and also script C:\T32\t32.cmm for the execution of any MENU and DIALOG commands.
Check your scripts for the executions of other scripts (DO command).
Check if one of the script call a *.men or *.dlg file (Menu or dialog description file), since menu or dialog definitions can be embedded into a CMM script or placed in separate files.
The command(s) you are searching should be somewhere in such a menu or dialog definition.
Search in your setup files for the string "nt A8_0(jumpered)".
Otherwise it might help if you provide the CMM scripts you use to start your debug session.
For executing any a CMM script after fixed time interval you can try the command GLOBALON TIME 600.s DO <myscript.cmm>
This will execute the script after 10 minutes.
So if you want to execute the script periodically you have to place this GLOBALON TIME command again in the end of your script.
However if you intention is to refresh the debug symbols after calling your makefile I suggest not to use GLOBALON TIME. Instead I suggest the following to steps:
Write a CMM script 'myscript.cmm' to reload your debug symbols (same as before)
Enable the remote API port of your TRACE32 application (RCL=NETASSIST in C:\T32\config.t32)
Trigger your CMM script to reload your debug symbols from your makefile after the build with the t32rem.exe console application. Lìke this:
C:\T32\bin\windows\t32rem.exe localhost port=20000 "DO myscript.cmm"

Opening a file in a Metro app from command line

I need a way to open a file in a Metro app from command line.
So far I've figured out how to start the app from command line without any third-party scripts
explorer shell:AppsFolder\Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader
but I haven't been able to figure out how to include a file name yet.
Launching
explorer shell:AppsFolder\Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader example.pdf
just opens up a default explorer window.
Any idea from Windows 8 experts on how to accomplish this without any third-party tools/cmdlets/etc.?
Note: In fact I'm using Windows 10 but I guess if there's a Windows 8 / 8.1 way to do it, it'll work for 10, too.
If you're still looking for the answer, the best way to open a file in a metro app is to use an execution string like a normal app protocol does. The execution string looks like this:
bingnews:[arguments, can be left blank.]
microsoftvideo:[arguments, can be left blank.]
netflix:[arguments, can be left blank.]
So, to start up netflix, it's as simple as typing in Start netflix: into the command line.
To find the execution string for an app, go here: Control Panel\Programs\Default Programs\Set Associations
More info and examples can be found here.
http://windowsitpro.com/windows-8/opening-windows-8-apps-command-prompt-or-script
http://www.itsjustwhatever.com/2012/10/28/launch-windows-8-metro-apps-from-a-desktop-shortcut-or-command-line/
PLEASE NOTE: To open an app WITHOUT A PROTOCOL (One not listed in the registry or under "Set Associations") use OP's method:
explorer shell:AppsFolder\[appuid]![appfullname]
The app UID is the folder name without the version number. For example,
4DF9E0F8.Netflix_2.11.0.8_x64__mcm4njqhnhss8
becomes
4DF9E0F8.Netflix_mcm4njqhnhss8
The app fullname is the [App author].[App name] For example, 4DF9E0F8.Netflix. 4DF9E0F8 is the author, and Netflix is the name.
Put it all together to get
explorer shell:AppsFolder\4DF9E0F8.Netflix_mcm4njqhnhss8!4DF9E0F8.Netflix
Store Apps can only be started by the shell. So try this:
explorer.exe shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
Or from run (Win+R):
shell:AppsFolder\Microsoft.WindowsAlarms_8wekyb3d8bbwe!App
If the app is the default handler then you can just launch the file or protocol. There isn't a good in-box way to launch a file into a non-default handler from the command line.
Windows Store apps aren't designed to run from the command line and there isn't a straightforward way to launch them from the command line. Apps which handle specific files or protocols receive them through FileActivatedEventArgs or ProtocolActivatedEventArgs rather than command line arguments
You could write a launcher app which uses CLSID_ApplicationActivationManager's IApplicationActivationManager to ActivateForFile a specific app.
The best way I've found to pass command-line arguments to the executable targeted by the shell command is via the Windows start command.
Using your example, you would end up with this:
start "" shell:AppsFolder\Microsoft.Reader_8wekyb3d8bbwe!Microsoft.Reader example.pdf
I don't have Microsoft.Reader installed, so I can't test that. However, I can verify that this pattern works with Windows Terminal. In this case, I pass it a command-line argument to tell it which profile I want to open.
start "" shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App new-tab -p "GitBash"
The first argument to the start command here — the empty string — is just the title of the window.
You can also pair this with cmd /c, which I've found is necessary for some launcher applications, such as my personal favorite, SlickRun:
cmd /c start "" shell:AppsFolder\Microsoft.WindowsTerminal_8wekyb3d8bbwe!App new-tab -p "GitBash"
I have a blog post with more info on running Modern apps from the command line, which you might find helpful in constructing these ridiculously obtuse commands.
Not sure if it works on Windows 8, but on Windows 10 I use this:
cmd /C start <app-name>:
For example, to start Slack:
cmd /C start slack:

Executing a commandline from JConsole

I've recently discovered the joy of going through JConsole.exe instead of J.exe to run various scripts. There's generally a noticeable performance gain.
However, sometimes I need to use wd winexec (calling ad-hoc programs for example) and in the console, 11!:0 (wd) support is not available.
Is there a way to send a command from JConsole.exe to the regular Windows command line interpreter? Or maybe a workaround?
You might try the task script. See the script itself for documentation.
J6: ~system/packages/misc/task.ijs',
J7: ~system/main/task.ijs
It contains utilities such as fork_jtask_, spawn_jtask_, shell_jtask_
You can load the script in both versions using: require 'task'