You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jmeter.apache.org by vherilier <gi...@git.apache.org> on 2017/10/03 08:21:16 UTC
[GitHub] jmeter pull request #313: BZ61466: Comment addition to SampleResults
GitHub user vherilier opened a pull request:
https://github.com/apache/jmeter/pull/313
BZ61466: Comment addition to SampleResults
The goal of this PR is to allow SampleResult to embed the related Comment/Description value to be reused by any Reporter or Listener elements to publish more accurate test result content.
By example, PerfPublisher files (likely used with Jenkins application) focus highly about testcases description for test results reporting and in JMeter, the more close of such element is the Transaction Controller.
That's why I propose with this PR, and for a first step, to store Transaction Controllers description into SampleResult new property "Comment"; for other samplers result, only an empty string (it could be extended if you estimate is has to be done to give description of test steps too).
I hope it will act in JMeters' interest to be more accurately integrated with Continuous Integration applications.
BR,
--Vincent Hérilier
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/vherilier/jmeter extended_sampleresult
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/jmeter/pull/313.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #313
----
commit ecd8f91251905bf28f176a900c370f21a8abcf01
Author: Vincent Herilier <vh...@gmail.com>
Date: 2017-08-04T13:56:52Z
improve sampleResult meta data
----
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by vherilier <gi...@git.apache.org>.
Github user vherilier commented on the issue:
https://github.com/apache/jmeter/pull/313
I'll do it ASAP.
Thank you for the suggestion.
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by pmouawad <gi...@git.apache.org>.
Github user pmouawad commented on the issue:
https://github.com/apache/jmeter/pull/313
Hello @vherilier ,
Thanks for PR.
Could you amend it to:
- Add a property that would apply to all TC
- add a TristateCheckBox in GUI 'Use comment in SampleResult'
I think this will cover all cases:
- Send comments for ALL TC
- Don't send comments
- Send for all except some
- Send for none except some
And test this value to add it to sampler.
Of course JUnit are welcome.
I'll be happy to merge it once done.
Thank you.
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by vherilier <gi...@git.apache.org>.
Github user vherilier commented on the issue:
https://github.com/apache/jmeter/pull/313
Hello @pmouawad ,
Hope it will cover your suggestion :)
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by vherilier <gi...@git.apache.org>.
Github user vherilier commented on the issue:
https://github.com/apache/jmeter/pull/313
I attached an archive that contains 2 files:
* a EXP.jtl one
* a EXP.xml one containing PerfPublisher test results content used in my case by Jenkins to manage test results reports and comparisons.
[reporter.zip](https://github.com/apache/jmeter/files/1382987/reporter.zip)
Only testcases results are reported (not their test step ones) for PerfPublisher and they matches Transaction Controllers elements in the related .jmx file
IMHO, in .jtl files, "comments" should be added too because it may improve test reporting accuracy even from a .jtl file
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by pmouawad <gi...@git.apache.org>.
Github user pmouawad commented on the issue:
https://github.com/apache/jmeter/pull/313
Hello @vherilier ,
There is indeed a problem (good catch) as this new field should be persisted to XML/CSV.
But my issue here is that it only concerns Transaction Controller and would be in SampleResult.
Should we use it everywhere instead of limiting it to Transaction Controller ?
At Team, what's your thought ?
@vherilier , could you show some report were feature is used so that we can grasp the benefit of it ?
Thanks
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by vherilier <gi...@git.apache.org>.
Github user vherilier commented on the issue:
https://github.com/apache/jmeter/pull/313
Hi @pmouawad ,
Starting the feature documentation part, an issue came to me about about how and where defining the global property.
"Sampler Result Save configuration" properties could proposed this new one directly and the .jtl could integrate it because .jtl files cold be used to generate test results reports too.
What do you think about ?
BR,
--Vincent
---
[GitHub] jmeter issue #313: BZ61466: Comment addition to SampleResults
Posted by pmouawad <gi...@git.apache.org>.
Github user pmouawad commented on the issue:
https://github.com/apache/jmeter/pull/313
Thanks @vherilier for your update, it looks good to me.
May I ask one last thing, there is no documentation nor illustration of how this feature can be used.
So if we want this feature to be popular there should be some sexy use case showing an example integration with some screenshot.
Thanks
---