Class: Scoutui::Commands::VerifyForm

Inherits:
Command
  • Object
show all
Defined in:
lib/scoutui/commands/verify_form.rb

Instance Attribute Summary

Attributes inherited from Command

#bm, #cmd, #description, #drv, #enableAssert, #executed, #executed_result, #locator, #rc, #stanza

Instance Method Summary collapse

Methods inherited from Command

#assert?, #disableAssert, #disableAsserts, #enableAsserts, #executedResult, #getLocator, #initialize, #passed?, #result, #run, #setBenchmark, #setLocator, #setResult, #wasExecuted?

Constructor Details

This class inherits a constructor from Scoutui::Commands::Command

Instance Method Details

#execute(drv) ⇒ Object



10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/scoutui/commands/verify_form.rb', line 10

def execute(drv)
  @drv=drv if !drv.nil?

  _form = @cmd.match(/verifyform\((.*)\s*\)/)[1].to_s

  Scoutui::Logger::LogMgr.instance.debug  __FILE__ + (__LINE__).to_s + " VerifyForm.execute : #{_form}"

  _f = Scoutui::Utils::TestUtils.instance.getForm(_form)
  _f.dump()
  _f.verifyForm(@drv)

end