Functions | Variables
TestsConnection Namespace Reference

Functions

def activate_components
 Activate components.
def components_entry
 AutoTestOut and AutoTestIn are started.
def components_exit
 AutoTestOut and AutoTestIn are ended.
def connect_ports
 ネームサーバー定義 env = RtmEnv(sys.argv, ["localhost:2809"]) list0 = env.name_space["localhost:2809"].list_obj() env.name_space['localhost:2809'].rtc_handles.keys() ns = env.name_space['localhost:2809']
def deactivate_components
 Deactivate components.
def delete_recv_file
def diff_file
def disconnect_ports
 Disconnects ports.
def initGlobal
 Initialization of global variable.
def main
 main
def make_connecter_profile
def test_activate_deactivate
 Only activation and deactivation are repeated.
def test_activate_deactivate_2
 Only activation and deactivation are repeated.
def test_connect_disconnect
 Only the connection and cutting are repeated.
def test_connection
 The connection, activate, deactivate, and cutting are repeated.
def test_connection_2
def test_connection_3
def test_connection_4
def test_connection_5
 The connection, activate, deactivate, and cutting are repeated.

Variables

int case_no = 0
string g_check_message = " file not found."
string g_connector_id1 = "001"
string g_connector_id2 = "002"
string g_connector_id3 = "003"
string g_data_type1 = "TimedFloat"
string g_data_type2 = "TimedFloatSeq"
string g_dataflow_type = "push"
string g_diff_recv_file = "./received-data"
string g_diff_send_file = "./original-data"
string g_interface_type1 = "corba_cdr"
string g_interface_type3 = "MyService"
string g_mess_footer = " > "
string g_mess_header = "< "
string g_name1 = "out"
 データポート TimedFloat
string g_name2 = "seqout"
 データポート TimedFloatSeq
string g_name3 = "MyService"
 サービスポート
int g_port1 = 0
 ポート番号指定 ( get_ports()より )
int g_port2 = 1
int g_port3 = 2
string g_push_policy = "NEW"
string g_push_rate = "2000"
string g_skip_count = "4"
string g_subscription_type = "flush"
string g_test_case = ""
string g_test_cnt = "count"
string g_test_name = "<< component connection test >>"
string g_test_ng = "F"
string g_test_ng_message = " < received-data >"
string g_test_ok = "."
string g_test_result_file = "./ResultTest.log"
int loop_count = 1
 ケース毎のテスト回数
int sleep_act_time = 2
 activate_componentからdeactivate_componentまでのスリープ時間(秒数)
int sleep_connect_time = 1
 connectからdisconnectまでのスリープ時間(秒数)
int sleep_for_time = 1
 forループのスリープ時間(秒数)
int sleep_recv_act_time = 1
 受信側activate_componentから送信側activate_componentまでのスリープ時間(秒数)
list test_table
 Test table.

Function Documentation

def TestsConnection.activate_components (   sleep_recv_act_time)

Activate components.

Definition at line 149 of file TestsConnection.py.

AutoTestOut and AutoTestIn are started.

Definition at line 187 of file TestsConnection.py.

AutoTestOut and AutoTestIn are ended.

Definition at line 223 of file TestsConnection.py.

ネームサーバー定義 env = RtmEnv(sys.argv, ["localhost:2809"]) list0 = env.name_space["localhost:2809"].list_obj() env.name_space['localhost:2809'].rtc_handles.keys() ns = env.name_space['localhost:2809']

Connects ports.

Definition at line 100 of file TestsConnection.py.

Deactivate components.

Definition at line 170 of file TestsConnection.py.

-------------------------------------------------------------------- 内部関数:受信ファイル削除

(引数) なし --------------------------------------------------------------------

Definition at line 281 of file TestsConnection.py.

-------------------------------------------------------------------- 内部関数:送受信ファイルのデータ比較

(引数) なし (戻り値) True : 一致、 False : 不一致 --------------------------------------------------------------------

Definition at line 295 of file TestsConnection.py.

Disconnects ports.

Definition at line 127 of file TestsConnection.py.

Initialization of global variable.

Definition at line 236 of file TestsConnection.py.

main

Definition at line 1249 of file TestsConnection.py.

def TestsConnection.make_connecter_profile (   subscription_type,
  push_policy,
  connect_direction 
)

-------------------------------------------------------------------- 内部関数:コネクタープロファイル設定(データポート)

(引数) subscription_type : "flush", "new", "periodic" push_policy : "ALL", "FIFO", "SKIP", "NEW", "" connect_direction : 0:outport -> inport, 1:inport -> outport --------------------------------------------------------------------

Definition at line 251 of file TestsConnection.py.

def TestsConnection.test_activate_deactivate (   message,
  arg0,
  arg1,
  arg2 
)

Only activation and deactivation are repeated.

Activate and Deactivate are repeated while connected.

