mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-10-31 18:58:01 +00:00 
			
		
		
		
	Add gui automation script for multiple reports in one go.
This commit is contained in:
		
							
								
								
									
										70
									
								
								gui/basic_regression.bash
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										70
									
								
								gui/basic_regression.bash
									
									
									
									
									
										Executable file
									
								
							| @@ -0,0 +1,70 @@ | ||||
| #!/bin/bash | ||||
|  | ||||
| # Run some automated GUI tests, save the results | ||||
| # Example of how to run this and override LFMANAGER default settings.  Other values can | ||||
| # be over-ridden as well. | ||||
| # | ||||
| #  LFMANAGER=192.168.100.156 ./basic_regression.bash | ||||
| # | ||||
| # | ||||
|  | ||||
| AP_AUTO_CFG_FILE=${AP_AUTO_CFG_FILE:-test_configs/AP-Auto-ap-auto-32-64-dual.txt} | ||||
|  | ||||
| # LANforge target machine | ||||
| LFMANAGER=${LFMANAGER:-localhost} | ||||
|  | ||||
| # LANforge GUI machine (may often be same as target) | ||||
| GMANAGER=${GMANAGER:-localhost} | ||||
| GMPORT=${GMPORT:-3990} | ||||
| MY_TMPDIR=${MY_TMPDIR:-/tmp} | ||||
|  | ||||
| # Test configuration (10 minutes by default, in interest of time) | ||||
| STABILITY_DURATION=${STABILITY_DURATION:-600} | ||||
|  | ||||
| DATESTR=$(date +%F-%T) | ||||
| RSLTS_DIR=${RSLTS_DIR:-basic_regression_results_$DATESTR} | ||||
|  | ||||
|  | ||||
| # Probably no config below here | ||||
| AP_AUTO_CFG=ben | ||||
| RPT_TMPDIR=${MY_TMPDIR}/lf_reports | ||||
|  | ||||
| mkdir -p $RSLTS_DIR | ||||
|  | ||||
| # Load AP-Auto config file | ||||
| ../lf_testmod.pl --mgr $LFMANAGER --action set --test_name AP-Auto-$AP_AUTO_CFG --file $AP_AUTO_CFG_FILE | ||||
|  | ||||
| # Clean out temp report directory | ||||
| if [ -d $RPT_TMPDIR ] | ||||
| then | ||||
|     rm -fr $RPT_TMPDIR/* | ||||
| fi | ||||
|  | ||||
| # Run basic-cx test | ||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||
|     --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_basic_cx | ||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_basic_cx/test_automation.txt | ||||
|  | ||||
|  | ||||
| # Run Throughput, Dual-Band, Capacity test in a row, the Capacity will use results from earlier | ||||
| # tests. | ||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||
|     --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||
|     --modifier_key "Throughput vs Pkt Size" --modifier_val true \ | ||||
|     --modifier_key "Dual Band Performance" --modifier_val true \ | ||||
|     --modifier_key "Capacity" --modifier_val true \ | ||||
|     --rpt_dest $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_capacity | ||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_capacity/test_automation.txt | ||||
|  | ||||
|  | ||||
| # Run Stability test | ||||
| ../lf_gui_cmd.pl --manager $GMANAGER --port $GMPORT --ttype "AP-Auto" --tname ap-auto-ben --tconfig $AP_AUTO_CFG \ | ||||
|     --modifier_key "Basic Client Connectivity" --modifier_val false \ | ||||
|     --modifier_key "Stability" --modifier_val true \ | ||||
|     --modifier_key "Stability Duration:" --modifier_val $STABILITY_DURATION \ | ||||
|     --rpt_dest  $RPT_TMPDIR > $MY_TMPDIR/basic_regression_log.txt 2>&1 | ||||
| mv $RPT_TMPDIR/* $RSLTS_DIR/ap_auto_stability | ||||
| mv $MY_TMPDIR/basic_regression_log.txt $RSLTS_DIR/ap_auto_stability/test_automation.txt | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Ben Greear
					Ben Greear