The LANforge CICD framework provides an ability to execute a suite of tests and report results. |
|
test_rig.json { "test_rig":{ "Notes":[ "This JSON file describes LANforge system and test run configuration" ] }, "test_rig_parameters":{ "TEST_BED": "CT-TEST-001", "TEST_RIG": "CT-TEST-001", "DATABASE_SQLITE": "./tools/qa_sqlite3.db", "LF_MGR_IP": "192.168.100.116", "LF_MGR_PORT": "8080", "LF_MGR_USER": "lanforge", "LF_MGR_PASS": "lanforge", "UPSTREAM_PORT":"1.1.eth2", "TEST_TIMEOUT": 600, "EMAIL_LIST_PRODUCTION": "support@candelatech.com", "EMAIL_LIST_TEST": "support@candelatech.com", "EMAIL_TITLE_TXT": "Lanforge QA Testing", "EMAIL_TXT": "Lanforge QA Testing" } }
ct_AX88U_dut.json { "ct_AX88U_dut":{ "Notes":[ "The device undertest configuration is contained in this file" ] }, "test_dut":{ "DUT_SET_NAME": "DUT_NAME ASUSRT-AX88U", "USE_DUT_NAME": "ASUSRT-AX88U", "wireless_network_dict":{ "ssid_idx=0":{"ssid_idx":"0","SSID_USED":"asus11ax-2","SSID_PW_USED":"hello123","BSSID":"3c:7c:3f:55:4d:60","SECURITY_USED":"wpa2"}, "ssid_idx=1":{"ssid_idx":"1","SSID_USED":"asus11ax-5","SSID_PW_USED":"hello123","BSSID":"3c:7c:3f:55:4d:64","SECURITY_USED":"wpa2"} } } }
ct_tests.json { "ct_tests_001":{ "Notes":[ "This JSON file describes tests to be run by LANforge system" ] }, "test_suites":{ "suite_wc":{ "create_chamberview_dut_wc":{ "enabled":"TRUE", "load_db":"skip", "command":"create_chamberview_dut.py", "args":"", "args_list":[ " --lfmgr LF_MGR_IP --port LF_MGR_PORT --dut_name DUT_NAME", " --ssid 'ssid_idx=0 ssid=SSID_USED security=SECURITY_USED password=SSID_PW_USED bssid=BSSID'", " --ssid 'ssid_idx=1 ssid=SSID_USED security=SECURITY_USED password=SSID_PW_USED bssid=BSSID'", " --sw_version DUT_SW --hw_version DUT_HW --serial_num DUT_SERIAL --model_num DUT_NAME" ] }, "create_chamberview_wc":{ "enabled":"TRUE", "load_db":"skip", "command":"create_chamberview.py", "args":"", "args_list":[ " --lfmgr LF_MGR_IP --port LF_MGR_PORT --delete_scenario", " --create_scenario scenario_wpa2_wc", " --raw_line \"profile_link 1.1 STA-AC 19 'DUT: DUT_NAME Radio-1' NA wiphy7,AUTO -1 NA\" ", " --raw_line \"profile_link 1.1 upstream-dhcp 1 NA NA UPSTREAM_PORT,AUTO -1 NA\"" ] }, "wifi_capacity":{ "enabled":"TRUE", "timeout":"600", "iterations":"1", "load_db":"skip", "command":"lf_wifi_capacity_test.py", "args":"", "args_list":[ " --mgr LF_MGR_IP --port LF_MGR_PORT --lf_user LF_MGR_USER --lf_password LF_MGR_PASS --instance_name scenario_wpa2_wc", " --upstream UPSTREAM_PORT --batch_size 1,10,19 --loop_iter 1 --protocol UDP-IPv4 --duration 6000", " --pull_report --local_lf_report_dir REPORT_PATH --test_tag 'wpa2_wc'", " --test_rig TEST_RIG", " --set DUT_SET_NAME" ] }, "lf_qa":{ "enabled":"TRUE", "timeout":"600", "load_db":"skip", "command":"./tools/lf_qa.py", "args":"", "args_list":[ " --path REPORT_PATH --store --png --database DATABASE_SQLITE" ] } } } }
./lf_check.py --json_rig ct_test_rig.json \ --json_dut ct_AX88U_dut.json \ --json_test ct_tests.json \ --suite "suite_wc" \ --path '/home/lanforge/html-reports/ct_results_directory'
./lf_check.py --json_rig ct_test_rig.json \ --json_dut ct_AX88U_dut.json \ --json_test ct_tests.json \ --suite "suite_wc" \ --path '/home/lanforge/html-reports/ct_results_directory'
./lf_qa.py --path /home/lanforge/html-reports/ct_results_directory/(results dir of lf_check.py)\
--store \
--png \
--database ./tools/qa_aqlite3.db
"enabled":"TRUE"Allows for individual test enable and disable of the test.
"load_db":"CUSTOM_DATABASE"Allows for loading a LANforge database prior to the test run.
"timeout":"300"Allows for test to have individual timeout other then default.
"iterations":"2"Allows for test to run multiple iterations.