Class: TC_Page

Inherits:
Watir::TestCase
  • Object
show all
Defined in:
lib/function/tc_page.rb

Instance Method Summary collapse

Instance Method Details

#setupObject



5
6
7
# File 'lib/function/tc_page.rb', line 5

def setup
	@browser = Program.new
end

#teardownObject



29
30
31
32
# File 'lib/function/tc_page.rb', line 29

def teardown
	puts @test_passed ? '************************** TRUE **************************' : '************************** FALSE **************************'
	@browser.xxx
end

#test_case_aObject



9
10
11
12
13
14
15
16
17
# File 'lib/function/tc_page.rb', line 9

def test_case_a
	begin
 #code here
 @test_passed = true
	rescue Exception => e
 @test_passed = false
 puts e.inspect
	end
end

#test_case_bObject



19
20
21
22
23
24
25
26
27
# File 'lib/function/tc_page.rb', line 19

def test_case_b
	begin
 #code here
 @test_passed = true
	rescue Exception => e
 @test_passed = false
 puts e.inspect
	end
end