设计测试步骤

将测试添加到测试计划树并定义基本测试信息后,应定义测试步骤,即指定如何执行测试的详细分步说明。步骤包括要对应用程序执行的操作和预期结果。可以为手动测试和自动化测试创建测试步骤。对于手动测试,通过设计测试步骤完成测试计划。使用计划,就可以立即开始测试的执行。对于自动化测试,使用 Micro Focus 测试工具、自定义测试工具或第三方测试工具创建自动化测试脚本。

在本练习中,您会将测试步骤添加到 Credit Cards 测试。本测试将验证用于预订航班的信用卡类型。

设计测试步骤:

  1. 确保已显示测试计划模块。

    如果“测试计划”模块未显示,请在 ALM 侧栏上的测试下选择测试计划

  2. 将显示 Credit Cards 测试。

    展开 Payment Methods 文件夹,并选择 Credit Cards 测试。

  3. 打开“设计步骤详细信息”对话框。

    1. 单击设计步骤选项卡。

    2. 单击新建步骤按钮。将打开设计步骤详细信息对话框。

      步骤名框中,显示步骤名。默认名称为该测试步骤的顺序号。

  4. 定义第一个测试步骤。

    在“设计步骤详细信息”对话框中,输入以下内容:

    步骤名:Step 1: Log in to Mercury Tours.

    描述

    1.Enter URL.

    2.Log in.

    预期结果:User is logged in to Mercury Tours.

  5. 关闭“设计步骤详细信息”对话框。

    单击“确定”

  6. 添加剩余的测试步骤。

对于以下每个测试步骤,单击新建步骤按钮以打开“设计步骤详细信息”对话框,然后输入所需信息,再单击确定关闭“设计步骤详细信息”对话框:

步骤名 描述 预期结果
Step 2: Select a flight destination.
  1. Click the Flights button.
  2. Enter flight details and preference.
  3. Click Continue.
Flight details and preference are entered.
Step 3: Enter departure and return flight.
  1. Select departure and return flights.
  2. Click Continue.
The flights are selected.
Step 4: Enter passenger details.

Enter first name, last name, and meal preference.

Passenger details are entered.
Step 5: Enter credit card details.
  1. Enter credit card type.
  2. Enter credit card number.
  3. Enter expiration date.
Credit card details are entered.
Step 6: Enter addresses. Enter billing and delivery addresses. Addresses are entered.
Step 7: Complete the purchase. Click Secure Purchase. Purchase completed.
Step 8: Log out. Click the Log Out button. User logs out of Mercury Tours.

“设计步骤”选项卡显示设计步骤。