Highlighted

Log implementation in Hobbes.js

shuvamd58718025

14-01-2019

Hi All,

Does anyone have any idea how to record the errors in the log files while using Hobbes.js.

Thanks,

Shuvam Das

Replies

Highlighted

Gaurav-Behl

MVP

14-01-2019

I didn't test this but in theory if jQuery is available to your test case object then you could simply use console logs or hooks to inject custom logger support using slf4j fragments.

try this for console logs -

(function( $ ){

    $.log = function(mess){

      window.console && console.log(mess);

    };

})( jQuery );

$.log("test log");