Support

DT10 Support

DT10 Tips

DT10 Tips Menu

Inserting test points DT10 TIPS 03

Efficient checking method in case of insertion errorPosted on
2012-11-29

n case that the insertion error occurred and you need to check the cause of problem, it may be general way to perform Automatic Test Point Insertion.

But you may think a little bit inconvenient to re-open the source code window if you re-perform the Automatic Test Point Insertion.

In such case, we will show you the way to check the error efficiently while the source code window remains opened.

The “Check Test Point” feature is efficient way to check the error.

The “Check Test Point” perform analysis of source code.

If any error was found, the error message is shown as same as the Automatic Insertion.

But the source code window remains opened.

(It is unnecessary to close the window because there is no change in source code, that is the difference between the Automatic Insertion.)

It is efficient to identify the place where error has occurred because the source code window is not closed.

You can perform the check of Test Point by selecting [Test Plan] -> {Check Test Point] or you choose any source file in folder view and right click; then select “Check Test Point” in the pop-up menu.

Check Test Point

You can perform the check of Test Point by selecting [Test Plan] -> {Check Test Point] or you choose any source file in folder view and right click; then select “Check Test Point” in the pop-up menu.

Automatic Test Point insertion error

How to change at once the enable / disable settings of step type of all Test PointsPosted on
2012-11-29

When you register source file to DT10 and perform Automatic Test Point Insertion, Test Point are automatically inserted at every branch.

But you may encounter the target would not run due to the overhead while all the Test Point remain enabled. So you may check the movement of Function by FuncIn / FuncOut only enabled, or you may check the movement of task by EventTrigger only enabled, or you may get Test Report by designated step type only enabled.
In these cases, it is convenient to know how to change at once the enable / disable settings of step type.

Most customer may use the way which you click the check box of source file hierarchy or function hierarchy from folder view and change enable / disable in “Type specified Test Points” window.

Folder view

But you may feel a little bit inconvenient to use method in case many source files are registered.

So we will show you the way to change enable / disable at once by using module view.
  
First, you right click on module view and select “Add module” from the menu and add one module.

Module View

Then you open the property editor of the created module; you add all functions by using “add” button of “Belonging Module”.

If modules are already created, you add all module by using “add” button of “Belonging Module”.

Module Property

After you add all function to the module, you click the check box of the module and change enable / disable of Test Point. So you can enable the selected step type only in all functions.

Module View

How to recover the inserted Test Point even after delete Test PointPosted on
2012-11-29

Once you delete Test Point, the project is saved at the same time; the next time you open DT project file (*.prj), the Test Point are not there.

You have to re-enter all information such as automatically inserted Test Point, manually inputted valuable value output point and EventTriger point.

DT10 has a feature to recover the inserted Test Point even after delete Test Point.
  
When you have to delete Test Point, but you feel inconvenient to re-enter Test Point, please use “Test Point information on the Project is not deleted” option.

[Delete Test Point] in menu.

Menu

You select the file to be deleted in “Delete Test Point” dialog. At that time, you turn on the check box of “Test Point information on the Project is not deleted” option and perform to delete Test Point.

Test Point information on the Project is not deleted

When you open DT project file (*prj), DTMeger function is initiated; the Test Points are inserted by using the Test Point information of the project as the same as before.

After verifying the behavior in DT10, you delete Test Point from source code with “Test Point information on the Project is not deleted” option and checked in.

After you modify the source code, when you open DT project file, DTMerger initiated and recover the Test Point.

example

How to change the insertion position of #include macro statement which Test Point is definedPosted on
2012-11-27

When DT10 Automatically Inserted Test Point, the following #include statement is inserted at the top of source file.

#include “DT_xxxx.h”  /* For DynamicTracer-TestPoint */

This statement includes “DT_xxxx.h” file which defined Test Point macro created at the time of inserting Test Point into “xxxx.c” file.

It is possible to change the insertion point of this #include statement.

Some software development environment may cause conflict that DT10′s include statement inserted at the top of source file. In such case, please specify the insertion point of #include statement and perform automatic insertion.

In order to specify the insertion point of #include statement, you open the “Specify Automatic Generation File” in the new project creation wizard, or you select [File] -> [Project Settings] and open the “Specify Automatic Generation File” in the menu.

Specify Automatic Generation File

You turn the check box of “Insert header file Include statement into the next line which the specified string is first matched. (Effective only for new insertion)” and enter a string in the dialog.

Include statement Location specified

You can add the next options.

  • Search position should be within comments
  • The upper case and lower case of the alphabet should be considered as identical.

Include statement Location specified(Optioin)

Once you finished settings, you perform automatic Test Point insertion.

In case of new project creation wizard, when you click “Done”, Test Points are automatically inserted.

In case of project settings, when you enter “OK” button, the configuration will be saved.
Then you select [Test Plan] -> [Automatic Test Point Insertion] in menu and perform automatic insertion.
At that time, please turn on the check box “Remove all existing Test Points before insert” in the dialog.

(*If you do not remove all existing Test Points before insert, the settings of #include statement insertion point does not affect.)

When automatic insertion completed, #include statement is inserted as shown bellow;

After automatic insertion

No | Title | Category