Advertisement
Guest User

Untitled

a guest
Feb 18th, 2016
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1.  
  2. Bash Script (install.sh):
  3. Add bash script so that all tests requirements can be prepared.
  4.  
  5. ☐ Create a VHOST record for anspress_test.localhost site and restart apache2
  6. ☐ Download latest WordPress and unzip in anspress_test document root.
  7. ☐ Download latest AnsPress and unzip in anspress_test plugin directory.
  8. ☐ Create database with credential user:anspress_test password:anspress_test database name:anspress_test
  9. ☐ Install WP with credential user:admin and password:admin
  10. ☐ Enable %postname% permalink.
  11.  
  12. Travis:
  13. ☐ Setup MySql
  14. ☐ Setup Apache2
  15. ☐ Install composer
  16. ☐ Install wp-cli
  17. ☐ Install codeception
  18.  
  19. Acceptance:
  20. ☐ Add login method in AcceptanceTester.
  21. ☐ Add switch user method.
  22.  
  23. Basic Setup:
  24. Initialize basic for WordPress test site.
  25. ☐ Activate AnsPress.
  26. ☐ Install TwentyTwelve theme.
  27. ☐ Activate TwentyTwelve theme.
  28. ☐ Add Question page with title "Question" and page content "[anspress]".
  29. ☐ Add AnsPress navigation links to "Primary Menu".
  30. ☐ Check if question page is working.
  31. ☐ Add 3 normal user with subscriber role.
  32. ☐ User 1 credential: user1:user1
  33. ☐ User 2 credential: user2:user2
  34. ☐ User 3 credential: user3:user3
  35. ☐ User 4 credential: user4:user4
  36.  
  37. Ask Question:
  38. ☐ Post question as user1 without title, content, check error message.
  39.  
  40. Question:
  41. ☐ Post a question as user1 and check if it is showing.
  42. Title "This is question 1"
  43. ☐ Post a comment as user1 in question and check if showing.
  44. Content "Test comment on This is question 1"
  45. ☐ Cast up vote as user2 in question and check if its showing.
  46. ☐ Cast down vote as admin in question and check if its showing.
  47.  
  48. Answer:
  49. ☐ Post an answer as user3 and check if this is showing.
  50. content "This is an interesting answer on question 1. Hope this will work."
  51. ☐ Post an answer as user2 and check if this is showing.
  52. content "This is an interesting question again for question 1. Hope this will work as well."
  53. ☐ Select answer 2 as best as user1.
  54. ☐ Up vote on both answer as user1.
  55. ☐ Comment on answer 1 as user1.
  56. ☐ Replay comment on answer1 as user2.
  57.  
  58. Status:
  59. ☐ Change status of question to private as user1.
  60. ☐ Check if user4 can see question in single question page and list page (They shouldn't).
  61. ☐ Check if user2 can see question in single question page and list page (They should).
  62. ☐ Check if user3 can see question content in single question page and list page (They should).
  63. ☐ Change status of question to publish as admin.
  64. ☐ Change status of answer 1 to private as user3.
  65. ☐ Check if user2 can see answer1 (They shouldn't).
  66. ☐ Check if user1 can see answer1 (They should).
  67. ☐ Check if admin can see answer1 (They should).
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement