POST api/SeleniumAutomation/InsertWithAttachments
Request Information
URI Parameters
None.
Body Parameters
AutomationAttachmentViewModelName | Description | Type | Additional information |
---|---|---|---|
Data | SeleniumAutomationOutput |
None. |
|
Images | Collection of ProductImageViewModel |
None. |
Request Formats
application/json, text/json
Sample:
{ "Data": { "MID": 1, "COMPONENT_NAME": "sample string 2", "UPLOADED_ON": "2025-08-06T03:26:21.192393+04:00", "ATTACHMENTS": true, "TOTAL_TESTCASE": 5, "PASSED_TESTCASE": 6, "FAILED_TESTCASE": 7, "OVERALL_STATUS": "sample string 8" }, "Images": [ { "Image": { "File": null } }, { "Image": { "File": null } } ] }
text/html
Sample:
{"Data":{"MID":1,"COMPONENT_NAME":"sample string 2","UPLOADED_ON":"2025-08-06T03:26:21.192393+04:00","ATTACHMENTS":true,"TOTAL_TESTCASE":5,"PASSED_TESTCASE":6,"FAILED_TESTCASE":7,"OVERALL_STATUS":"sample string 8"},"Images":[{"Image":{"File":null}},{"Image":{"File":null}}]}
application/xml, text/xml
Sample:
<AutomationAttachmentViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.Selenium"> <Data> <ATTACHMENTS>true</ATTACHMENTS> <COMPONENT_NAME>sample string 2</COMPONENT_NAME> <FAILED_TESTCASE>7</FAILED_TESTCASE> <MID>1</MID> <OVERALL_STATUS>sample string 8</OVERALL_STATUS> <PASSED_TESTCASE>6</PASSED_TESTCASE> <TOTAL_TESTCASE>5</TOTAL_TESTCASE> <UPLOADED_ON>2025-08-06T03:26:21.192393+04:00</UPLOADED_ON> </Data> <Images xmlns:d2p1="http://schemas.datacontract.org/2004/07/SuntechSupportServices.Models.CustomerSupport"> <d2p1:ProductImageViewModel> <d2p1:Image> <d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> </d2p1:Image> </d2p1:ProductImageViewModel> <d2p1:ProductImageViewModel> <d2p1:Image> <d2p1:File xmlns:d5p1="http://schemas.datacontract.org/2004/07/System.Web" i:nil="true" /> </d2p1:Image> </d2p1:ProductImageViewModel> </Images> </AutomationAttachmentViewModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.MID" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.COMPONENT_NAME" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.UPLOADED_ON" 2025-08-06T03:26:21.1923930+04:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.ATTACHMENTS" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.TOTAL_TESTCASE" 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.PASSED_TESTCASE" 6 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.FAILED_TESTCASE" 7 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Data.OVERALL_STATUS" sample string 8 --MultipartDataMediaFormatterBoundary1q2w3e--
Response Information
Resource Description
stringResponse Formats
application/json, text/json, text/html
Sample:
"sample string 1"
application/xml, text/xml
Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>
multipart/form-data
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e--