1. Trang chủ
  2. » Công Nghệ Thông Tin

How to write functional testcases

34 11 0

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

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Tiêu đề Functional Test Cases
Định dạng
Số trang 34
Dung lượng 218,71 KB
File đính kèm ST_L07_Example-of-Functional-TCs.rar (43 KB)

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

4f1347dd81de56c4140b1a172bdd28d2a848520b17366dec72ce36cab6361892 xlsx Revision History Revision Description FUNCTIONAL TEST CASES for Author Issue Date FUNCTIONAL TEST CASES for Release Information Project Internal Release Number Release Audience Attached Worksheet Related Documents Links to Relevant Standards Links to Other Documents List of Test Cases No Function Unique TC ID 1 TC PCS MU 001 2 TC PCS MU 002 3 TC PCS MU 003 4 TC PCS MU 004 5 TC PCS MU.

Trang 1

Revision History

FUNCTIONAL TEST CASES for <Project Name>

Trang 2

Author Issue Date

<dd/mm/yyyy>

FUNCTIONAL TEST CASES for <Project Name>

Trang 5

Links to Relevant Standards

Links to Other Documents

List of Test Cases

Trang 7

Unique Title

CreateNewUser-Basic Flow (Positive)

CreateNewUser-A1 (Error in the validation of user details - field First name contains empty string)

CreateNewUser-A1 (Error in the validation of user details - field First name consists solely of white space

CreateNewUser-A1 (Error in the validation of user details - field Surname contains empty string)

CreateNewUser-A1 (Error in the validation of user details - field Surname consists solely of white space

CreateNewUser-A1 (Error in the validation of user details - field Gender is not selected).CreateNewUser-A1 (Error in the validation of user details - field Address contains empty string)

CreateNewUser-A1 (Error in the validation of user details - field Address consists solely of white space

CreateNewUser-A1 (Error in the validation of user details - field City contains empty string).CreateNewUser-A1 (Error in the validation of user details - field City consists solely of white space

CreateNewUser-A1 (Error in the validation of user details - field Zipcode contains empty string)

CreateNewUser-A1 (Error in the validation of user details - field Zipcode consists solely of white space

CreateNewUser-A1 (Error in the validation of user details - field Department is not selected)

Trang 8

CreateNewUser-A1 (Error in the validation of user details - field Permission is not selected).CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of April).

CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of June)

CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of September)

CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of November)

CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of February)

CreateNewUser-A1 (Error in the validation of user details - field Birthdate contains invalid format of February - not leap year)

Trang 10

Create a new user unsuccessfully because the required field Permission contains null.

Create a new user unsuccessfully because the field Birthdate contains invalid format of April

Create a new user unsuccessfully because the field Birthdate contains invalid format of June

Create a new user unsuccessfully because the field Birthdate contains invalid format of September

Create a new user unsuccessfully because the field Birthdate contains invalid format of November

Create a new user unsuccessfully because the field Birthdate contains invalid format of February

Create a new user unsuccessfully because the field Birthdate contains invalid format of February - not leap year

Trang 11

No Test Case Purpose Initial Conditions TC-PCS-MU-001:

CreateNewUser-Basic

Flow (Positive)

Test that the System Administrator can create a new user in system successfully with valid input of user details

The user must be logged-in as “System Administrator”

1

3 TC-PCS-MU-003:

CreateNewUser-A1

(Error in the validation

of user details - field

Firstname consists

solely of white space)

Test that the System Administrator cannot create a new user in system because the required field Firstname consists solely of white space

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except only space bar for Firstname

2 TC-PCS-MU-002:

CreateNewUser-A1

(Error in the validation

of user details - field

Firstname contains

empty string)

Test that the System Administrator cannot create a new user in system because the required field Firstname contains empty string

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except

Firstname

4 TC-PCS-MU-004:

CreateNewUser-A1

(Error in the validation

of user details - field

Surname contains

empty string)

Test that the System Administrator cannot create a new user in system because the required field Surname contains

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required

Trang 12

5 TC-PCS-MU-005:

CreateNewUser-A1

(Error in the validation

of user details - field

Surname consists

solely of white space)

Test that the System Administrator cannot create a new user in system because the required field Surname consists solely of white space

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except only space bar for Surname

empty string) Surname contains

(Error in the validation

of user details - field

Address contains

empty string)

Test that the System Administrator cannot create a new user in system because the required field Address contains empty string

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except Address

6 TC-PCS-MU-006:

CreateNewUser-A1

(Error in the validation

of user details - field

Gender contains null)

Test that the System Administrator cannot create a new user in system because the required field Gender

is not selected

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except Gender

8 TC-PCS-MU-008:

