Environment:
JCommune 2.12.2588.bcb03a7 (QA)
Browsers: FireFox 31.0, Chrome 37.0.2062.103 m
Test Scenario 1:
Receiver's name exactly matches username.
Pre-conditions:
User has permission to send Private Messages.
Step to reproduce:
1. Login to forum, go to user menu -> Message
2. Click Compose button
3. Fill out all fields with valid test data except "To" field
4.Type name that exactly matches User name in language, letter case, so on ( for ex: If your name user, type user)
Click Send
AR: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
ER: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
AR=ER.
Test Scenario 2:
Username is in Endlish. Receiver's name has different letter case
Pre-conditions:
User with username consisting of English letters is created.
User has permission to send Private Messages
Step to reproduce:
1. Login to forum, go to user menu -> Message
2. Click Compose button
3. Fill out all fields with valid test data except "To" field
4. Type name that matches User name but with letters in different case. ( for ex: If your name user, type UsEr)
Click Send
AR: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
ER: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
AR=ER.
Test Scenario 3:
Username is in Russian. Receiver's name has different letter case
Pre-conditions:
User with username consisting of Russian letters is created.
User has permission to send Private Messages
Step to reproduce:
#Login to forum, go to user menu -> Message
#Click Compose button
#Fill out all fields with valid test data except "To" field
#Type name that matches User name but with letters in different case. ( for ex: If your name Маша, type мАША)
Click Send
AR: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
ER: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
Test Scenario 4:
Accented letters in Username. Receiver's name has different letter case
Pre-conditions:
User with username consisting of accented letters is created.
User has permission to send Private Messages.
Step to reproduce:
1. Login to forum, go to user menu -> Message
2. Click Compose button
3. Fill out all fields with valid test data except "To" field
4. Type name that matches User name but with letters in different case.
Click Send
AR: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
ER: Message is not sent. Error message "Sending messages to yourself is not allowed" appears under "To" field.
Regression tests
№ |
Test |
Results |
1 |
Send private message through User menu -> Messages. |
PASS |
2 |
Send private message to the specific User through his profile. |
PASS |
3 |
Save new private message in Drafts. |
PASS |
4 |
Receive private message. |
PASS |
5 |
Send private message to yourself through User's Profile. |
PASS |
6 |
Save private message addressed to yourself. |
PASS |
7 |
Send private message addressed to unexisting user. |
PASS |
8 |
Save private message addressed to unexisting user |
PASS |
9 |
Preview private message addressed to yourself |
PASS |
10 |
View. Form for private message |
PASS |
Tests result Issue can be closed
Pull reqeust created, unit test added