Skip to content

Query: How to pass values to the user defined variable in jmeter's jmx file via robot framework #6

@chidambaranathan-r

Description

@chidambaranathan-r

robot-framework version = 3.2.2 ; Python version = 3.9.0 ; jmeter version = 5.4.1

I have a JMX file in which "Number of Threads (users):" is defined as a variable "${__P(threads)}.

In robot-framework, how to pass values to this user defined variable in the jmx file via keywords defined in JMeterLib.

Example: How to include the same in the below keyword syntax of JMeterLib:- run jmeter D:/apache-jmeter-2.12/bin/jmeter.bat D:/Tests/Test1Thread1Loop.jmx D:/Tests/output1.jtl

I tried the below:

run jmeter ${jmeter_install_path} ${jmeter_jmx_path} ${jmeter_log_path} -Jthreads=10

but it thrown below error,

"AttributeError: module 'string' has no attribute 'split'"

Can I get some clue on how to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions