Hi Krishantha,

noted. I will change it accordingly.

Thanks,
Sithumini

On Wed, Mar 4, 2015 at 5:37 PM, Krishantha Samaraweera <[email protected]>
wrote:

>
>
> On Wed, Mar 4, 2015 at 5:27 PM, Sithumini Senevirathne <
> [email protected]> wrote:
>
>> Hi Krishantha,
>>
>> Thanks for the respond.
>>
>>
>>> You have two options to assert the error condition.
>>>
>>> 1. Flush the log before creating governance endpoint and assert for "*Error
>>> during rendering" *after endpoint creation.
>>> 2. Read the carbon.home property and process the carbon log file to find
>>> specific error detail.
>>>
>>>
>> I have already done this way to assert the error condition. Just wanted
>> to know whether I have missed anything in LogViewerClient.
>>
>
> Please use @SetEnviroment custom annotation to execute the test only on
> integration environment.  We need to exclude the test from platform
> execution since it has dependency to carbon.home
>
> Thanks,
> Krishantha.
>
>>
>> Thanks,
>> Sithumini
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>> Thanks,
>>> Krishantha.
>>>
>>> On Wed, Mar 4, 2015 at 4:41 PM, Sithumini Senevirathne <
>>> [email protected]> wrote:
>>>
>>>> Hi,
>>>>
>>>> Currently I am working on writing a test case which required to read
>>>> the carbon.log file in registry (testng 6.1.1, GReg 4.6.0). Here I
>>>> use LogViewerClient getLogger(), getStacktrace(), log.getMessage() to get
>>>> the log content.
>>>>
>>>> My intention is to track the StackOverflowError in the log file. Below
>>>> [1] shows the sample error log message that can be find in the carbon.log.
>>>> Problem is none of the above mentioned methods were able to track the
>>>> error.
>>>>
>>>> Here getMessage() method output the only the below part from the error
>>>> log.
>>>>
>>>> Error during rendering
>>>>
>>>> Couldn't get the java.lang.StackOverflowError part in the log file.
>>>> Is this a known issue or am I missing anything?
>>>>
>>>> [1] TID: [0] [AS] [2015-03-03 14:39:12,069] ERROR
>>>> {org.apache.tiles.jsp.taglib.RenderTagSupport} -  *Error during
>>>> rendering *{org.apache.tiles.jsp.taglib.RenderTagSupport}
>>>> java.lang.StackOverflowError
>>>> at
>>>> org.apache.catalina.core.ApplicationHttpRequest.getSession(ApplicationHttpRequest.java:571)
>>>>
>>>>
>>>> Thanks,
>>>> Sithumini
>>>>
>>>> --
>>>> --
>>>> Sithumini Senevirathne
>>>> Software Engineer
>>>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>>>
>>>> email: [email protected],   mobile: +94 756977999
>>>>
>>>
>>>
>>>
>>> --
>>> Krishantha Samaraweera
>>> Senior Technical Lead - Test Automation
>>> Mobile: +94 77 7759918
>>> WSO2, Inc.; http://wso2.com/
>>> lean . enterprise . middlewear.
>>>
>>
>>
>>
>> --
>> --
>> Sithumini Senevirathne
>> Software Engineer
>> WSO2 Inc. - lean . enterprise . middleware |  wso2.com
>>
>> email: [email protected],   mobile: +94 756977999
>>
>
>
>
> --
> Krishantha Samaraweera
> Senior Technical Lead - Test Automation
> Mobile: +94 77 7759918
> WSO2, Inc.; http://wso2.com/
> lean . enterprise . middlewear.
>



-- 
-- 
Sithumini Senevirathne
Software Engineer
WSO2 Inc. - lean . enterprise . middleware |  wso2.com

email: [email protected],   mobile: +94 756977999
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to