Now that you have created a project, it is time to specify:
your development project's source files
the type of testing or runtime analysis activity you would like to perform first
To start a new activity:
Once a project has been created, the user is automatically brought to the Activities page. In this tutorial you are starting with a focus on runtime analysis functionality, so select the Runtime Analysis link. This will bring up the Runtime Analysis Wizard.
On the Application
Files page, you must list all source files for your current development
project. For this tutorial, you will directly select the source files.
Click the Add button.
Browse to folder into which you have installed Test RealTime and then access the folder \examples\TestSuiteAda\src
Make sure All Ada Files in the Files of type dropdown box is selected, then select the following files:
calc_cov.adb
calculator.ads
calculator.adb
operation.ads
operation.adb
low_op.ads
low_op.adb
Now click the Open
button.
You should see all the source files in the list of the Application
Files page.
Click Next.
At this time, an analysis engine parses each source file - referred to as tagging. This process is used to extract the various functions, methods, procedures and classes located within each source file, simplifying code browsing within the UI.
On the Selective
Instrumentation page, you have the ability to select those functions
or procedures that should not be instrumented for runtime analysis. Such
selective instrumentation ensures that the instrumentation overhead is
kept to a minimum. For this tutorial, you will be profiling everything
and thus all items should be checked. This should happen by default; if
not, click Select All and click Next.
You have now reached the Application Node Name page. Enter the name of the application node that will be created at the conclusion of the Runtime Analysis Wizard; type the word MyApplication in the Name text field.
The Application Node Name window also gives you the opportunity to modify Configuration Settings associated with the TDP that you selected when creating the project.
In Ada, you need to specify the name of the main application procedure. To do this:
Select the button on the bottom of the Application Node Name window entitled Configuration Settings.
In the window that has just appeared, named Configuration Settings, expand the Build node in the tree on the left-hand side and click the Execution node.
In the Main Procedure edit box on the right-hand side of the window, enter the name of the main procedure, in this case calc_cov.
Select the OK button on the bottom of the window.
Click Next.
You are now confronted with the Summary window. Everything should be in order, so click the Finish button.
The MyApplication application node has now been created. The Project Browser tab of the Project Explorer window should appear as follows: