You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by Philippe Mouawad <p....@ubik-ingenierie.com> on 2021/11/14 17:54:27 UTC

Questions following switch from Eclipse to IntelliJ

Hello,
I have switched today to using IntelliJ as my future hopefully preferred
IDE for JMeter.

I followed below tutorial which is not up to date anymore I think:

   -
   https://github.com/apache/jmeter/blob/c7279348335b820c35ee570462cb2e0b4eb1c370/CONTRIBUTING.md


1) Using IntelliJ IDEA 2021.2.3, I didn't get a popup to be able to select:

   - Make sure Create separate module per source set is selected
   - Make sure Use default gradle wrapper is selected

2) I used gradle runGui task to debug JMeter, is it the advised way ?
If not, maybe the advised way should be documented.


-- 
Regards
Philippe M.

Re: Questions following switch from Eclipse to IntelliJ

Posted by Vladimir Sitnikov <si...@gmail.com>.
>What do you mean ?

https://www.jetbrains.com/help/idea/project-security.html#open_first_time

>Maybe you can share this configuration in the document.

I think we could even share the configuration via .idea/... file (see
https://www.jetbrains.com/help/idea/run-debug-configuration.html#share-configurations
)

>Does it make startup faster ?

The problem is to keep classes up to date.
In other words, something should compile the classes and resolve the
dependencies appropriately.
If you delegate everything to Gradle, then there's a single source of truth.
If you do the compilation via IDE (IDEA or Eclipse), then they might do it
slightly differently.
I have not explored that, so I can't tell :-/

Then, there's an issue that JMeter expects certain jar layout, so jars must
be copied before JMeter launches :(
Removing Gradle warnings (easily doable now), and moving to (it would
require some work)
https://docs.gradle.org/current/userguide/configuration_cache.html should
improve the startup time.

>Does it allow code reload during debugging ?

It works with both debugging and when running NewDriver via "Application ->
..." run configuration.
The reload is triggered when you modify a class and build the module via
Build -> build module '...' or "right-click on module -> build".

In case you wonder, I was able to launch NewDriver as follows:
classpath: jmeter.src.dist.main
working directory: ...\jmeter\bin (I added bin)

Vladimir

Re: Questions following switch from Eclipse to IntelliJ

Posted by Philippe Mouawad <ph...@gmail.com>.
Thanks for rapid answer.
My notes inline below.

On Sun, Nov 14, 2021 at 7:09 PM Vladimir Sitnikov <
sitnikov.vladimir@gmail.com> wrote:

> Philippe>1) Using IntelliJ IDEA 2021.2.3, I didn't get a popup to be able
> to select:
> Philippe>   - Make sure Create separate module per source set is selected
> Philippe>   - Make sure Use default gradle wrapper is selected
>
> Those steps indeed seem obsolete. I think nowadays the only question it
> raises is "do you trust the project?"
>

What do you mean ?


> Philippe>2) I used gradle runGui task to debug JMeter, is it the advised
> way ?
>
> Both debugging runGui and debugging individual tests should work.
>

Yes it works.

>
> Earlier I created a "run configuration" that launches NewDriver with a
> classpath of "dist" module,
>
Maybe you can share this configuration in the document.
Does it make startup faster ?
Does it allow code reload during debugging ?

however, I debug tests or debug runGui task.
>
> Vladimir
>


-- 
Cordialement.
Philippe Mouawad.

Re: Questions following switch from Eclipse to IntelliJ

Posted by Vladimir Sitnikov <si...@gmail.com>.
Philippe>1) Using IntelliJ IDEA 2021.2.3, I didn't get a popup to be able
to select:
Philippe>   - Make sure Create separate module per source set is selected
Philippe>   - Make sure Use default gradle wrapper is selected

Those steps indeed seem obsolete. I think nowadays the only question it
raises is "do you trust the project?"

Philippe>2) I used gradle runGui task to debug JMeter, is it the advised
way ?

Both debugging runGui and debugging individual tests should work.

Earlier I created a "run configuration" that launches NewDriver with a
classpath of "dist" module,
however, I debug tests or debug runGui task.

Vladimir