1. Trang chủ
  2. » Lịch sử lớp 11

Lecture Software testing and quality assurance: Lecture 7 - TS. Đào Nam Anh

10 12 0

Đang tải... (xem toàn văn)

THÔNG TIN TÀI LIỆU

Test the Test the “ “ normal normal ” ” conditions by covering the BNF conditions by covering the BNF syntax graph of the input language. (minimum[r]

(1)

Software Testing and Quality Assurance

Software Testing and Quality Assurance

Stub & Driver

Stub & Driver

Dr Dao Nam Anh

Dr Dao Nam Anh

Faculty of Information Technology

Faculty of Information Technology

University of Technology and Management

(2)

Resources

Resources

► Pressman, Software Engineering, McGraw Hill (chapter 18

& 19)

► Sommerville, Software Engineering, Addison-Wesley

(chapter 22 & 23)

► Software Testing and QA Theory and Practics, Chapter 7,

WILEY Publish

► Foundations Of Software Testing, Istqb Certification,

Dorothy Graham, Erik Van Veenendaal, Isabel Evans, Rex Black

► Jovanović, Irena, Software Testing Methods and

Techniques

(3)

N

Nộội dungi dung

► GGỡỡ llỗỗi Brute Forcei Brute Force

► SSửửa la lỗỗi i G

Gỡỡ llỗỗi bi bằằng suy lung suy luậậnn

► GGỡỡ llỗỗi bi bằằng cng cáách loch loạại tri trừừ

► GGỡỡ llỗỗi bi bằằng lng lùùii

► Phân tPhân tíích lch lỗỗii

► Unit TestUnit Test

► Mock objectMock object

► StubStub

(4)

Gỡ lỗi Brute Force:

►Xem nhớ

►Đọc từ đầu đến cuối chương trình

(5)

BNF

BNF

► Syntax is defined in BNF as a set of Syntax is defined in BNF as a set of definitions Each definition may in

definitions Each definition may in--turn refer turn refer to other definitions or to itself.

to other definitions or to itself.

► The LHS of a definition is the name given to The LHS of a definition is the name given to the collection of objects on the RHS.

the collection of objects on the RHS.

::= means ::= means ““is defined asis defined as””

| means | means ““oror””

* means * means ““zero or more occurrenceszero or more occurrences””

+ means + means ““one or more occurrencesone or more occurrences””

(6)

BNF Example

BNF Example

► Correct phone numbers:Correct phone numbers:

3469900, 9904567, 33000003469900, 9904567, 3300000

► Incorrect phone numbers:Incorrect phone numbers:

special_digit ::= | | | 5

other_digit ::= | | | | | | | 9

ordinary_digit ::= special_digit | other_digit exchange_part ::= ordinary_digit number_part ::=

phone_number ::= exchange_part number_part

(7)

Gỡ lỗi suy luận:

►Suy nghĩ cẩn thận tìm thấy hầu hết

lỗi mà không cần ngồi gần máy tính

►Phân tích từ tình cụ thể

(8)

Syntax Testing Steps

Syntax Testing Steps

► Identify the target language or format.Identify the target language or format.

► Define the syntax of the language, formally, Define the syntax of the language, formally, in a notation such as BNF.

in a notation such as BNF.

► Test and Debug the syntax:Test and Debug the syntax:

Test the Test the ““normalnormal”” conditions by covering the BNF conditions by covering the BNF syntax graph of the input language (minimum

syntax graph of the input language (minimum

requirement)

requirement)

Test the Test the ““garbagegarbage”” conditions by testing the conditions by testing the system against invalid data (high payoff)

(9)

Gỡ lỗi suy luận:

1. Tạo liệu kiểm thử

2. Tổ chức liệu theo thứ tự riêng cho

chức kiểm thử sinh lỗi

3. Đề xuất giả thiết nguyên nhân gây lỗi

(10)

Ngày đăng: 09/03/2021, 03:15

Xem thêm: