Details

    • Type: Technical Testing
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      ECHO Test Cases

      Case 1:
      Unlogged users without permission cannot view the content of a Display Page, and after login, they are redirected to the content page.

      1. Add a new site based on Blank Site template called Test Site Name
      2. Go to Product Menu > Design > Page Template
      3. Select Blank Master Page > Add a Display Page Template> Type: Web Content Article, Subtype: Basic Web Content
      4. Add a Fragment (e.g. Heading) and mapping the title fragment
      5. Publish it and set it as the Mark as the Default display page
      6. Create a Basic Web Content
      7. Set the friendly URL field with web-content and Publish it
      8. Edit the Web Content permissions and set only viewable by the Owner and the Site Member (remove all permissions for guest)
      9. Open a new window
      10. Redirect to page http://localhost:8080/web/test-site-name/-/web-content
      11. Assert we are redirected to the logging page
      12. Do login
      13. Assert we are redirected to the content display
         

      Case 2:
      Logged users without permission cannot view the content of a Display Page

      1. Add a new site based on Blank Site template called Test Site Name
      2. Go to Product Menu > Design > Page Template
      3. Select Blank Master Page > Add a Display Page Template> Type: Web Content Article, Subtype: Basic Web Content
      4. Add a Fragment (e.g. Heading) and and mapping the title fragment
      5. Publish it and set as the Mark as Default display page
      6. Create a Basic Web Content
      7. Set the friendlyURL field with: web-content and Publish it
      8. Edit the Web Content permissions and set only viewable by the Owner and the Site Member (remove all permissions for guest)
      9. Go to Control Panel > User and Organizations > Add User > Set required fields > Save
      10. Go to Password and set Password to user
      11. Go to Control Panel > Configuration > Instance Settings > User Authentication and Disable the "Require strangers to verify their email address?"
      12. Open a new window
      13. Redirect to page http://localhost:8080/web/test-site-name/-/web-content
      14. Assert if the following message will be displayed "You do not have the required permissions to view the content of this page."

      LOL Test Cases

      Requirement to build Liferay Online:

      1. Create a DXP bundle
      2. Configure to use the MySQL database
      3. Add the Liferay Online property
        https://liferay.atlassian.net/wiki/spaces/ENGDXPONLINE/pages/1888452877/Run+DXP+with+Liferay+Online+configurations+locally
      4. Create the default instance on hosts "127.0.0.1 default"

      Case 3:

      Unlogged users without permission cannot view the content of a Display Page, and after login, they are redirected to the content page.

      1. Go to Control Panel > System > Virtual Instances
      2. Click on Add
      3. Create one virtual instance using "Test Virtual Instance" on the Web ID and the "default" on the "virtual host" field
      4. Select the Default (blank) Initializer
      5. Press Save
      6. Go to URL: http://default:8080/
      7. Sign In
      8. Go to Product Menu > Design > Page Template
      9. Add a Display Page Template > Select Blank Master Page > Type: Web Content Article, Subtype: Basic Web Content
      10. Add a Fragment (e.g. Heading) and mapping the title fragment
      11. Publish it and set it as the Mark as the Default display page
      12. Create a Basic Web Content
      13. Set the friendly URL field with "web-content" and Publish it
      14. Edit the Web Content permissions and set only viewable by the Owner and the Site Member (remove all permissions for guest)
      15. Sign Out
      16. Open a new window
      17. Redirect to page http://default:8080/-/web-content
      18. Assert we are redirected to the logging page
      19. Do login
      20. Assert we are redirected to the content display

      Case 4:

      Logged users without permission cannot view the content of a Display Page

      1. Go to Control Panel > System > Virtual Instances
      2. Click on Add
      3. Create one virtual instance using "Test Virtual Instance" on the Web ID and the "default" on the Virtual Host field
      4. Select the Default (blank) Initializer
      5. Press Save
      6. Go to URL: http://default:8080/
      7. Sign In
      8. Go to Product Menu > Design > Page Template
      9. Go to tab Display Page Template > Select Blank Master Page > Type: Web Content Article, Subtype: Basic Web Content
      10. Add a Fragment (e.g. Heading) and and mapping the title fragment
      11. Publish it and set as the Mark as Default display page
      12. Create a Basic Web Content
      13. Set the friendlyURL field with "web-content" and Publish it
      14. Edit the Web Content permissions and set only viewable by the Owner and the Site Member (remove all permissions for guest)
      15. Go to Control Panel > User and Organizations > Add User > Set required fields > Save
      16. Go to Password and set Password to user
      17. Go to Control Panel > Configuration > Instance Settings > User Authentication and Disable the "Require strangers to verify their email address?"
      18. Open a new window
      19. Redirect to page http://default:8080/-/web-content
      20. Sign it as this new user
      21. Assert if the following message will be displayed "You do not have the required permissions to view the content of this page."

        Attachments

          Activity

            People

            Assignee:
            thalita.celi Thalita Celi
            Reporter:
            david.gutierrez David Gutiérrez Mesa
            Recent user:
            David Gutiérrez Mesa
            Participants of an Issue:
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Packages

                Version Package