<?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: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84335#M25727</link>
    <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I had docker and but it was still failing. Turns out I was missing&amp;nbsp; Docker Compose as well.&lt;/P&gt;&lt;P&gt;Is it only possible to run Integration Tests with Docker? I tried to spin up my own instance of alfresco and use maven command to run the tests. However it failed with the error, unable to find webscript test.xml.&lt;/P&gt;</description>
    <pubDate>Thu, 19 Sep 2019 15:42:14 GMT</pubDate>
    <dc:creator>phivuu-2</dc:creator>
    <dc:date>2019-09-19T15:42:14Z</dc:date>
    <item>
      <title>Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running?</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84333#M25725</link>
      <description>&lt;P&gt;I have generated a new barebone alfresco project with SDK4. But when running the command&amp;nbsp;mvn integration-test I get the error below from the default sample tests. I don't have an instance of the ACS running at this point but shouldn't the tests spin an instance up if it detects that there is none? That's how I interpret the explaination on this link&amp;nbsp;&lt;A href="https://docs.alfresco.com/5.2/tasks/sdk-test-acs.html" target="_blank" rel="noopener nofollow noreferrer"&gt;https://docs.alfresco.com/5.2/tasks/sdk-test-acs.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or do I have to make some configurations in the pom.xml besides using the default?&lt;/P&gt;&lt;P&gt;[INFO] Running test.dk.platformsample.DemoComponentIT&lt;BR /&gt;[ERROR] Tests run: 2, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0 s &amp;lt;&amp;lt;&amp;lt; FAILURE! - in test.dk.platformsample.DemoComponentIT&lt;BR /&gt;[ERROR] testChildNodesCount(test.dk.platformsample.DemoComponentIT) Time elapsed: 0 s &amp;lt;&amp;lt;&amp;lt; ERROR!&lt;BR /&gt;org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)&lt;BR /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/P&gt;&lt;P&gt;[ERROR] testGetCompanyHome(test.dk.platformsample.DemoComponentIT) Time elapsed: 0 s &amp;lt;&amp;lt;&amp;lt; ERROR!&lt;BR /&gt;org.apache.http.conn.HttpHostConnectException: Connect to localhost:8080 [localhost/127.0.0.1] failed: Connection refused (Connection refused)&lt;BR /&gt;Caused by: java.net.ConnectException: Connection refused (Connection refused)&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 10:49:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84333#M25725</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2019-09-19T10:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84334#M25726</link>
      <description>&lt;P&gt;Project structure using SDK4 include the configurarations for docker. Make sure you have installed docker on your machine and its up and running.&amp;nbsp;&lt;/P&gt;&lt;P&gt;To run the itegration test, you can use the run.bat/run.sh file available as part of project structure. It is the easiest option. You can find the instructions in the &lt;STRONG&gt;ReadMe file&lt;/STRONG&gt; on how to use these scripts.&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can this command, e.g. i you have windows:&lt;/P&gt;&lt;P&gt;1- Open command prompt&lt;/P&gt;&lt;P&gt;2- Go to the project directory&lt;/P&gt;&lt;P&gt;3- &lt;EM&gt;&lt;STRONG&gt;./run.bat&amp;nbsp;build_test&amp;nbsp;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;This command will:&amp;nbsp;build the whole project, recreate the ACS and Share docker images, start the dockerised environment, execute the integration tests from the integration-tests module and stop the environment.&lt;/P&gt;&lt;P&gt;Additionally, you can run all docker-compose commands to build and start the docker containers and then execute mvn verify on integeration test module. I find run.bat/run.sh script much easier than doing these steps one by one. Its up to you.&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information refer:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/integration-testing/it-running.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/integration-testing/it-running.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 13:29:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84334#M25726</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-09-19T13:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84335#M25727</link>
      <description>&lt;P&gt;Thank you for the information.&lt;/P&gt;&lt;P&gt;I had docker and but it was still failing. Turns out I was missing&amp;nbsp; Docker Compose as well.&lt;/P&gt;&lt;P&gt;Is it only possible to run Integration Tests with Docker? I tried to spin up my own instance of alfresco and use maven command to run the tests. However it failed with the error, unable to find webscript test.xml.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 15:42:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84335#M25727</guid>
      <dc:creator>phivuu-2</dc:creator>
      <dc:date>2019-09-19T15:42:14Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84336#M25728</link>
      <description>&lt;P&gt;Yeah, you can run against a different instance as well.&lt;/P&gt;
