OWASP O2 Platform Blog

IBM AppScan Source 7.0 Scripting: Viewing *.ozasmt file Contents

O2 supports filtering and scripting on top of IBM’s AppScan Source 7.0 (previously known as Ounce 6.x).

 This script shows the assessment file in a Notepad like textbox

panel.clear();
var folder = @"C:\O2\DemoData\Sample Assessment Files\IBM AppScan Source";
var testFile = folder.pathCombine("Ounce 7_0 - WebGoat-5.1-1  8-24-10 910AM..xml");
var textArea = panel.add_TextArea().wordWrap(false);
textArea.set_Text(testFile.fileContents());

//O2File:O2AssessmentLoad_OunceV7_0.cs

this script shows the assessment in a source code viewer using XML color coding

panel.clear();
var folder = @"C:\O2\DemoData\Sample Assessment Files\IBM AppScan Source";
var testFile = folder.pathCombine("Ounce 7_0 - WebGoat-5.1-1  8-24-10 910AM.ozasmt");
var sourceCodeViewer= panel.add_SourceCodeViewer();
sourceCodeViewer.set_Text(testFile.fileContents(),".xml");

//O2File:O2AssessmentLoad_OunceV7_0.cs

November 2, 2010 - Posted by | Interoperability

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: