Hi Marc,

thank you. Finally found my mistake. I should not remove the added session 
to early in ISessionListener->sessionAdded ... when I do that in 
ISessionListener->sessionActivated the activation of another session works 
like a charm.

Regards,

Mario

Am Mittwoch, 5. Oktober 2016 17:13:24 UTC+2 schrieb Marc R. Hoffmann:
>
> Hi Mario,
>
> use ISessionManager. activateSession(ICoverageSession) to activate the 
> session after you have done magic.
>
> Regards,
> -marc
>
> On 05.10.16 15:03, Mario Ackerl wrote:
>
> Hi Marc, 
>
> I try to explain it with a pic: https://postimg.org/image/fbn7lr3mr/ ( 
> result at the end of a test run -> no coverage session selected - coverage 
> results from a deleted session are shown)
> We have a coverage session for every test method. At the end of a suite I 
> want to do some magic (add some summarized sessions for example). I also 
> delete a few sessions. Unfortunately sometimes no session is selected as 
> shown in the screenshot (active session deleted). I therefore want to 
> select the active session for the user (developer), so that the active 
> session at the end of a testsuite is the summarized session. Is there a way 
> to do that with the API? 
>
> Regards,
>
> Mario
>
> Am Mittwoch, 5. Oktober 2016 13:19:10 UTC+2 schrieb Marc R. Hoffmann: 
>>
>> Hi Mario, 
>>
>> this is the API to activate a new Session. Note however that coverage 
>> for the Java elements in scope is calculated as a background job. So 
>> results are not available when this method returns. 
>>
>> Maybe cou can get a bit more specific about "this does not work as I 
>> expected". 
>>
>> Regards, 
>> -marc 
>>
>> On 2016-10-05 12:52, Mario Ackerl wrote: 
>> > Hi, 
>> > 
>> > is there a way/API to programmatically switch the selected session in 
>> > eclemma? I supposed that activateSession (from ISessionManager) should 
>> > do that, but this does not work as I expected. 
>> > 
>> > Thanks in advance 
>> > 
>> > Mario 
>> > 
>> >  -- 
>> > You received this message because you are subscribed to the Google 
>> > Groups "JaCoCo and EclEmma Users" group. 
>> > To unsubscribe from this group and stop receiving emails from it, send 
>> > an email to jacoco+un...@googlegroups.com. 
>> > To view this discussion on the web visit 
>> > 
>> https://groups.google.com/d/msgid/jacoco/ddb0b399-705b-4251-a1ef-a0b786761765%40googlegroups.com
>>  
>> > [1]. 
>> > For more options, visit https://groups.google.com/d/optout. 
>> > 
>> > 
>> > Links: 
>> > ------ 
>> > [1] 
>> > 
>> https://groups.google.com/d/msgid/jacoco/ddb0b399-705b-4251-a1ef-a0b786761765%40googlegroups.com?utm_medium=email&utm_source=footer
>>  
>>
> -- 
> You received this message because you are subscribed to the Google Groups 
> "JaCoCo and EclEmma Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jacoco+un...@googlegroups.com <javascript:>.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/jacoco/61566e26-0f05-4078-bcad-36c8131a9c9a%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/jacoco/61566e26-0f05-4078-bcad-36c8131a9c9a%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> -- 
> Marc hoffmannhoff...@mountainminds.com <javascript:>
> _______________________________________________
> Mountainminds GmbH & Co. KG
>
> Nussbaumstr. 4 * 80336 Muenchen * Germany 
> Phone/Fax +49-700-68664637 * 0700-MTNMINDS
>
> Registergericht Muenchen * HRA 80201
> Mountainminds Verwaltungs GmbH
> Registergericht Muenchen * HRB 143183
> Geschaeftsfuehrer Marc Hoffmann
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jacoco+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/6390b032-d218-46b8-940d-2256e23cdca8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to