Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BeanShell PostProcessor not work with maven #365

Open
liuxiaopiao opened this issue Mar 17, 2020 · 3 comments
Open

BeanShell PostProcessor not work with maven #365

liuxiaopiao opened this issue Mar 17, 2020 · 3 comments
Assignees
Labels

Comments

@liuxiaopiao
Copy link

@liuxiaopiao liuxiaopiao commented Mar 17, 2020

When reporting an issue:

  • Mention versions of Java, JMeter, Maven and JMeter-Maven-Plugin
    jmeter-maven-plugin.version: 2.8.3
    JMeter:5.2.1
    JDK:1.8
  • Provide pom.xml and any log file (jmeter.log, maven logs)
<profiles>
        <profile>
            <id>performance</id>
            <build>
                <plugins>
                    <!-- execute JMeter test -->
                    <plugin>
                        <groupId>com.lazerycode.jmeter</groupId>
                        <artifactId>jmeter-maven-plugin</artifactId>
                        <version>2.8.3</version>
                        <executions>
                            <execution>
                                <id>test</id>
                                <goals>
                                    <goal>jmeter</goal>
                                </goals>
                            </execution>
                        </executions>
                        <configuration>
                            <!--plugin setting-->
                            <jmeterExtensions>
                                <artifact>kg.apc:jmeter-plugins-casutg:2.6</artifact>
                            </jmeterExtensions>
                            <propertiesJMeter>                              <jmeter.save.saveservice.response_data>true</jmeter.save.saveservice.response_data>                               
                            </propertiesJMeter>
                            <!--jvm setting-->
                            <jMeterProcessJVMSettings>
                                <xms>1024</xms>
                                <xmx>1024</xmx>
                                <!--<arguments>-->
                                    <!--<argument>-Xprof</argument>-->
                                    <!--<argument>-Xfuture</argument>-->
                                <!--</arguments>-->
                            </jMeterProcessJVMSettings>
                            <ignoreResultFailures>false</ignoreResultFailures>
                            <generateReports>true</generateReports>
                            <!--test file setting-->
                            <testFilesIncluded>                           
                                <jMeterTestFile>test.jmx</jMeterTestFile>                                  
                            </testFilesIncluded>                           
                        </configuration>
                    </plugin>
                </plugins>
            </build>
        </profile>
</profiles>
  • Explain clearly the reproducer:
    • What should happen (OK Case)
      In order to save properties generated during executing JMeter steps, I have added one JsonExtractor and Beanshell post process to parse attributes and save it to one csv file like below:
      image
      And I can get the generated CSV file when I invoking the JMeter testing from JMeter UI.
    • What happens (KO Case)
      If I added the JMeter in java project with jmeter-maven-plugin and invoke it from command like like "mvn verify -Pperformance". I couldn't find the generated CSV file.

Could you please help me check what's the root cause? Thanks a lot.

@Ardesco

This comment has been minimized.

Copy link
Contributor

@Ardesco Ardesco commented Mar 17, 2020

Support for JMeter 5.2.1 was not added until version 3.0.0 of the plugin.

Could you try with the latest version of the plugin and see how that affects this issue.

@liuxiaopiao

This comment has been minimized.

Copy link
Author

@liuxiaopiao liuxiaopiao commented Mar 18, 2020

Hi @Ardesco thanks for the reply. With 3.0.0 plugin,still couldn't get the generated csv file which was written by Beanshell post processor.

@Ardesco Ardesco self-assigned this Mar 18, 2020
@liuxiaopiao

This comment has been minimized.

Copy link
Author

@liuxiaopiao liuxiaopiao commented Mar 20, 2020

@Ardesco any updates or workaround for this? Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.