王凡臺灣大學:電機工程學研究所林偉裕Lin, Wei-YuWei-YuLin2007-11-262018-07-062007-11-262018-07-062007http://ntur.lib.ntu.edu.tw//handle/246246/53380測試計畫為有效率的執行測試程式的基石. 在軟體研發過程中, 一個測試計畫為紀錄軟體的目的, 需求, 測試方式, 測試案例的設計與執行的文件. 我們實驗室研發出一個圖形化介面的工具, 以及一個編譯器. 使用者可以利用我們的圖形化工具繪置消息序列圖組經過我們的編譯器轉換成C/C++的可執行檔, 經由此來對待測軟體作測試. 除此之外我們尚製作了一個可設定之行動電話模擬器作為我們的待測軟體, 該模擬器具有一般手機的撥號, 接收電話, 音樂播放, 數學計算機等等的功能. 本文的主要目的為針對編譯器與待測軟體提出一個完善的測試計劃. 此測試計劃有下列的需求: 功能性的評估 效能的測量 可重複再利用的測試案例的設計與執行The cornerstone of an effective test program is test planning. In software development, a test plan is a document that describes the objectives, requirements, test approaches, and the testcase designs and executions. In our team, we have developed a testcase graphical editor that allows the users to draw high-level test cases in MSCs (Message Sequence Charts) and a test compiler that translates MSCs to test executables in C/C++. We have also developed a configurable mobile phone simulator with versatility for the general capabilities that we may expect from a mobile phone, like dialing, call-answering, MP3 playing, calculator operation The main purpose of this paper is to propose a test plan for the system under test(SUT) and test compiler. The test plan has requirements which covers: • Functionality evaluation. • Performance measurement. • Reusable testcase design and executionContents i List of Figrues iii List of Tables iv 1 Introduction 1 2 Test environment and our system under test 3 2.1 Test-environment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 2.2 The Cell618 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.1 Functionlity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.2.2 Automaton . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 2.3 TE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3.1 Basic Constructs . . . . . . . . . . . . . . . . . . . . . . . . . . 6 2.3.2 Basic Statements . . . . . . . . . . . . . . . . . . . . . . . . . . 8 2.3.3 Port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3.4 Components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3.5 Message-Based Communication . . . . . . . . . . . . . . . . . 11 2.3.6 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2.3.7 ALT STATEMENT . . . . . . . . . . . . . . . . . . . . . . . . . 12 3 Test strategies 13 3.1 Conformance testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 i3.2 State splitting tree . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2.1 Path Testing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 3.2.2 Domain analysis . . . . . . . . . . . . . . . . . . . . . . . . . . 17 4 The test plan 20 4.1 Cell618 and the test matrix . . . . . . . . . . . . . . . . . . . . . . . . . 20 4.2 TE and the test matrix . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 5 implementation 29 6 Conclusions and FutureWorks 34 A The Mp3 Download Code of TTCN-3 35 Bibliography 71769842 bytesapplication/pdfen-US測試案例測試計劃消息序列圖組testcasetest planMSCS針對一個訊息交換系統所做的黑箱測試計劃之設計與分析The Design and Analysis of Black-Box Test Plan for a Message-Based Communication Systemthesishttp://ntur.lib.ntu.edu.tw/bitstream/246246/53380/1/ntu-96-R94921091-1.pdf