<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unittest upload file webscript in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257770#M210900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When im searching for an exemple of a webscript unitTest i found this : &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Testing" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Testing&lt;/A&gt;&lt;SPAN&gt; but the problem that's not clair.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 May 2013 11:11:53 GMT</pubDate>
    <dc:creator>aitbenmouh</dc:creator>
    <dc:date>2013-05-22T11:11:53Z</dc:date>
    <item>
      <title>Unittest upload file webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257766#M210896</link>
      <description>Hi,I want to write a unittest (junit) for testing a webscript that uploads a file (alfresco 3.4.7 enterprise). I use the BaseWebScriptTest as in the documentation. I don't know how i can upload the file with the PostRequest. Is it even possible to do this? It would be nice if we could just use the m</description>
      <pubDate>Thu, 02 Feb 2012 11:05:48 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257766#M210896</guid>
      <dc:creator>bartvandenabeel</dc:creator>
      <dc:date>2012-02-02T11:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Unittest upload file webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257767#M210897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The problem is that you need to run a HTTP server to receive the request, so its not as simple as first it seems.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However there are many of Alfresco's automated tests that call web scrips via Post, use them as a template.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at the Remote API project, for example SiteServiceTest.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 11:12:13 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257767#M210897</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2012-02-02T11:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Unittest upload file webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257768#M210898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Is it really necessary? When i run a test with org.springframework.extensions.webscripts.TestWebScriptServer.GetRequest it runs perfectly .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;Request get = new GetRequest("/dsd/id/process");&lt;BR /&gt;Response response = sendRequest(get, 200);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 11:31:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257768#M210898</guid>
      <dc:creator>bartvandenabeel</dc:creator>
      <dc:date>2012-02-02T11:31:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unittest upload file webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257769#M210899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've looked at the class : &lt;/SPAN&gt;&lt;A href="http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/site/SiteServiceTest.java" rel="nofollow noopener noreferrer"&gt;http://svn.alfresco.com/repos/alfresco-open-mirror/alfresco/HEAD/root/projects/remote-api/source/java/org/alfresco/repo/web/scripts/site/SiteServiceTest.java&lt;/A&gt;&lt;SPAN&gt; . It only show how to post Json-messages. That is not a problem. I want to attach a file to my PostMethod. I can't figure out how to do this. Or is is just not possible to do this via the BaseWebScriptTest? When de test starts, does it use a certain port that i can adress? Than i can use HttpClient to post it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Feb 2012 12:25:40 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257769#M210899</guid>
      <dc:creator>bartvandenabeel</dc:creator>
      <dc:date>2012-02-02T12:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: Unittest upload file webscript</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257770#M210900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When im searching for an exemple of a webscript unitTest i found this : &lt;/SPAN&gt;&lt;A href="http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Testing" rel="nofollow noopener noreferrer"&gt;http://wiki.alfresco.com/wiki/3.0_Web_Scripts_Testing&lt;/A&gt;&lt;SPAN&gt; but the problem that's not clair.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 May 2013 11:11:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/unittest-upload-file-webscript/m-p/257770#M210900</guid>
      <dc:creator>aitbenmouh</dc:creator>
      <dc:date>2013-05-22T11:11:53Z</dc:date>
    </item>
  </channel>
</rss>

