Top Level Namespace

Instance Method Summary collapse

Instance Method Details

#add_test_name(test_name) ⇒ Object



22
23
24
# File 'lib/prreport.rb', line 22

def add_test_name(test_name)
  @html.newTestName(test_name)
end

#add_to_report(step, result, description) ⇒ Object



18
19
20
# File 'lib/prreport.rb', line 18

def add_to_report(step, result, description)
  @html.addtoReport(step, result, description)
end

#create_new_report(reportName, header, browser_type, environment) ⇒ Object



10
11
12
13
14
15
# File 'lib/prreport.rb', line 10

def create_new_report(reportName, header, browser_type, environment)
  @browser_type = browser_type
  $environment = environment
  @html = HTMLReport.new()
  @report = @html.createReport(reportName, header, browser_type)
end

#finish_reportObject



26
27
28
29
# File 'lib/prreport.rb', line 26

def finish_report
  @html.finishReport(@report, @browser_type, $environment)
  system("start #{$filePath}")
end

#installObject



4
5
6
7
8
# File 'lib/prreport.rb', line 4

def install
  FileUtils.mkdir('reports')
  FileUtils.cp_r(File.expand_path(File.dirname(__FILE__)) + '/css', 'reports')
  FileUtils.cp_r(File.expand_path(File.dirname(__FILE__)) + '/images', 'reports')
end