You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by bu...@apache.org on 2008/06/24 14:47:37 UTC

DO NOT REPLY [Bug 45267] New: Feature request - loading property files from GUI

https://issues.apache.org/bugzilla/show_bug.cgi?id=45267

           Summary: Feature request - loading property files from GUI
           Product: JMeter
           Version: unspecified
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: jmeter-dev@jakarta.apache.org
        ReportedBy: krzysieq@gazeta.pl


Not sure this is the right place to report such issue, as it is not really a
bug, although in my project we tend to think of it this way...

It would be really nice, if it was possible to load a bunch of properties from
a file after the application is started. It is a real pain in the neck to
switch the app on and off just because we need to test another machine or
environment. 

The way I would see this handled would be to add to the "User Defined
Variables" configuration element a possibility to feed it from a file, as well
as delete and sort the variables listed there. 

The other possible solution is to be able to switch, also during runtime, the
file that is loaded as user.properties. But I imagine this would be more
difficult.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45267] Feature request - loading property files from GUI

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45267


Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|normal                      |enhancement
             Status|NEW                         |NEEDINFO




--- Comment #1 from Sebb <se...@apache.org>  2008-06-24 05:54:34 PST ---
Changing to enhancement.

The property dispay:

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Property_Display

can be used to change/add/delete properties.

Would this be sufficient?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45267] Feature request - loading property files from GUI

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45267


Krzysieq <kr...@gazeta.pl> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |krzysieq@gazeta.pl




--- Comment #2 from Krzysieq <kr...@gazeta.pl>  2008-06-24 06:16:31 PST ---
I see what You mean now, but I don't think this solves our problem. I can
change the system or jmeter properties, but I cannot reload the additional
property file - even changing the value of the user.properties property doesn't
trigger the reload. If it would, this would be the best possible solution I
think of. 

A little bit bigger picture:

What we have in our project is a property file per environment. Each of these
has exactly the same keys, they only differ by the values. So we use the
property names in all tests, and our automated testing campaigns supply the
tests with different property files. This is easy and efficient when done
commandline, but on the GUI we loose this, and what we're left with is an
amazing pain in the neck of having to restart the GUI with another property
file each time. Does this shed some light on the problem?


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org


DO NOT REPLY [Bug 45267] Feature request - loading property files from GUI

Posted by bu...@apache.org.
https://issues.apache.org/bugzilla/show_bug.cgi?id=45267


Sebb <se...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEEDINFO                    |NEW




--- Comment #3 from Sebb <se...@apache.org>  2008-06-24 06:42:06 PST ---
You can provide the initial property file on the GUI command line using the -q
flag.

What you cannot do is reload an entire property file after starting the GUI.

However, nor can one run more than 1 test file using JMeter in non-GUI mode, so
in that sense, the GUI is no different.

As a temporary work-round, you could use a beanshell function as the value of a
dummy variable on the Test plan. This will be executed at the start of the
test.

Something like:

DUMMY     ${__BeanShell(loadProperties("file.props"))}

where the method loadProperties is defined in a beanshell function init file.

The example .bshrc file already shows how to set JMeter properties so you would
just need to load the new ones.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org