-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OUBlog: Tweet a (publicly accessible) post#11762
- Loading branch information
1 parent
e3f9f06
commit c26a977
Showing
6 changed files
with
242 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,127 @@ | ||
This script describes steps to test OU Blog standard tweet functionality. | ||
It is intended to cover just the Tweet UI feature. | ||
|
||
NOTE: In this test case, the word 'blog' always refers to the OU blog. | ||
|
||
Some test steps in this script follow on from each other and aren't independent. | ||
In these cases the prerequisite steps are listed. | ||
|
||
Initial setup | ||
============= | ||
|
||
This test case requires: | ||
|
||
- a text file 'post1.txt' for attachment-upload. | ||
- a user with administration rights | ||
- access to the personal blog. | ||
|
||
The test server must have debugging set to DEVELOPER level and to display | ||
errors; during all parts of the test script, there should be no debugging | ||
warnings. | ||
|
||
Note: With Javascript enabled a Twitter "Tweet" widget button will be provided, | ||
without Javascript a "Tweet" link will be provided. | ||
|
||
TCR Creating blog data | ||
====================== | ||
|
||
TCR01 / admin. | ||
Log in and access the 'Personal Blog'. | ||
Select the 'New blog post' button. | ||
Enter 'TCR01 tweet a titled post' into the 'Title' field. | ||
Enter some text into the 'Message' field. | ||
Change 'Who can read this?' to the 'Visible to anyone in the world' setting. | ||
Select 'Add post' button to save the new post and return to main blog view. | ||
-- Verify post created is displayed at the top of the posts area. | ||
-- Confirm that the post has a dark grey box in its top right corner, | ||
with the label 'Share this post' with a 'Tweet' button/link beneath. | ||
|
||
TCR02 / admin. | ||
Select the 'New blog post' button. | ||
Leave the 'Title' field empty. | ||
Enter 'TCR02 tweet an untitled post' into the 'Message' field. | ||
-- Attach the text file to the post. | ||
Change 'Who can read this?' to the 'Visible to anyone in the world' setting. | ||
Select 'Add post' button to save the new post and return to main blog view. | ||
-- Verify this new post created is displayed at the top of the posts area. | ||
-- Confirm that the post has a light grey box in its top right corner, with the label | ||
'Attachments' with an icon and 'post1.txt' download link beneath. | ||
-- Confirm that beneath the 'Attachments' box is the dark grey box, with the label | ||
'Share this post' with a 'Tweet' button/link beneath. | ||
|
||
TCR03 / admin. | ||
Select the 'New blog post' button. | ||
Enter 'TCR03 can only tweet a public post' into the 'Title' field. | ||
Enter some text into the 'Message' field. | ||
Change 'Who can read this?' to 'Visible to everyone who is logged in to the system'. | ||
-- Verify that the post does not have the dark grey box, with the label | ||
'Share this post' with a 'Tweet' button/link beneath. | ||
|
||
|
||
TWT Testing Tweet button | ||
======================== | ||
|
||
TWT01 / admin | ||
On the post titled "TCR01 tweet a titled post". | ||
Click 'Permalink' link, to open the post in another tab. | ||
Note the post=id in the viewpost.php page URL. | ||
|
||
Return to the post "TCR01" on the blog main page. | ||
|
||
TWT02 / admin | ||
Click the 'Tweet' button/link for post "TCR01 tweet a titled post". | ||
-- Confirm that a new 'Share a link on Twitter' window pops up. | ||
-- Verify that the text box 'Share a link with your followers' contains | ||
'TCR01 tweet a titled post {Admin user's blog}' | ||
-- Confirm that this is followed by the URL of the viewpost.php page for the post "TCR01". | ||
|
||
Close the popup window. | ||
|
||
TWT03 / admin | ||
On the Untitled post "TCR02". | ||
Click 'Permalink' link, to open this post in another tab. | ||
Note the post=id in the viewpost.php page URL. | ||
|
||
Return to the post "TCR02" on the blog main page. | ||
|
||
TWT04 / admin | ||
Click the 'Tweet' button/link for the Untitled post "TCR02". | ||
-- Confirm that a new 'Share a link on Twitter' window pops up. | ||
-- Verify that the text box 'Share a link with your followers' contains | ||
'Untitled post {Admin user's blog}' | ||
-- Confirm that this is followed by the URL of the viewpost.php page for the post "TCR02". | ||
|
||
Close the popup window. | ||
|
||
TWT05 / admin | ||
On the post titled "TCR01 tweet a titled post". | ||
Click 'Permalink' link, to open the post in the viewpost.php page. | ||
Click the 'Tweet' button/link for the post. | ||
-- Confirm that a new 'Share a link on Twitter' window pops up. | ||
-- Verify that the text box 'Share a link with your followers' contains | ||
'TCR01 tweet a titled post {Admin user's blog}' | ||
-- Confirm that this is followed by the URL of this viewpost.php page for the post "TCR01". | ||
|
||
Close the popup window. | ||
|
||
TWT06 / admin | ||
In the Blog summary block. | ||
Click the 'View site entries' link. | ||
-- Verify the the allposts.php page opens showing 'Personal blogs' | ||
-- Confirm that only posts 'Visible to anyone in the world' have the dark grey box, | ||
with the label 'Share this post' with a 'Tweet' button/link beneath. | ||
|
||
TWT07 / admin | ||
Repeat steps TWT01-TWT04 to confirm functionality for allposts, 'Personal blogs' page. | ||
|
||
Log out or open a different browser. | ||
|
||
TWT08 / Not logged in user | ||
-- Confirm that only posts 'Visible to anyone in the world' are available. | ||
-- Confirm that they have the dark grey box, with the label 'Share this post' | ||
with a 'Tweet' button/link beneath. | ||
|
||
TWT09 / Not logged in user | ||
Repeat steps TWT01-TWT04 to confirm functionality for 'Non logged in user'. | ||
|
||
Test ends. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters