Script Samples: Difference between revisions

From STRIDE Wiki
Jump to navigation Jump to search
No edit summary
Line 7: Line 7:


;[[Expectations Sample]]
;[[Expectations Sample]]
: This sample  provides some pre-instrumented source code that include [[Test Point|STRIDE Test  Points]] and [[Test Log|Test Logs]].  A single perl test module is included that implements a few examples of  expectation testing based on the software under test. The process of  including this sample as well as running it and publishing results is  covered in [[Running and  Publishing the Expectations Sample]],  which comprised an earlier step in the sandbox setup.
: This sample  provides some pre-instrumented source code that include [[Test Point|STRIDE Test  Points]] and [[Test Log|Test Logs]].  A single perl test module is included that implements a few examples of  expectation testing based on the software under test. The process of  including this sample as well as running it and publishing results is  covered in [[Running and  Publishing the Expectations Sample]].


;[[FileTransfer  Sample]]
;[[FileTransfer  Sample]]

Revision as of 21:24, 8 December 2010

These samples are a collection of native source under test and script test code code that demonstrate the techniques for creating and executing tests using the STRIDE Framework. These are the introductory samples for the STRIDE Framework that illustrate how to do expectation testing of instrumented source under test using script test modules on the host.

Once you have installed the STRIDE framework on your host machine, you can easily build and run any combination of these samples. In each case, you can include the source under test for the sample simply by copying its source files to the SDK's sample_src directory and rebuilding the off-target testapp.

Description

The following samples are available to illustrate the use of host scripting with the STRIDE Framework.

Expectations Sample
This sample provides some pre-instrumented source code that include STRIDE Test Points and Test Logs. A single perl test module is included that implements a few examples of expectation testing based on the software under test. The process of including this sample as well as running it and publishing results is covered in Running and Publishing the Expectations Sample.
FileTransfer Sample
This sample shows an example of how you might use helper functions on the target to invoke STRIDE File Transfer services. The example is driven by host script logic that invokes remote target functions to actuate a file transfer to the target.
FunctionRemoting Sample
This sample shows some examples of invoking remote functions for the purpose of fixturing your behavior tests written in script on the host.