A
aidy
Hi,
All my GUI test classes contain this code within the constructor.
class ST_MSE_33
def initialize
start_browser
login
................
rescue => e
p "test failed: #{e.message}"
p e.backtrace
ensure
log_out
close_window
end
end
That is, there is always the same start and same end, but a different
middle.
Is there any way I could use inheritance to avoid duplication?
Thank You
Aidy
All my GUI test classes contain this code within the constructor.
class ST_MSE_33
def initialize
start_browser
login
................
rescue => e
p "test failed: #{e.message}"
p e.backtrace
ensure
log_out
close_window
end
end
That is, there is always the same start and same end, but a different
middle.
Is there any way I could use inheritance to avoid duplication?
Thank You
Aidy