Functions | Variables
TestsConnection Namespace Reference

Functions

def activate_components (sleep_recv_act_time)
 Activate components. More...
 
def components_entry ()
 AutoTestOut and AutoTestIn are started. More...
 
def components_exit ()
 AutoTestOut and AutoTestIn are ended. More...
 
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'] More...
 
def deactivate_components ()
 Deactivate components. More...
 
def delete_recv_file ()
 

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

 
def diff_file ()
 

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

 
def disconnect_ports ()
 Disconnects ports. More...
 
def initGlobal ()
 Initialization of global variable. More...
 
def main ()
 main More...
 
def make_connecter_profile (subscription_type, push_policy, connect_direction)
 

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

 
def test_activate_deactivate (message, arg0, arg1, arg2)
 Only activation and deactivation are repeated. More...
 
def test_activate_deactivate_2 (message, arg0, arg1, arg2)
 Only activation and deactivation are repeated. More...
 
def test_connect_disconnect (message, arg0, arg1, arg2)
 Only the connection and cutting are repeated. More...
 
def test_connection (message, arg0, arg1, arg2)
 The connection, activate, deactivate, and cutting are repeated. More...
 
def test_connection_2 (message, arg0, arg1, arg2)
 
def test_connection_3 (message, arg0, arg1, arg2)
 
def test_connection_4 (message, arg0, arg1, arg2)
 
def test_connection_5 (message, arg0, arg1, arg2)
 The connection, activate, deactivate, and cutting are repeated. More...
 

Variables

int case_no = 0
 

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

 
string g_check_message = g_diff_recv_file+" 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"
 

送受信結果判定関連 More...

 
string g_interface_type1 = "corba_cdr"
 

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

 
string g_interface_type3 = "MyService"
 
string g_mess_footer = " > "
 
string g_mess_header = "< "
 
string g_name1 = "out"
 データポート TimedFloat More...
 
string g_name2 = "seqout"
 データポート TimedFloatSeq More...
 
string g_name3 = "MyService"
 サービスポート More...
 
int g_port1 = 0
 ポート番号指定 ( get_ports()より ) More...
 
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 >>"
 
More...
 
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
 ケース毎のテスト回数 More...
 
int sleep_act_time = 2
 activate_componentからdeactivate_componentまでのスリープ時間(秒数) More...
 
int sleep_connect_time = 1
 connectからdisconnectまでのスリープ時間(秒数) More...
 
int sleep_for_time = 1
 forループのスリープ時間(秒数) More...
 
int sleep_recv_act_time = 1
 受信側activate_componentから送信側activate_componentまでのスリープ時間(秒数) More...
 
list test_table
 Test table. More...
 

Function Documentation

def TestsConnection.activate_components (   sleep_recv_act_time)

Activate components.

Definition at line 149 of file TestsConnection.py.

def TestsConnection.components_entry ( )

AutoTestOut and AutoTestIn are started.

Definition at line 187 of file TestsConnection.py.

def TestsConnection.components_exit ( )

AutoTestOut and AutoTestIn are ended.

Definition at line 223 of file TestsConnection.py.

def TestsConnection.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']

Connects ports.

Definition at line 100 of file TestsConnection.py.

def TestsConnection.deactivate_components ( )

Deactivate components.

Definition at line 170 of file TestsConnection.py.

def TestsConnection.delete_recv_file ( )


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

(引数)

なし

Definition at line 281 of file TestsConnection.py.

def TestsConnection.diff_file ( )


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

(引数) なし

(戻り値) True : 一致、 False : 不一致

Definition at line 295 of file TestsConnection.py.

def TestsConnection.disconnect_ports ( )

Disconnects ports.

Definition at line 127 of file TestsConnection.py.

def TestsConnection.initGlobal ( )

Initialization of global variable.

Definition at line 236 of file TestsConnection.py.

def TestsConnection.main ( )

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

int TestsConnection.case_no = 0


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

Definition at line 70 of file TestsConnection.py.

string TestsConnection.g_check_message = g_diff_recv_file+" file not found."

Definition at line 54 of file TestsConnection.py.

string TestsConnection.g_connector_id1 = "001"

Definition at line 37 of file TestsConnection.py.

string TestsConnection.g_connector_id2 = "002"

Definition at line 42 of file TestsConnection.py.

string TestsConnection.g_connector_id3 = "003"

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.

string TestsConnection.g_dataflow_type = "push"

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.

string TestsConnection.g_mess_footer = " > "

Definition at line 62 of file TestsConnection.py.

string TestsConnection.g_mess_header = "< "

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.

int TestsConnection.g_port1 = 0

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

Definition at line 31 of file TestsConnection.py.

int TestsConnection.g_port2 = 1

Definition at line 32 of file TestsConnection.py.

int TestsConnection.g_port3 = 2

Definition at line 33 of file TestsConnection.py.

string TestsConnection.g_push_policy = "NEW"

Definition at line 25 of file TestsConnection.py.

string TestsConnection.g_push_rate = "2000"

Definition at line 26 of file TestsConnection.py.

string TestsConnection.g_skip_count = "4"

Definition at line 27 of file TestsConnection.py.

string TestsConnection.g_subscription_type = "flush"

Definition at line 24 of file TestsConnection.py.

string TestsConnection.g_test_case = ""

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.

string TestsConnection.g_test_ng = "F"

Definition at line 59 of file TestsConnection.py.

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

Definition at line 60 of file TestsConnection.py.

string TestsConnection.g_test_ok = "."

Definition at line 58 of file TestsConnection.py.

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

Definition at line 55 of file TestsConnection.py.

int TestsConnection.loop_count = 1

ケース毎のテスト回数

Definition at line 73 of file TestsConnection.py.

int TestsConnection.sleep_act_time = 2

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

Definition at line 79 of file TestsConnection.py.

int TestsConnection.sleep_connect_time = 1

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

Definition at line 85 of file TestsConnection.py.

int TestsConnection.sleep_for_time = 1

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

Definition at line 82 of file TestsConnection.py.

int TestsConnection.sleep_recv_act_time = 1

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

Definition at line 76 of file TestsConnection.py.

list TestsConnection.test_table

Test table.

Definition at line 1057 of file TestsConnection.py.



openrtm_aist
Author(s): Noriaki Ando
autogenerated on Mon Jun 10 2019 14:08:05