Sunday, November 10, 2013

0 Logging a message

Note: I am using Aptana Studio to explain all the examples in this tutorial.

Class::Log

Method heading
message(details= 'NA',picture = 'NA')

Parameters explained

  1. details(optional): pass in the details/message you want to add to the log file.
  2. picture(optional): pass in the location of the picture you have taken during your test run.

Sample code:


require 'testlogger'

 Log.message("This is my first message")



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

 

QuestionSelenium Copyright @Shiva Krishna