CreateNewUser-A1

(Error in the validation

of user details - field

Address consists

solely of white space)

Test that the System Administrator cannot create a new user in system because the required field Address consists solely of

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required

Trang 13

solely of white space) consists solely of

white space

value in all required fields except only space bar for Address

9 TC-PCS-MU-009:

CreateNewUser-A1

(Error in the validation

of user details - field

City contains empty

string)

Test that the System Administrator cannot create a new user in system because the required field City contains empty string

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except City

12 TC-PCS-MU-012:

CreateNewUser-A1

(Error in the validation

of user details - field

Zipcode consists solely

of white space)

Test that the System Administrator cannot create a new user in system because the required field Zipcode consists solely of

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required

Test that the System Administrator cannot create a new user in system because the required field City consists solely of white space

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except only space bar for City

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except Zipcode

10 TC-PCS-MU-010:

CreateNewUser-A1

(Error in the validation

of user details - field

City consists solely of

white space)

11 TC-PCS-MU-011:

CreateNewUser-A1

(Error in the validation

of user details - field

Zipcode contains

empty string)

Test that the System Administrator cannot create a new user in system because the required field Zipcode contains empty string

Trang 14

of white space) consists solely of

white space

value in all required fields except only space bar for Zipcode

14 TC-PCS-MU-014:

CreateNewUser-A1

(Error in the validation

of user details - field

Permission contains

null)

Test that the System Administrator cannot create a new user in system because the required field Permission is not selected

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except

Permission

13 TC-PCS-MU-013:

CreateNewUser-A1

(Error in the validation

of user details - field

Department contains

null)

Test that the System Administrator cannot create a new user in system because the required field Department is not selected

- The user must be logged-in as “System Administrator”

- The user fills valid value in all required fields except

Department

16 TC-PCS-MU-015.02:

CreateNewUser-A1

(Error in the validation

of user details - field

Birthdate contains

invalid format of June)

Test that the System Administrator cannot create a new user in system because field Birthdate contains an invalid date format of June

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

15 TC-PCS-MU-015.01:

CreateNewUser-A1

(Error in the validation

of user details - field

Birthdate contains

invalid format of April)

Test that the System Administrator cannot create a new user in system because field Birthdate contains an invalid date format of April

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

Trang 15

20 TC-PCS-MU-015.06:

CreateNewUser-A1

(Error in the validation

of user details - field

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

18 TC-PCS-MU-015.04:

CreateNewUser-A1

(Error in the validation

of user details - field

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

17 TC-PCS-MU-015.03:

CreateNewUser-A1

(Error in the validation

of user details - field

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

19 TC-PCS-MU-015.05:

CreateNewUser-A1

(Error in the validation

of user details - field

- The user must be logged-in as “System Administrator”

- The user fills valid value in all fields except invalid format for Birthdate

Trang 16

Test Data Step # Step Action

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data),

and click button Save

3

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

- Firstname = “Jan”

- Surname = “Thomson”

- Birth date = “29-Feb-1988”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- City = “Manchester”

- Zip code = "55555”

Trang 17

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

- Firstname = “Jan”

- Surname = “ ”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

Trang 18

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- City = “Manchester”

- Zip code = " ”

- Firstname = “Jan”

- Surname = “Thomson”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

Trang 19

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

- Birth date = “12-Dec-1970”

- Address = “122, Main Road”

Trang 20

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

1 User chooses the function Create New User

2

User enters value for input

fields on the screen (follows the

values in column Test Data) ,

and click button Save

Trang 21

Expected Result Actual Result

The system displays Create New User screen

System does the following:

1 Create a new user with 4 digits employee

ID and the attributes typed-in

2 Assign a default password being 8

characters long

3 Grant the permission as specified by the

attribute typed-in

System displays the Confirmation screen with

all input values as specified by user and the

message "A new user with information as

specified below has been saved into system

successfully."

The system displays Create New User screen

System displays the error message "The field

Firstname is required.", and focuses the

cursor on field Firstname for user input value

again

The system displays Create New User screen

System displays the error message "The field

Firstname is required.", and focuses the

cursor on field Firstname for user input value

again

The system displays Create New User screen

Ngày đăng: 23/05/2022, 22:45

HÌNH ẢNH LIÊN QUAN

Hệ thống hiển thị giao diện màn hình &#34;Tạo mới người dùng&#34; với con trỏ mặc định nằm tại  trường Firstname. - How to write functional testcases
th ống hiển thị giao diện màn hình &#34;Tạo mới người dùng&#34; với con trỏ mặc định nằm tại trường Firstname (Trang 33)

TỪ KHÓA LIÊN QUAN

w