Forum Discussion

TSeieroe's avatar
TSeieroe
Contributor
16 years ago

Packet Capturing with tcpdump and snoop

I work with dls gateways and PD-128 Interoperability Testing.

I have developed a pretty good Test Suite (35 test cases) with SoapUI Pro.

Now I need to initiate an ssh session at the beginning of the Test Suite and then during each test case 1st step needs to start a packet capture and the last step needs to end the packet capture.

Can this be done?  and do you have any samples?

Terry

2 Replies

  • I've tried /\ "" '' how do you get around the windows path?

    The command works in a windows cmd window but fails in Groovy with:

    org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script30.groovy: 1: unexpected char: '\' @ line 1, column 33.org.codehaus.groovy.syntax.SyntaxException: unexpected char: '\' @ line 1, column 33. at

    Process delete = 'cmd /c del "C:\SoapUI\soapUI 2.0.2\Data Files\DataSink*.csv"'.execute()
    println '${delete.text}'