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
Improve the output of the SMTPSampler #2395
Comments
Luciana Moreira (migrated from Bugzilla): clipboard.txt
|
Sebb (migrated from Bugzilla): However, I wonder why the From:/Reply-To: etc. headers are treated specially - would it not be better to use the actual headers? Also, there were quite a few tabs in the patch - please could you use spaces instead in future? [Eclipse has a setting for this.] |
Sebb (migrated from Bugzilla): URL: http://svn.apache.org/viewvc?rev=992129&view=rev Modified: I made a few changes:
|
Luciana Moreira (migrated from Bugzilla): I will configure Eclipse to avoid the tab problem :-) I treated the From:/Reply-TO: etc differently only to be able to display them together after all other tags. I only did this because otherwise it is a bit annoying to try to find this information in the middle of all the other tags. But I can live with them being displayed out of order. |
Sebb (migrated from Bugzilla): Could still sort the fields if the ordering proves to be a problem. |
Luciana Moreira (migrated from Bugzilla): The only thing that I believe should be changed is moving the Request Headers to the top. I saw that you separated the sample result into the body and the headers, and I think it is right! I just find it a bit odd to have the headers at the bottom... |
Sebb (migrated from Bugzilla): Could potentially change to having them at the top, but then one would need to add markers to show where the body starts and ends. |
Luciana Moreira (Bug 49862):
The patch attached improves the output generated by the SMTP Sampler.
During tests I found it very handy to have a more detailed information about the message sent to the server.
So far I only tested it with messages that contain a message body and do not contain an attachment. The output looks like:
------------ Message Headers ------------
Message-Id: <689649240.25.1283425759858.JavaMail.moreira@pandora>
MIME-Version: 1.0
Sensitivity: company-confidential
From: tester@myserver.com
Reply-to: tester@myserver.com
To: jmeter-tester@anotherserver.com
------------ Message Content ------------
Content-Type: multipart/mixed;
boundary="----=_Part_24_1513386444.1283425759857"
Content-Transfer-Encoding: 7bit
ContentType = text/plain; charset=us-ascii
The message text comes in here
blah blah blah
blah blah blah
blah blah blah
and ends here
Request Headers:
I don't know why the "Request Headers:" keeps showing but it is independent from my code.
OS: Linux
The text was updated successfully, but these errors were encountered: