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 <[email protected]> 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 > [email protected] > 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.
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
