<?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 Junit Test Cases for Alfresco Webscripts in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/junit-test-cases-for-alfresco-webscripts/m-p/113698#M31632</link>
    <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am trying to write Junit test case for Alfresco webscripts I have written.&lt;BR /&gt;I have webscripts which create users, groups, folders and apply group permissions on folders.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; The folder creation webscript takes CSV file as an input and applied permssions on folders. The file is uploaded on Alfresco repo.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I write Junit test cases for this scenario as folders are created dynamically also the CSV contains larger number of folders.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; For other user and group creation webscripts, the Junit calls on local env works fine but in case of Jenkins pipeline where I am creating custom jar and after that I need to execute JUnit test cases. Here I don't have any Alfresco env to call for.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;How do I execute this unit test cases.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please guide me through this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Fri, 04 Sep 2020 07:31:19 GMT</pubDate>
    <dc:creator>mehtaneha747</dc:creator>
    <dc:date>2020-09-04T07:31:19Z</dc:date>
    <item>
      <title>Junit Test Cases for Alfresco Webscripts</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/junit-test-cases-for-alfresco-webscripts/m-p/113698#M31632</link>
      <description>&lt;DIV&gt;Hi,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am trying to write Junit test case for Alfresco webscripts I have written.&lt;BR /&gt;I have webscripts which create users, groups, folders and apply group permissions on folders.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;1.&lt;/STRONG&gt; The folder creation webscript takes CSV file as an input and applied permssions on folders. The file is uploaded on Alfresco repo.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;How can I write Junit test cases for this scenario as folders are created dynamically also the CSV contains larger number of folders.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;2.&lt;/STRONG&gt; For other user and group creation webscripts, the Junit calls on local env works fine but in case of Jenkins pipeline where I am creating custom jar and after that I need to execute JUnit test cases. Here I don't have any Alfresco env to call for.&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;How do I execute this unit test cases.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Please guide me through this.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thank you.&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 04 Sep 2020 07:31:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/junit-test-cases-for-alfresco-webscripts/m-p/113698#M31632</guid>
      <dc:creator>mehtaneha747</dc:creator>
      <dc:date>2020-09-04T07:31:19Z</dc:date>
    </item>
  </channel>
</rss>

