Highlighted
Contributor.. Contributor..
Contributor..
102 views

Loadrunner 2020 SP1, CLI Jmeter

Hi is there anyway to load command line arguments for Jmeter scripts with the CLI tool ?

0 Likes
2 Replies
Highlighted
Trusted Contributor.
Trusted Contributor.

I don't know what the CLI tool is, but as you know jmeter can easily be run from the CLI such as powershell, etc.   It can also be run using the same command from automated pipelines like Bamboo.

Does this help, or I have told you what you already knew?

 

 

0 Likes
Highlighted
Contributor.. Contributor..
Contributor..

this is the cli tool https://admhelp.microfocus.com/lr/en/2020/help/WebHelp/Content/Controller/scenario-run-cli.htm  And you can pass an XML file to the loadrunner Scenario:

-<CLIRun>

	-<Groups>
		-<Group>
			<Name>{Group Name}</Name>
			<Vusers>{Number of Vusers}</Vusers>
			-<Script>
				<Name>{The name of the script}</Name>
				<Path>{Full path leading to the script}</Path>
				<JMeterPath>{Path to the JMeter of the script}</JMeterPath>
				<JMeterAdditionalPropertiesFilePath>{Path to the file containing additional properties for JMeter}</JMeterAdditionalPropertiesFilePath>
					<!--Used only in the case of JMeter Protocol Type scripts-->
			</Script>
			-<AssignedHosts>
				<!-- NOTE: Make sure that the host defined here is also defined in the Hosts section below-->
				<HostName>{Name of the host that will be used by the group.}</HostName>
				<HostName>...</HostName>
			</AssignedHosts>
		</Group>
	</Groups>
But no option to pass command line arguments for the Jmeter Script.

 

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.