- Open the Quality Tasks view’s drop-down menu and choose Configure Contents.
- Note that this same drop-down menu can be used to Import tasks, Explore TeamServer reports, or generate a Report.
- Note that this same drop-down menu can be used to Import tasks, Explore TeamServer reports, or generate a Report.
- Enable Details and click OK
Expand Fix Unit Test Problems fully to review information about the first problem.
Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41 Double-click the /ATM/ATM.cxx line in the Quality Tasks tab to open the source code associated with the problem.
Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41 In the Quality Tasks view, double-click the first ...TestSuite... line to open the test case associated with the problem.
Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41 - Note that the test case creates an ATM object passing
bank
anddisplay
pointers to the constructor—and makes the viewAccount call passing the account number and password as arguments. The display pointer dereferenced where the access violation is reported was defined as null, which is most likely the problem.
Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41
- Note that the test case creates an ATM object passing
To modify the test case source, open the test case code and initialize _display_0 pointer with a valid display object:
Conditional Content IDE: (VS) IDE: (VS) sv-attr:0A0102040159A975064F0FA35093CF15 0A0102040159A9821F79B94259645A41 - Save the file changes.
- Select test_viewAccount_1 (the test that identified the problem) in the Test Case Explorer and rerun the Run Unit Tests (File Scope) Test Configuration. Note that the unit test problem in test_viewAccount_1 is resolved.
- Fix the code in the test_viewAccount_2 in the same way: initialize _display_0 with the valid object.
Page History
Overview
Content Tools