TS 68 CNDreadwritemonitor

Read/Write Monitor Tool Test Specification

Author: Alexander Pepin
Version: 1.0
Lastupdate: 3.9.2009
Introduction: Read/Write Monitor is a part of a profiler tools that allows users to easily resolve I/O issues while developing applications. When a user is running C/C++ project the indicator appears in the Run Monitor panel and displays I/O activity caused by the application. Double-clicking on the indicator opens correspondent detailed view. Currently it works only on Solaris with DTrace data provider. The feature is fully supported in remote development and all testing scenarios are applicable for remote Solaris machines. To use the feature additional privileges (root) could be required


Test suite: Read/Write Indicator and detailed views

Purpose: Check that the indicator and detailed view show information properly
Setup: Add a remote host (if needed). Create Profiling Demo sample project. Set DTrace as a data provider. Clean and build the project.

  1. Read/Write monitor and detailed view
    • Run the project.
    • Check that Read/Write monitor display I/O and R/W activity as graph that shows the history of writes (in orange) and reads (in yellow)
    • Click on the indicator or on "I/O details" button
    • EXPECTED RESULT: Detailed "Read/Write Monitor Tool" view appears. It shows a table of files and I/O streams which were used while the execution and contains the following columns:
    • *File Name
    • *Bytes Read
    • *Bytes Written
    • *In addition the view contains additional panel showing from where the file was open and where it was closed
    • Click on any file in the table
    • *EXPECTED RESULT: "Opened at" and "Closed at" stacktraces appear in the additional panel
    • Double-click on any non-grayed function in the stacktrace
    • *EXPECTED RESULT: The function is opened in the editor
    • Open source file "common.c" and find "work_run_syscpu" function
    • Add the following line in the end of the function "fd = fopen("/export/myfile", "r");". It will try to open non-existing file.
    • Run the project
    • Stop execution as soon as "work1" is comlpeted
    • Click on "I/O details" button
    • *EXPECTED RESULT: The table contains "/export/myfile" with a red exclamation icon, that means that the file operation failed

Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo