mirror of
https://github.com/Telecominfraproject/wlan-testing.git
synced 2025-11-02 20:07:57 +00:00
* Added start_sniffer and stop_sniffer method Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added ssid channel Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added get_ap_channel fixture Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Removed get_vif_state and added get_ap_channel and added ssid_channel Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * added get_ap_channel and added ssid_channel Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * changed pcap file name Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added print for check get_ap_channel output Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * changed code logic in get_ap_channel Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * changed duration in Client_Connectivity Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * added try except in scan_ssid and also changed code logic in eap_connect, Client_Connectivity Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * removed setup_profiles Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added table format for station data and cx data, Added assert false message Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added arguments in table2 method Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added assert Fail message Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * changed logic for creating cx_data table Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added print statement Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added Before and After in station data table Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added set_radio_channel method, addded unknown error message Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added assert condition Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * removed older ssid from scan result Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * resolved merge conflicts Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added setup_params_enterprise_two Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added ssid_channel Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com> * Added ax radio for sniffing Signed-off-by: jitendracandela <jitendra.kushavah@candelatech.com>
21 lines
631 B
Python
21 lines
631 B
Python
from tabulate import tabulate
|
|
|
|
class Report:
|
|
def __init__(self, key1=None,
|
|
key2=None,
|
|
val1=None,
|
|
val2=None):
|
|
self.key1 = key1
|
|
self.key2 = key2
|
|
self.val1 = val1
|
|
self.val2 = val2
|
|
|
|
def table1(self):
|
|
table ={str(self.key1): self.val1, str(self.key2):self.val2}
|
|
x = tabulate(table, headers="keys", tablefmt="fancy_grid")
|
|
return x
|
|
|
|
def table2(self, table=None, headers='firstrow', tablefmt='fancy_grid'):
|
|
self.table = table
|
|
x = tabulate(self.table, headers=headers, tablefmt=tablefmt)
|
|
return x |