Note: I am using Aptana Studio to explain all the examples in this tutorial.
Class::Log
Method heading
error(details= 'NA',picture = 'NA')
Parameters explained
Sample code:
require 'testlogger'
Log.error("Bug found during automation run")
Output on console:
Result file explained
Copy the location of the result file and open it in a browser, preferably chrome. You should see something like this,
Class::Log
Method heading
error(details= 'NA',picture = 'NA')
Parameters explained
- details(optional): pass in the details/error-message you want to add to the log file.
- picture(optional): pass in the location of the picture you have taken during your test run.
Sample code:
require 'testlogger'
Log.error("Bug found during automation run")
Output on console:
Result file explained
Copy the location of the result file and open it in a browser, preferably chrome. You should see something like this,
0 comments:
Post a Comment