web handmade items 02- registration function analysis input, processing, output method - writing test cases and defect - Home Carousel Figure and cart ...

The next web project notes by hand

Yesterday Review

Set up a test environment (WAMP, phpStudy, tpshop project file)

Familiar with project (four steps, three sources)

Project testing process (needs assessment, test plans and programs, and review test case design, test execution with BUG tracking, test report)

Requirements Review (purpose, form, test duties)

The preparation of test plans and programs (core)

Project database (connection, the user table, merchandise table, orders, navigation table)

 

Day learning objectives

  • Enter the master registration function analysis

  • Master registration processing function analysis

  • Master registration function output analysis

  • Registration grasp functional test cases and defects in writing

  • Master Home Carousel Figure write test cases and defects

  • Grasp cart functional test cases and defects in writing

 

Equivalence partitioning method - Review

Concept: all the input data are divided into equivalence classes, and select a small representative data from tests performed equivalence class

Effective equivalence class

Invalid equivalence class

Example written steps of:

  1. Clear demand

  2. Division of equivalence classes

  3. Write test cases

 

Write use cases steps to register function

  1. demand analysis

    • Input analysis

    • Processing and analysis

    • Output analysis

  2. Data structure

  3. Written Cases

Examples template and defects

  • Content use case

    • ID

    • Function module belongs

    • priority

    • Use Case title

    • Preconditions

    • Test Data

    • Steps

    • expected results

  • Content defects

    • Defects in title

    • Preconditions

    • Steps to Reproduce

    • Desired result

    • actual results

 

Registration function - needs analysis

Input Analysis: length, type, composition rules, is empty, whether to repeat

Processing and analysis: entered correctly, the wrong input

Output Analysis: foreground, background, database

Registration function - Data structure

Effective equivalence class, invalid equivalence class

Valid data, invalid data

When it comes to the length, range, bounded size such case, the bonding boundary value analysis

 

Registration function - to write test cases

Data structure, a data corresponding to a test case

Analysis of the output with the expected results of Examples with reference to the needs of

 

Registration function - test case execution

Executed one by one

Details of execution according to embodiments of the (pre-set conditions, the test data, steps, expected results)

Note: You can not just look at the title's execution

Results of use case: pass, fail, block, NA

Use cases failed to promptly fill out a bug report.

Carousel Figure function - to write test cases

  • demand analysis

    • Split (extraction) test point (the minimum point of need or rules)

    • The test point, case design analysis method

  • Writing test cases, a test point corresponds to at least a test case

  Carousel Figure demand analysis

  

Carousel Figure Test Case

FIG function carousel - by performing defect prepared in Example

pass,fail

fail的用例及时编写缺陷报告

缺陷报告编写/提交完成后,继续进行测试用例的执行

购物功能-需求分析

  • 拆分(抽取)测试点(最小的的需求点或者规则)

  • 根据测试点,分析用例设计方法(常用的边界值,等价类)

  

购物车功能-测试用例编写

逐个测试点进行编写,一个测试点对应一条测试用例

注意:规则和操作(购物车商品数量限制和商品数量编辑)有重叠的时候,注意不要有重复的测试用例。

购物车功能-用例执行

用例逐条执行

失败的用例马上编写缺陷报告

转载于:https://www.cnblogs.com/snailon/p/11065050.html

Guess you like

Origin blog.csdn.net/weixin_34102807/article/details/93409954