&lt;P&gt;In your project structure you can find pom.xml file. If you open the pom.xml in nodepad, there should be a property named:&amp;nbsp;&amp;lt;test.acs.endpoint.path&amp;gt;&lt;/P&gt;
&lt;P&gt;This pom.xml is also known as parent pom.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Update the property value and provide the URL of your alfresco repository.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&amp;nbsp; &amp;lt;test.acs.endpoint.path&amp;gt;&lt;A href="http://127.0.0.1:8080/alfresco&amp;lt;/test.acs.endpoint.path" target="_blank" rel="noopener nofollow noreferrer"&gt;http://127.0.0.1:8080/alfresco&amp;lt;/test.acs.endpoint.path&lt;/A&gt;&amp;gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;here Alfresco instance is running on local machine already so the address is 127.0.0.1. If your repository is running on a different machine then use its IP address and replace the URL with:&amp;nbsp;&lt;A href="http://127.0.0.1:8080/alfresco&amp;lt;/test.acs.endpoint.path" target="_blank" rel="noopener nofollow noreferrer"&gt;http://&amp;lt;IPAddressOfAlfrescoInstance&amp;gt;:8080/alfresco&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Now, simply run the IT test cases like java junit test cases. All the logs and outputs will be printed in your repository instance log.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Follow this documentation for more details:&amp;nbsp;&lt;A href="https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/integration-testing/it-running.md" target="_blank" rel="noopener nofollow noreferrer"&gt;https://github.com/Alfresco/alfresco-sdk/blob/master/docs/advanced-topics/integration-testing/it-running.md&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Sep 2019 17:51:07 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84336#M25728</guid>
      <dc:creator>abhinavmishra14</dc:creator>
      <dc:date>2019-09-19T17:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84337#M25729</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'm having this issue about the webscript for test.xml is not found, but in my case I always had the ACS instance alive. What could be happening in my case?&lt;/P&gt;</description>
      <pubDate>Sat, 25 Apr 2020 12:31:33 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84337#M25729</guid>
      <dc:creator>jperejor</dc:creator>
      <dc:date>2020-04-25T12:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco SDK4 Integration Tests module. Possible to run tests without an instance of ACS running</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84338#M25730</link>
      <description>&lt;P&gt;If you don't want to have any standing repository you could focus on a mock service mechanism.&lt;/P&gt;&lt;P&gt;They would be instantiated at test time without needing any containers.&lt;/P&gt;&lt;P&gt;Simply add this library into your sdk specifying the version of acs you use and set up a test service-context.xml.&lt;/P&gt;&lt;P&gt;&lt;A href="https://alfresco-tests.vige.it" target="_self" rel="nofollow noopener noreferrer"&gt;Here&lt;/A&gt; you will find the details&lt;/P&gt;&lt;PRE&gt;   &amp;lt;dependency&amp;gt;
		&amp;lt;groupId&amp;gt;it.vige&amp;lt;/groupId&amp;gt;
		&amp;lt;artifactId&amp;gt;alfresco-tests&amp;lt;/artifactId&amp;gt;
		&amp;lt;version&amp;gt;${acs.version}&amp;lt;/version&amp;gt;
		&amp;lt;scope&amp;gt;test&amp;lt;/scope&amp;gt;
   &amp;lt;/dependency&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 13 Mar 2024 10:05:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-sdk4-integration-tests-module-possible-to-run-tests/m-p/84338#M25730</guid>
      <dc:creator>lucastancapiano</dc:creator>
      <dc:date>2024-03-13T10:05:46Z</dc:date>
    </item>
  </channel>
</rss>

