November 20, 2014 Test Category: Unit Description: Validation of

advertisement
November 20, 2014
Test Category: Unit
Description: Protein sequence length validation
Test Case: 1.1
Case Name: Amino acid
Version: 3
Written By:
length
Jasmine Jones
Purpose: Ensures that an amino acid sequence is at least 40
characters in length
Requirements Fulfilled:
3.1.6.1.3
Setup Conditions:
1.
2.
3.
4.
5.
Home webpage test case has passed
Protein sequence submission form test case has passed
Web browser is navigated to www.cs.odu.edu/~411blue/CS411/
A 39 character amino acid sequence
A 40 character amino acid sequence
Test Case Activity
Pass/Fail
Comments
Expected Result
1
Leave the amino acid input field
empty, click the submit button
An error message indicating
that an amino acid sequence is
required
2
Enter a 39 character amino acid
sequence, click the submit button
An error message indicating
that the amino acid sequence
must be at least 40 characters
in length
3
Enter a 40 character amino acid
sequence, click the submit button
No error message
November 20, 2014
Test Category: Unit
Description: Protein sequence with sequence title validation
Test Case: 1.2
Case Name: Amino acid
Version: 3
Written By:
with sequence title
Jasmine Jones
Purpose: Ensures that the optional sequence title is not treated as
part of the amino acid sequence
Requirements Fulfilled:
3.1.6.1.1-3.1.6.1.2
Setup Conditions:
6. Home webpage test case has passed
7. Protein sequence submission form test case has passed
8. Amino acid length test case has passed
9. Web browser is navigated to www.cs.odu.edu/~411blue/CS411/
10. A 39 character amino acid sequence
11. A 40 character amino acid sequence
12. A sequence title
Test Case Activity
Pass/Fail
Comments
Expected Result
1
Enter a sequence title and on the
same line enter a 39 character
amino acid sequence
An error message indicating
that the amino acid sequence
must begin on a new line
2
Enter a sequence title and on a new
line enter a 39 character amino acid
sequence
An error message indicating
that an amino acid sequence
must be at least 40 characters
in length
3
Repeat step 1 with a 40 character
amino acid sequence
4
Repeat step 2 with a 40 character
amino acid sequence
An error message indicating
that the amino acid sequence
must begin on a new line
No error message
November 20, 2014
Test Category: Unit
Description: Amino acid sequence sanitation
Test Case: 1.3
Case Name: Amino acid
Version: 2
Written By:
sequence sanitation
Jasmine Jones
Purpose: Ensures that invalid input will be detected and can be
automatically removed
Requirements Fulfilled:
3.1.6.1.4 - 3.1.6.1.4.5.1
Setup Conditions:
1.
2.
3.
4.
5.
6.
Home webpage test case has passed
Protein sequence submission form test case has passed
Amino acid length test case has passed
Sequence with sequence title test case has passed
Web browser is navigated to www.cs.odu.edu/~411blue/CS411/
The amino acid sequence found at:
http://www.cs.odu.edu/~411blue/testData/InvalidInput.txt
which contains the following:
whitespace, “B”, “J”, “O”, “U”, “X”, “Z”, “b”, “j”, “o”, “u”, “x”, “z”, non-alphabetical
characters
Test Case Activity
1
Enter the amino acid sequence
provided in setup condition 6, click
the submit button
Pass/Fail
Comments
Expected Result



2
Click the button to automatically
remove whitespace



An error message
indicating that the amino
acid sequence contains
whitespace
A message asking if
whitespace should be
automatically removed
A button to automatically
remove whitespace
Whitespace is removed
An error message
indicating that the amino
acid sequence contains
invalid residues: B J O U
XZ
A message asking if
invalid residues should be
automatically removed
November 20, 2014
3
Click the button to automatically
remove invalid residues

A button to automatically
remove invalid residues

Invalid residues are
removed
An error message
indicating that the amino
acid sequence contains
non-alphabetical
characters
A message asking if nonalphabetical characters
should be automatically
removed
A button to automatically
remove non-alphabetical
characters



4
Click the button to automatically
remove non-alphabetical characters


Non-alphabetical
characters are removed
No error message
Download