Record and Replay "create mail with attachment" with OWA.

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Record and Replay "create mail with attachment" with OWA.

Remy Esclangon
Hi All,

When capturing transaction (Script Recorder) for OutlookWebAccess (OWA) transactions, the "Add Attachment" transaction is not recorded ... when replaying the set of commands, there is no attachment to the mail.

Is there a specific method to capture and run "create mail with attachment and then send mail" action ?

Objective: assess OWA  performance using different sizes of attached files
Jmeter v3.2 r1790748

Thanks and Best Regards
Rémy Esclangon
Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.
Reply | Threaded
Open this post in threaded view
|

Re: Record and Replay "create mail with attachment" with OWA.

glinius@live.com
Try copying your attachment(s) into "bin" folder of your JMeter installation,
some browsers don't report the full path of the file being uploaded, in such
cases JMeter needs to have the files in its current working folder in order
to be able to capture the request. Same applies to replaying file upload
requests: you either need to use full paths or have the files in JMeter's
"bin" folder. See  Recording File Uploads with JMeter
<https://www.blazemeter.com/blog/recording-file-uploads-jmeter>   article
for more details and demo.

In general I don't think load testing the OWA is something you should be
doing, it should be vendor's responsibility (unless you are not working for
Microsoft), if you have a local Exchange server setup and you are playing
with configuration for maximum performance my expectation is that you should
put the load on the backend via  SMTP Sampler
<http://jmeter.apache.org/usermanual/component_reference.html#SMTP_Sampler>  
and  Mail Reader Sampler
<http://jmeter.apache.org/usermanual/component_reference.html#Mail_Reader_Sampler>  



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

RE: Record and Replay "create mail with attachment" with OWA.

Remy Esclangon
Hi,  Thanks for this.

Related to "why" we are doing this:
Some client environment do have Outlook, but many other are using Web browsers ie OWA, hence it's key to collect performances with OWA.
NB our objective: measure performances with and without optimization (Riverbed).
Therefore attaching files (with different sizes) is required to highlight optim performances.

Jmeter testing :
-  When I attach a file using OWA JMETER records it within a POST method in which the full file is added !!!!

-  The attachement process is not as we would think : find a file in a file repository and "link" it to a mail;  rather it builds a huge POST statement !  (see below )

-  Also, something is not understood by the system (jmeter / owa) : When we run the recording we don't get the attachement to the mail !

-  Below an example of the POST command "path" field :

---- quote ----
%7B%22__type%22%3A%22CreateAttachmentJsonRequest%3A%23Exchange%22%2C%22Header%22%3A%7B%22__type%22%3A%22JsonRequestHeaders%3A%23Exchange%22%2C%22RequestServerVersion%22%3A%22Exchange2013%22%2C%22TimeZoneContext%22%3A%7B%22__type%22%3A%22TimeZoneContext%3A%23Exchange%22%2C%22TimeZoneDefinition%22%3A%7B%22__type%22%3A%22TimeZoneDefinitionType%3A%23Exchange%22%2C%22Id%22%3A%22Romance%20Standard%20Time%22%7D%7D%7D%2C%22Body%22%3A%7B%22__type%22%3A%22CreateAttachmentRequest%3A%23Exchange%22%2C%22ParentItemId%22%3A%7B%22__type%22%3A%22ItemId%3A%23Exchange%22%2C%22Id%22%3A%22AAMkAGRjOGZmYTk1LWI2MDAtNGQ4MC04Y2Q3LTJlYzNkMDJlMTkwNgBGAAAAAAAwyd48Q%2BJuTpb3PLxCxg3vBwDE%2FGwx6TrGQrjnOHEK1L9VAAAAAAEPAADE%2FGwx6TrGQrjnOHEK1L9VAAAGnG2oAAA%3D%22%2C%22ChangeKey%22%3A%22CQAAABYAAADE%2FGwx6TrGQrjnOHEK1L9VAAAGnJGz%22%7D%2C%22Attachments%22%3A%5B%7B%22__type%22%3A%22FileAttachment%3A%23Exchange%22%2C%22Content%22%3A22IyBTYW1wbGU.......     FULL FILE IS INSERTED HERE    ................eT1mYWxzZQ0K%22%2C%22IsContactPhoto%22%3Afalse%2C%22ContentType%22%3A%22%22%2C%22IsInline%22%3Afalse%2C%22Name%22%3A%22user.properties%22%2C%22Size%22%3A5094%7D%5D%2C%22RequireImageType%22%3Afalse%2C%22IncludeContentIdInResponse%22%3Afalse%2C%22ClientSupportsIrm%22%3Atrue%2C%22CancellationId%22%3A%221507713843346%22%7D%7D
-----unquote ----


Thanks and Best Regards
Remy
Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Record and Replay "create mail with attachment" with OWA.

Kiran Badi
Hand coding the request with http request sampler will make your life easier. Below is decoded version of your posted response.Just capture and replace dynamic values and post the request back.File content is binary and that makes your request huge.You might have try both option pass full file path or convert file to binary content and pass it. You want to use multipart form data content type request with post action.
{"__type":"CreateAttachmentJsonRequest:#Exchange","Header":{"__type":"JsonRequestHeaders:#Exchange","RequestServerVersion":"Exchange2013","TimeZoneContext":{"__type":"TimeZoneContext:#Exchange","TimeZoneDefinition":{"__type":"TimeZoneDefinitionType:#Exchange","Id":"Romance Standard Time"}}},"Body":{"__type":"CreateAttachmentRequest:#Exchange","ParentItemId":{"__type":"ItemId:#Exchange","Id":"AAMkAGRjOGZmYTk1LWI2MDAtNGQ4MC04Y2Q3LTJlYzNkMDJlMTkwNgBGAAAAAAAwyd48Q+JuTpb3PLxCxg3vBwDE/Gwx6TrGQrjnOHEK1L9VAAAAAAEPAADE/Gwx6TrGQrjnOHEK1L9VAAAGnG2oAAA=","ChangeKey":"CQAAABYAAADE/Gwx6TrGQrjnOHEK1L9VAAAGnJGz"},"Attachments":[{"__type":"FileAttachment:#Exchange","Content":22IyBTYW1wbGU.......    FULL FILE IS INSERTED HERE    ................eT1mYWxzZQ0K","IsContactPhoto":false,"ContentType":"","IsInline":false,"Name":"user.properties","Size":5094}],"RequireImageType":false,"IncludeContentIdInResponse":false,"ClientSupportsIrm":true,"CancellationId":"1507713843346"}}
 With Regards,
Kiran Badi



      From: Remy Esclangon <[hidden email]>
 To: "[hidden email]" <[hidden email]>; "[hidden email]" <[hidden email]>
 Sent: Wednesday, October 11, 2017 7:08 AM
 Subject: RE: Record and Replay "create mail with attachment" with OWA.
   
Hi,  Thanks for this.

Related to "why" we are doing this:
Some client environment do have Outlook, but many other are using Web browsers ie OWA, hence it's key to collect performances with OWA.
NB our objective: measure performances with and without optimization (Riverbed).
Therefore attaching files (with different sizes) is required to highlight optim performances.

Jmeter testing :
-  When I attach a file using OWA JMETER records it within a POST method in which the full file is added !!!!

-  The attachement process is not as we would think : find a file in a file repository and "link" it to a mail;  rather it builds a huge POST statement !  (see below )

-  Also, something is not understood by the system (jmeter / owa) : When we run the recording we don't get the attachement to the mail !

-  Below an example of the POST command "path" field :

---- quote ----
%7B%22__type%22%3A%22CreateAttachmentJsonRequest%3A%23Exchange%22%2C%22Header%22%3A%7B%22__type%22%3A%22JsonRequestHeaders%3A%23Exchange%22%2C%22RequestServerVersion%22%3A%22Exchange2013%22%2C%22TimeZoneContext%22%3A%7B%22__type%22%3A%22TimeZoneContext%3A%23Exchange%22%2C%22TimeZoneDefinition%22%3A%7B%22__type%22%3A%22TimeZoneDefinitionType%3A%23Exchange%22%2C%22Id%22%3A%22Romance%20Standard%20Time%22%7D%7D%7D%2C%22Body%22%3A%7B%22__type%22%3A%22CreateAttachmentRequest%3A%23Exchange%22%2C%22ParentItemId%22%3A%7B%22__type%22%3A%22ItemId%3A%23Exchange%22%2C%22Id%22%3A%22AAMkAGRjOGZmYTk1LWI2MDAtNGQ4MC04Y2Q3LTJlYzNkMDJlMTkwNgBGAAAAAAAwyd48Q%2BJuTpb3PLxCxg3vBwDE%2FGwx6TrGQrjnOHEK1L9VAAAAAAEPAADE%2FGwx6TrGQrjnOHEK1L9VAAAGnG2oAAA%3D%22%2C%22ChangeKey%22%3A%22CQAAABYAAADE%2FGwx6TrGQrjnOHEK1L9VAAAGnJGz%22%7D%2C%22Attachments%22%3A%5B%7B%22__type%22%3A%22FileAttachment%3A%23Exchange%22%2C%22Content%22%3A22IyBTYW1wbGU.......    FULL FILE IS INSERTED HERE    ................eT1mYWxzZQ0K%22%2C%22IsContactPhoto%22%3Afalse%2C%22ContentType%22%3A%22%22%2C%22IsInline%22%3Afalse%2C%22Name%22%3A%22user.properties%22%2C%22Size%22%3A5094%7D%5D%2C%22RequireImageType%22%3Afalse%2C%22IncludeContentIdInResponse%22%3Afalse%2C%22ClientSupportsIrm%22%3Atrue%2C%22CancellationId%22%3A%221507713843346%22%7D%7D
-----unquote ----


Thanks and Best Regards
Remy
Confidential Communication: The contents of this e-mail including any attachment are confidential and intended solely for the person(s) to whom they are addressed. Any reader of this email who is not the intended recipient is notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this e-mail in error, please notify the sender immediately and delete all copies from your computer system. Subsequent alterations to this email after its transmission will be disregarded.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]