Definition at line 495 of file TestsConnection.py.

def TestsConnection::test_activate_deactivate_2 (   message,
  arg0,
  arg1,
  arg2 
)

Only activation and deactivation are repeated.

Activate and Deactivate are repeated while connected. Data is not checked.

Activate and Deactivate are repeated without connecting it.

Definition at line 417 of file TestsConnection.py.

def TestsConnection.test_connect_disconnect (   message,
  arg0,
  arg1,
  arg2 
)

Only the connection and cutting are repeated.

Definition at line 367 of file TestsConnection.py.

def TestsConnection.test_connection (   message,
  arg0,
  arg1,
  arg2 
)

The connection, activate, deactivate, and cutting are repeated.

Definition at line 713 of file TestsConnection.py.

def TestsConnection.test_connection_2 (   message,
  arg0,
  arg1,
  arg2 
)

Definition at line 804 of file TestsConnection.py.

def TestsConnection.test_connection_3 (   message,
  arg0,
  arg1,
  arg2 
)

Definition at line 899 of file TestsConnection.py.

def TestsConnection.test_connection_4 (   message,
  arg0,
  arg1,
  arg2 
)

Definition at line 983 of file TestsConnection.py.

def TestsConnection.test_connection_5 (   message,
  arg0,
  arg1,
  arg2 
)

The connection, activate, deactivate, and cutting are repeated.

Data is not checked.

Definition at line 636 of file TestsConnection.py.


Variable Documentation

-------------------------------------------------------------------- テストケース番号の初期値設定 上から連番を振っている

Definition at line 70 of file TestsConnection.py.

string TestsConnection::g_check_message = " file not found."

Definition at line 54 of file TestsConnection.py.

Definition at line 37 of file TestsConnection.py.

Definition at line 42 of file TestsConnection.py.

Definition at line 47 of file TestsConnection.py.

string TestsConnection::g_data_type1 = "TimedFloat"

Definition at line 38 of file TestsConnection.py.

string TestsConnection::g_data_type2 = "TimedFloatSeq"

Definition at line 43 of file TestsConnection.py.

Definition at line 23 of file TestsConnection.py.

string TestsConnection::g_diff_recv_file = "./received-data"

Definition at line 53 of file TestsConnection.py.

string TestsConnection::g_diff_send_file = "./original-data"

-------------------------------------------------------------------- 送受信結果判定関連

Definition at line 52 of file TestsConnection.py.

string TestsConnection::g_interface_type1 = "corba_cdr"

-------------------------------------------------------------------- コネクタープロファイルデフォルト定義

Definition at line 22 of file TestsConnection.py.

string TestsConnection::g_interface_type3 = "MyService"

Definition at line 48 of file TestsConnection.py.

Definition at line 62 of file TestsConnection.py.

Definition at line 61 of file TestsConnection.py.

string TestsConnection::g_name1 = "out"

データポート TimedFloat

Definition at line 36 of file TestsConnection.py.

string TestsConnection::g_name2 = "seqout"

データポート TimedFloatSeq

Definition at line 41 of file TestsConnection.py.

string TestsConnection::g_name3 = "MyService"

サービスポート

Definition at line 46 of file TestsConnection.py.

ポート番号指定 ( get_ports()より )

Definition at line 31 of file TestsConnection.py.

Definition at line 32 of file TestsConnection.py.

Definition at line 33 of file TestsConnection.py.

Definition at line 25 of file TestsConnection.py.

Definition at line 26 of file TestsConnection.py.

Definition at line 27 of file TestsConnection.py.

Definition at line 24 of file TestsConnection.py.

Definition at line 56 of file TestsConnection.py.

string TestsConnection::g_test_cnt = "count"

Definition at line 57 of file TestsConnection.py.

string TestsConnection::g_test_name = "<< component connection test >>"

--------------------------------------------------------------------

Definition at line 18 of file TestsConnection.py.

Definition at line 59 of file TestsConnection.py.

string TestsConnection::g_test_ng_message = " < received-data >"

Definition at line 60 of file TestsConnection.py.

Definition at line 58 of file TestsConnection.py.

string TestsConnection::g_test_result_file = "./ResultTest.log"

Definition at line 55 of file TestsConnection.py.

ケース毎のテスト回数

Definition at line 73 of file TestsConnection.py.

activate_componentからdeactivate_componentまでのスリープ時間(秒数)

Definition at line 79 of file TestsConnection.py.

connectからdisconnectまでのスリープ時間(秒数)

Definition at line 85 of file TestsConnection.py.

forループのスリープ時間(秒数)

Definition at line 82 of file TestsConnection.py.

受信側activate_componentから送信側activate_componentまでのスリープ時間(秒数)

Definition at line 76 of file TestsConnection.py.

Test table.

Definition at line 1057 of file TestsConnection.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Thu Aug 27 2015 14:16:42