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
