Sunday, November 10, 2013

0 test_script

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

Class::Log

Method heading
test_script(scriptValue = 'NA')

Parameters explained

  1. scriptValue(optional): pass in the script name as string. ex: sample.rb, template.rb

Sample code:


require 'testlogger'

Log.test_script("sample.rb")
   Log.message("howdy!!")
Log.close_test_script



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,



Note the usage of "close_test_script" method that takes no parameters but defines the scope of test script.

Happy Testing,
Shiva Krishna Imminni

0 comments:

Post a Comment

 

QuestionSelenium Copyright @Shiva Krishna