data_tables.tdlan2 1.57 KB
Newer Older
/*
Copyright (c) ETSI 2020.

This software is subject to copyrights owned by ETSI. Non-exclusive permission
is hereby granted, free of charge, to copy, reproduce and amend this file
under the following conditions: It is provided "as is", without warranty of any
kind, expressed or implied.

ETSI shall never be liable for any claim, damages, or other liability arising
from its use or inability of use.This permission does not apply to any documentation
associated with this file for which ETSI keeps all rights reserved. The present
copyright notice shall be included in all copies of whole or part of this
file and shall not imply any sub-license right.
*/

//Specification of data-table-like reusable test description
Package data_tables {
	Import all from inferred_data;
	Import all from inferred_configuration;

	inferred_position start_position();
	inferred_position open_position();
	inferred_position closed_position();
	inferred_position end_position();

	Action move_to (position of type inferred_position);
	
	Test Description TC_MOVE_TO (
		target_position of type inferred_position
	) uses configuration inferred_move_object {
		Controller.inferred_gate sends parameter target_position to Object.inferred_gate;
		perform action move_to (position = parameter target_position) on Object;
	}	
		
	Test Description TC_MOVE_AROUND uses configuration inferred_move_object {
		execute TC_MOVE_TO (target_position = start_position);
		execute TC_MOVE_TO (target_position = open_position);
		execute TC_MOVE_TO (target_position = closed_position);
		execute TC_MOVE_TO (target_position = end_position);
	}	
}