Hi Maheeka,

Avoid using sleep. Use  time out  function.

Thanks,

On Wed, Apr 1, 2015 at 12:35 PM, Maheeka Jayasuriya <mahe...@wso2.com>
wrote:

> Hi Waruna,
>
> In that case, what would be the alternative to do the above? Since
> iterating over the new logs (using before length and after length) also did
> not work for me. Or is the issue only in a delay? If so a sleep would solve
> the issue?
>
> Thanks,
> Maheeka
>
> Maheeka Jayasuriya
> Software Engineer
> Mobile : +94777750661
>
> On Wed, Apr 1, 2015 at 11:20 AM, Waruna Perera <waru...@wso2.com> wrote:
>
>> Hi Maheeka,
>>
>> We have encountered issue with delay of clear logs in our test cases at
>> times. So you will have to consider that.
>>
>> Thanks,
>>
>> Waruna
>>
>> On Wed, Apr 1, 2015 at 11:15 AM, Maheeka Jayasuriya <mahe...@wso2.com>
>> wrote:
>>
>>> Hi,
>>>
>>> I want to read the logs in ESB to do perform a few assertions. However,
>>> since I have multiple test methods in the test case, I am unable to find
>>> the correct required log.
>>>
>>> To further elaborate, my first test case prints 20 of required logs and
>>> the second test case prints 100. When I iterate through all logs, although
>>> logViewer.clearLogs() is done at the start of each method, the count for
>>> the second run test case is 120 and not 20 or 100 (I am verifying the log
>>> count in the test case). I verified with the log length before and after
>>> clearLogs() is called and the length remains the same. What is the
>>> expectation of the clearLogs() method. Does it clear all the system logs or
>>> something else?
>>>
>>> If I use the length of the logs before and after the test functionality
>>> and iterate through that, the required logs are not available.
>>>
>>> Also believe, logViewer.getAllRemoteSystemLogs() is the successor to
>>> deprecated method logViewer.getAllSystemLogs() ?
>>>
>>> Thanks,
>>> Maheeka
>>>
>>> Maheeka Jayasuriya
>>> Software Engineer
>>> Mobile : +94777750661
>>>
>>> _______________________________________________
>>> Dev mailing list
>>> Dev@wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/dev
>>>
>>>
>>
>>
>> --
>> Waruna Perera
>> Senior Software Engineer - Test Automation
>> Mobile: +94 77 3867037
>> WSO2, Inc.; http://wso2.com/
>> lean . enterprise . middlewear.
>>
>
>


-- 
Waruna Perera
Senior Software Engineer - Test Automation
Mobile: +94 77 3867037
WSO2, Inc.; http://wso2.com/
lean . enterprise . middlewear.
_______________________________________________
Dev mailing list
Dev@wso2.org
http://wso2.org/cgi-bin/mailman/listinfo/dev

Reply via email to