Web-based distance learning programs are widely available. A few distance education platform and standards were developed or proposed. The importance of distance learning courseware brought the attention to teachers, administrators, and system developers. Among current software systems, it is hard to realize strategic assessment of student learning performance. Since one of the drawbacks of distance education is the load that an instructor needs to spend in courseware design, as well as to analyze student performance based on course contents and test outcomes, it is worthy to investigate an automatic mechanism to help an instructor to produce effective courseware. Thus, distance learning program can proceed efficiently. In this paper, we develop a mechanism for the construction of course structure based on influence diagram. The mechanism can be implemented as a decision support system for the instructor to analyze the relation among course units and test units. The overall value of a courseware can be systematically analyzed.