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 <[email protected]>
 To: "[email protected]" <[email protected]>; "[email protected]" 
<[email protected]> 
 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: [email protected]
For additional commands, e-mail: [email protected]


   

Reply via email to