4.2.1.Create TestSuite and TestCase

  • 1.Create SOAP project

  • 2.Create test suite

    • Right click folder -> New TestSuite

  • 3.Create test case

    • Right click request -> Add to TestCase

  • 4.Create test steps for test case

    • Drag the request to the test steps

  • 5.Testing

    • 1.Assertion

      • SOAP Response: 檢查SOAP格式是否正確

      • SOAP格式

        • 必須要有Header, Body以及內容

        • e.g.,

          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:blz="http://thomas-bayer.com/blz/">
          <soapenv:Header/>
           <soapenv:Body>
              <blz:getBank>
                 <blz:blz>55010111</blz:blz>
              </blz:getBank>
           </soapenv:Body>
          </soapenv:Envelope>
    • 2.在Test case level執行測試

      • 可以拖曳多個request到test steps後, 點選綠色按鈕一次執行

      • 下方的TestCase log視窗, 打開後可以看到詳細的Request, Response資訊

    • 3.在Test suite level執行測試

      • 可以建立多個test case, 點選綠色按鈕一次執行

Last updated

Was this helpful?