Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-137276 Test automation related to Personalization
  3. LPS-137430

Test automation related to LPS-108368: "Combine content personalizations for multisegment-belonging users"

    Details

      Description

      NOTE: This test is related to Collections (Content Sets) so it has to be included in the Collections.testcase within the segmentation folder.

      Test case 1

      Asset Publisher configured with manual content set WITHOUT pagination shows assets for the two personalized views the user belongs to when the configuration is enabled 5 - Critical

      Test name: CombineContentForMultisegmentManualCollectionWithoutPagination
      Steps to reproduce:

      1. Go to Product Menu > Control Panel > Configuration > System Settings > Assets > System Scope > Collections
      2. Check "Combine Assets from All Segments in Asset Publisher for Manual Collections" > Click 'Save'/'Update'
      3. Create two Web Contents using JSONWebcontent.addWebContent
      4. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      5. Create a new Manual Collection using JSONAssetlist.addManualAssetListEntry
      6. Go to Collections page > Collection previously created > Select the Web Contents previously created
      7. Go to Site Page > Edit > Add an Asset Publisher widget
      8. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      9. Assert if both Web Contents are displayed

      Test case 2

      Asset Publisher configured with dynamic content set WITHOUT pagination shows assets for the two personalized views the user belongs to when the configuration is enabled 5 - Critical

      Test name: CombineContentForMultisegmentDynamicCollectionWithoutPagination
      Steps to reproduce:

      1. Go to Product Menu > Control Panel > Configuration > System Settings > Assets > System Scope > Collections
      2. Check "Combine Assets from All Segments in Asset Publisher for Manual Collections" > Click 'Save'/'Update'
      3. Create two Web Contents using JSONWebcontent.addWebContent with assetTagNames argument
      4. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      5. Create a new Dynamic Collection using JSONAssetlist.addDynamicAssetListEntry
      6. Go to Collections page > Collection previously created > Add filter the tag used when creating the WC
      7. Go to Site Page > Edit > Add an Asset Publisher widget
      8. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      9. Assert if both Web Contents are displayed

      Test case 3

      Asset Publisher configured with manual content set WITH pagination shows assets for the two personalized views the user belongs to when the configuration is enabled 5 - Critical

      Test name: CombineContentForMultisegmentManualCollectionWithPagination
      Steps to reproduce:

      1. Go to Product Menu > Control Panel > Configuration > System Settings > Assets > System Scope > Collections
      2. Check "Combine Assets from All Segments in Asset Publisher for Manual Collections" > Click 'Save'/'Update'
      3. Create two Web Contents using JSONWebcontent.addWebContent
      4. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      5. Create a new Manual Collection using JSONAssetlist.addManualAssetListEntry
      6. Go to Collections page > Collection previously created > Select the Web Contents previously created
      7. Go to Site Page > Edit > Add an Asset Publisher widget
      8. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      9. Go to Widgets configuration > Setup > "Display Settings" tab > "Display Settings" section > Set 'Number of Items to Display' to 1 > Set 'Pagination Type' to Regular > "Save"
      10. Assert if both Web Contents are displayed

      Test case 4

      Asset Publisher configured with dynamic content set WITH pagination shows assets for the two personalized views the user belongs to when the configuration is enabled 5 - Critical

      Test name: CombineContentForMultisegmentDynamicCollectionWithPagination
      Steps to reproduce:

      1. Go to Product Menu > Control Panel > Configuration > System Settings > Assets > System Scope > Collections
      2. Check "Combine Assets from All Segments in Asset Publisher for Manual Collections" > Click 'Save'/'Update'
      3. Create two Web Contents using JSONWebcontent.addWebContent with assetTagNames argument
      4. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      5. Create a new Dynamic Collection using JSONAssetlist.addDynamicAssetListEntry
      6. Go to Collections page > Collection previously created > Add filter the tag used when creating the WC
      7. Go to Site Page > Edit > Add an Asset Publisher widget
      8. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      9. Go to Widgets configuration > Setup > "Display Settings" tab > "Display Settings" section > Set 'Number of Items to Display' to 1 > Set 'Pagination Type' to Regular > "Save"
      10. Assert if both Web Contents are displayed

      Test case 5

      Asset Publisher configured with manual content set does not show assets for the personalized views that the user doesn't belongs to when the configuration is enabled 3 - Medium

      Test name: NotCombineContentForMultisegmentManualCollection
      Steps to reproduce:

      1. Create two Web Contents using JSONWebcontent.addWebContent
      2. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      3. Create a new Manual Collection using JSONAssetlist.addManualAssetListEntry
      4. Go to Collections page > Collection previously created > Select the Web Contents previously created
      5. Go to Site Page > Edit > Add an Asset Publisher widget
      6. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      7. Assert if only one Web Content is displayed

      Test case 6

      Asset Publisher configured with dynamic content set does not show assets for the personalized views that the user doesn't belongs to when the configuration is enabled 3 - Medium

      Test name: NotCombineContentForMultisegmentDynamicCollection
      Steps to reproduce:

      1. Create two Web Contents using JSONWebcontent.addWebContent with assetTagNames argument
      2. Create two segments that usre belongs to using JSONSegmentsentry.addSegment
      3. Create a new Dynamic Collection using JSONAssetlist.addDynamicAssetListEntry
      4. Go to Collections page > Collection previously created > Add filter the tag used when creating the WC
      5. Go to Site Page > Edit > Add an Asset Publisher widget
      6. Go to Widgets configuration > Setup > "Asset Selection" tab > "Asset Selection" section > Select "Collection" > "Select Collection" section > Select the Collection created > "Save"
      7. Assert if only one Web Content is displayed

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              luiz.queiroz Luiz Queiroz
              Reporter:
              luiz.queiroz Luiz Queiroz
              Recent user:
              Luiz Queiroz
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Packages

                  Version Package