Connection startup times are measured by analysing the logs of the Network Performance Testing tools.
TestExecute creates a log file in HTML format for each test. There should be one HTML file for each test case executed. The HTML files contain messages of the test progress and measured values.
A Perl script can be used to collect the connection startup times. The following codeblock illustrates one example Perl script.
#!/usr/bin/perl sub processPath($); sub processResultsFile($); # Get a path to read the results from my $resultsPath = shift; if ($resultsPath eq "") { $resultsPath = "."; } processPath($resultsPath); sub processResultsFile($) { my $resultsFile = @_[0]; open (RESULTS, $resultsFile) || die "Failed to open file $resultsFile: $!"; my @results = <RESULTS>; close RESULTS; $resultsFile =~ m/\.?(.*)[\\\/]([^\\\/]+)$/; my $path = $1; my $filename = $2; foreach $line (@results) { if ($line =~ m/Connection Startup took ([\d\.]+)s/i) { print "$path,$filename,$1\n"; } } } sub processPath($) { my @entries; my $path = @_[0]; opendir (DIR, $path) || die "Failed to open path: $!"; @entries = readdir DIR; @entries = sort (@entries); closedir DIR; foreach $entry (@entries) { if (-f "$path\\$entry") { if ($entry =~ m/\.htm$|\.html$/i) { processResultsFile("$path\\$entry"); } } } }
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.