Module: MobyBehaviour::QT::TreeWidgetItemColumn
- Includes:
- Behaviour
- Defined in:
- lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb
Overview
description
TreeWidgetItemColumn specific behaviours
behaviour
QtTreeWidgetItemColumn
requires
testability-driver-qt-sut-plugin
input_type
*
sut_type
QT
sut_version
*
objects
TreeWidgetItemColumn
Instance Method Summary collapse
-
#check_state(new_state) ⇒ Object
returns.
Methods included from Behaviour
Instance Method Details
#check_state(new_state) ⇒ Object
returns
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 |
# File 'lib/testability-driver-plugins/testability-driver-qt-sut-plugin/behaviours/treewidgetitemcolumn.rb', line 75 def check_state( new_state ) ret = nil begin raise ArgumentError.new( "new_state must be an integer. Check qt docs for allowed values (Qt::CheckState." ) unless new_state.kind_of?(Integer) command = MobyCommand::WidgetCommand.new command.set_object_id(attribute('parentWidget')) command.application_id(get_application_id) command.object_type(:Standard) command.command_name('CheckState') command.set_event_type( sut_parameters[ :event_type, "0" ] ) params = {:state => new_state, :column => attribute('column'), :item => attribute('parentItem')} command.set_event_type( sut_parameters[ :event_type, "0" ] ) command.command_params(params) @sut.execute_command(command) rescue Exception => e $logger.behaviour "FAIL;Failed select"#{identity};drag;" raise e end $logger.behaviour "PASS;Operation select executed successfully"#{identity};drag;" ret end |