Module: MobyBehaviour::GenericObjectAbstraction

Defined in:
lib/tdriver/base/behaviour/behaviours/object_abstract.rb

Overview

description

Generic object abstraction class applied to TestObject, Applcation and SUT

behaviour

GenericObjectAbstraction

requires

*

input_type

*

sut_type

*

sut_version

*

objects

*;application;sut

Instance Method Summary collapse

Instance Method Details

#application?Boolean

description

Determines if the current object is type of application

returns

Boolean

description: Determines is object type of application
example: false

Returns:

  • (Boolean)


51
52
53
54
55
56
57
58
59
60
61
62
63
# File 'lib/tdriver/base/behaviour/behaviours/object_abstract.rb', line 51

def application?

  begin

    @type == 'application'

  rescue

    false

  end

end

#sut?Boolean

description

Determines if the current object is type of SUT

returns

Boolean

description: Determines is object type of SUT 
example: false

Returns:

  • (Boolean)


71
72
73
74
75
76
77
78
79
80
81
82
83
# File 'lib/tdriver/base/behaviour/behaviours/object_abstract.rb', line 71

def sut?

  begin

    @type == 'sut'

  rescue 

    false

  end

end

#test_object?Boolean

description

Determines if the current object is type of test object

returns

Boolean

description: Determines is object type of test object
example: false

Returns:

  • (Boolean)


91
92
93
94
95
96
97
98
99
100
101
102
103
# File 'lib/tdriver/base/behaviour/behaviours/object_abstract.rb', line 91

def test_object?

  begin

    kind_of?( MobyBase::TestObject )

  rescue

    false

  end

end