[asterisk-scf-commits] asterisk-scf/integration/testsuite.git branch "review" updated.

Commits to the Asterisk SCF project code repositories asterisk-scf-commits at lists.digium.com
Thu Jun 9 12:02:17 CDT 2011


branch "review" has been updated
       via  d21f6f873fba614f1319019c86bc4dccdbef1478 (commit)
      from  7d5f8ae80c0cf736540009fd5f022e027c361754 (commit)

Summary of changes:
 plugins/wireshark.py |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)


- Log -----------------------------------------------------------------
commit d21f6f873fba614f1319019c86bc4dccdbef1478
Author: Darren Sessions <dsessions at digium.com>
Date:   Thu Jun 9 12:02:15 2011 -0500

    Added callflow capabilities to the wireshark module. This will take a pcap file and generate not only a png and svg file, but also several html files that allow for an interactive view of the graph showing the packet data.

diff --git a/plugins/wireshark.py b/plugins/wireshark.py
index 44e6da0..fac3c0a 100644
--- a/plugins/wireshark.py
+++ b/plugins/wireshark.py
@@ -53,6 +53,24 @@ class plugin(TestSuite.RemoteBaseClass):
                 results = remote['rpc']('moveFile', '/tmp/capture.pcap', '!!TMP!!/artifacts/%s/%s.capture.pcap' % (globalVars['testInfo']['testPath'], remote['hostname']))
                 if results['success'] == False:
                     return results
+    
+                results = remote['rpc']('changeDir', 'artifacts/%s' % globalVars['testInfo']['testPath'])
+                if results['success'] == False:
+                    return results
+
+                results = remote['rpc']('run', remote['hostname'], globalVars, 'wireshark', 'callflow', ['callflow', '%s.capture.pcap' % remote['hostname']], True)
+                if results['success'] == False:
+                    return results
+
+                callflowDir = '!!TMP!!/artifacts/%s/%s.capture' % (globalVars['testInfo']['testPath'], remote['hostname'])
+
+                results = remote['rpc']('moveFile', '%s/index.html' % callflowDir, '%s/index_standard.html' % callflowDir)
+                if results['success'] == False:
+                    return results
+
+                results = remote['rpc']('moveFile', '%s/index_with_frames.html' % callflowDir, '%s/index.html' % callflowDir)
+                if results['success'] == False:
+                    return results
             else: 
                 return {'success':False, 'msg':'Unknown command: %s' % cmd}
 

-----------------------------------------------------------------------


-- 
asterisk-scf/integration/testsuite.git



More information about the asterisk-scf-commits mailing list