Can't run integration test with All in One

cancel
Showing results for 
Search instead for 
Did you mean: 
xyz
Active Member

Can't run integration test with All in One

Jump to solution

With barebone aio alfresco 6 I can't run integration tests. This class is created when aio is created. 

What I understand it's because of lack of webscript runtest.get.desc.xml.

But why isn't it loaded even though it's inside 

<!-- Bring in Alfresco RAD so we get access to AlfrescoTestRunner classes -->
<dependency>
<groupId>org.alfresco.maven</groupId>
<artifactId>alfresco-rad</artifactId>
<version>${alfresco.sdk.version}</version>
<scope>test</scope>
</dependency>

 parent POM of aio


an error

java.lang.Throwable: Unable to process response for proxied test request: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
   <head>
      <title>Web Script Status 404 - Not Found</title>
      <link rel="stylesheet" href="/alfresco/css/webscripts.css" type="text/css" />
   </head>
   <body>
      <div>
         <table>
            <tr>
               <td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>
               <td><span class="title">Web Script Status 404 - Not Found</span></td>
            </tr>
         </table>
         <br/>
         <table>
            <tr><td>The Web Script <a href="%2Falfresco%2Fservice%2Ftesting%2Ftest.xml%3Fclazz%3Dorg.czekalski.platformsample.DemoComponentIT%23testChildNodesCount">/alfresco/service/testing/test.xml</a> has responded with a status of 404 - Not Found.</td></tr>
         </table>
         <br/>
         <table>
            <tr><td><b>404 Description:</b></td><td> Requested resource is not available.</td></tr>
            <tr><td>&nbsp;</td></tr>
            <tr><td><b>Message:</b></td><td>05280000 Script url /testing/test.xml does not map to a Web Script.</td></tr>
            <tr><td><b>Server</b>:</td><td>Community v6.2.0 (rc758d070-b356) schema 13,001</td></tr>
            <tr><td><b>Time</b>:</td><td>Jun 28, 2020, 3:21:44 PM</td></tr>
            <tr><td></td><td>&nbsp;</td></tr>
         </table>
      </div>
   </body>
</html>
1 Solution

Accepted Solutions
ohej
Established Member II

Re: Can't run integration test with All in One

Jump to solution

I've seen similar behaviour a couple of times, and I'm fairly sure it boils down to how you start the repository. 

 

With a fresh test using SDK 4.1 and running ./run.sh build_test all tests pass. If I do ./run.sh build_start, leave it running and run ./run.sh test it fails. 

If I run ./run.sh build_start_it_supported and then ./run.sh test separately it works. 

 

Can you confirm which SDK version you're using and the commands you're executing?

View solution in original post

3 Replies
xyz
Active Member

Re: Can't run integration test with All in One

Jump to solution

I checked on both computers so probably it's not a problem with my environment. Has anyone tried to build and run default tests?

ohej
Established Member II

Re: Can't run integration test with All in One

Jump to solution

I've seen similar behaviour a couple of times, and I'm fairly sure it boils down to how you start the repository. 

 

With a fresh test using SDK 4.1 and running ./run.sh build_test all tests pass. If I do ./run.sh build_start, leave it running and run ./run.sh test it fails. 

If I run ./run.sh build_start_it_supported and then ./run.sh test separately it works. 

 

Can you confirm which SDK version you're using and the commands you're executing?

xyz
Active Member

Re: Can't run integration test with All in One

Jump to solution

Inside parent pom I have 

<properties>
<!-- Alfresco Maven Plugin version to use -->
<alfresco.sdk.version>4.1.0</alfresco.sdk.version>

 I run these commands:
./run.sh build_start, then I try to run tests from intellij by clicking on them and run them.

When I try to run:
./run.sh build_start
./run.sh test
Unfortunately, effect is the same.
./run.sh build_test, also doesn't work
What do You mean by "If I run ./run.sh build_start_it_supported and then ./run.sh test separately it works. " Do you mean

build_start_it_supported

?

Edit: 
The problem was that I was using ./run.sh build_start and not build_start_it_supported. So inside acs there wasn't jar with tests. That's why. Thanks for advice. Smiley Happy