Integration testing means testing a user application across all components and service boundaries, but that's not always an easy task. You need to have end to end infrastructure supporting this testing alltimes and that's a challenging task in testing course.
It could also be a case that the required service for testing is still not available though the infrastructure is ready.
In-order to ease the life of a tester, IBM Rational Integration Tester provides a capability of stubbing the system components which can be accessed anytime for testing. So the question is; what does the "Stub" function like?
Stubs would actually help simulate the services that are unavailable at any given point of time. There are different ways and types of creating and using Stubs in RIT.
Now, since you have understood the basic functionality of Stub here, let's discuss one of the specific requirements where you can define a Stub which creates and places a file in a particular folder based on the fields in input file. Now the question is how do you achieve this requirement?
Assuming that the stub to be triggered is achieved by the receipt of a file and then move the file without changing it, the best stub solution is to use a repeating timer and then look for any files that need processing and process them. You could use the incoming file as test data or use a script to extract the location info. Use a Run Command to move the file.
You may create a BAT file as follows and run it:
for /f %%i in ('dir /b/a-d/od/t:c') do set LAST=%%i
It could also be a case where you would like to write in a file where the file name should be dynamic.
File name should be %%Tag%%.ACK in location say C:\Desktop
In order to achieve this, you may use a Log action and set the path and name to be anything you like. You can also try using a Publish action with a File transport.