Highlighted

Log implementation in Hobbes.js

Avatar

Avatar

shuvamd58718025

Avatar

shuvamd58718025

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

Avatar

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281

Avatar

Gaurav-Behl

MVP

Total Posts

1.1K

Likes

226

Correct Answer

281
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");

Highlighted

Avatar

Avatar

shuvamd58718025

Avatar

shuvamd58718025

shuvamd58718025

14-01-2019

Thanks for your reply,will try.