Hi

As mentioned in my previous email I ran into an issue with Composum as I could 
not open it with the Pax Tests even though I included composum() setup.

I could fix that with this line:

mavenBundle().groupId("org.apache.geronimo.bundles").artifactId("jstl").version("1.2_1"),

I have another question regarding uploading a file. I was able to use Jsoup to 
upload a file to create a file node in Sling.
I am wondering if there is a way with PaxExam to do that with a direct API exam 
as my tests are not there to test the REST Api but rather to make sure my code 
is working?

Anyhow Jsoup will work fine if it is the only way.

- Andy

> On Aug 23, 2022, at 11:03 AM, Eric Norman <enor...@apache.org> wrote:
> 
> Hi Andy,
> 
> What I usually do for debugging/inspecting the pax exam instance is to add
> optional configuration to enable remote debugging (see [1]).  Then you can
> set a breakpoint in your test code and it will stop there for you to take a
> look around.
> 
> One example of this is at:
> 1, AuthFormTestSupport.java#L94
> <https://github.com/apache/sling-org-apache-sling-auth-form/blob/0040aac8a3a89a0cfc4727f2802bd560803c4c8a/src/test/java/org/apache/sling/auth/form/it/AuthFormTestSupport.java#L94>
> 
> 
> Hope that helps.
> 
> Regards,
> Eric
> 
> 
> On Mon, Aug 22, 2022 at 2:14 PM Andreas Schaefer <schaef...@me.com.invalid>
> wrote:
> 
>> Hi Oliver
>> 
>> I am making good progress but I noticed that I cannot get composum up on
>> both 3.1.0 or 3.0.0 which is the current version I am using because I am
>> still running against Sling 11.
>> 
>> The issues I see is: 'The absolute uri: http://java.sun.com/jsp/jstl/core
>> cannot be resolved’
>> 
>> Also is there a way to keep the Sling instance running (something like
>> keep running flag) after the tests were done in case I need to investigate
>> an issue with the Sling instance like bundles dependencies etc?
>> 
>> Thanks - Andy
>> 
>> 
>>> On Aug 15, 2022, at 2:20 AM, Oliver Lietz <apa...@oliverlietz.de> wrote:
>>> 
>>> On Sunday, 14 August 2022 23:15:16 CEST Andreas Schaefer wrote:
>>>> Hi
>>> 
>>> Hi Andy,
>>> 
>>>> I am working on some sling components and want to IT test them within
>> the
>>>> server to avoid client-side polling.
>>>> 
>>>> It looks like there are two ways to do that:
>>>> 
>>>> - Junit Servlet
>>>> - Sling Testing Server Setup and Teleporter
>>>> 
>>>> Does Sling do any server side testing?
>>>> What is the currently support way of doing server side tests?
>>> 
>>> Running tests inside the OSGi container is the default when using OPS4J
>> Pax
>>> Exam. See the list of Sling modules using Sling's Testing PaxExam and
>> have a
>>> look what the ITs are doing to get some ideas:
>>> 
>>> https://sling.apache.org/documentation/development/testing-paxexam.html
>>> 
>>> Let me know if more documentation is needed.
>>> 
>>> HTH,
>>> O.
>>> 
>>> 
>>>> Thanks - Andy
>>> 
>>> 
>>> 
>>> 
>> 
>> 

Reply via email to