Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
Running assertLiferayErrors
Running IsElementNotPresent with locator1//span[contains(@class,'sign-in')]/a/span
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//span[contains(@class,'sign-in')]/a/span
Running assertLiferayErrors
Running isElementPresent with parameters//span[contains(@class,'sign-in')]/a/span
Running isNotVisible with parameters//span[contains(@class,'sign-in')]/a/span
Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20099","contactId":"20129","createDate":1637927832176,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1637943858454,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1637943984364,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1637944259166,"mvccVersion":"36","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"7587b973-ea37-f1ec-3c53-354cd6460b28"}Finished executing commands.
Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20099","contactId":"20129","createDate":1637927832176,"ctCollectionId":"0","defaultUser":false,"emailAddress":"test@liferay.com","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1637943858454,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1637943984364,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1637944259386,"mvccVersion":"37","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"7587b973-ea37-f1ec-3c53-354cd6460b28"}Finished executing commands.
Running Open with locator1http://localhost:8080/web/guest?SM_USER=test@liferay.com
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
Running assertLiferayErrors
Running selectWindow with parameters
Running selectFrame with parametersrelative=top
Running open with parametershttp://localhost:8080/web/guest?SM_USER=test@liferay.com
This is a test for LPS-136836. It checks that a guest cannot update comments in a file without permissions.
## * GroupId: 20123
## * GroupId: 20123
Running post with parametersArg: ${curl}Return: {"classNameId":"0","classPK":"0","colorSchemeId":"","companyId":"20099","createDate":1637944267877,"css":"","ctCollectionId":"0","description":"","descriptionCurrentValue":"","friendlyURL":"\/documents-and-media-page","groupId":"20123","hidden":false,"iconImageId":"0","keywords":"","keywordsCurrentValue":"","lastPublishDate":null,"layoutId":"15","layoutPrototypeLinkEnabled":false,"layoutPrototypeUuid":"","masterLayoutPlid":"0","modifiedDate":1637944269081,"mvccVersion":"1","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">Documents and Media Page<\/Name><\/root>","nameCurrentValue":"Documents and Media Page","parentLayoutId":"0","parentPlid":"0","plid":"23","priority":2,"privateLayout":false,"publishDate":1637944267877,"robots":"","robotsCurrentValue":"","sourcePrototypeLayoutUuid":"","status":0,"statusByUserId":"20127","statusByUserName":"Test Test","statusDate":1637944267877,"styleBookEntryId":"0","system":false,"themeId":"","title":"","titleCurrentValue":"","type":"portlet","typeSettings":"column-1=com_liferay_document_library_web_portlet_DLPortlet_INSTANCE_jcLbaX3vMv9O%0Alayout-template-id=2_columns_ii%0A","userId":"20127","userName":"Test Test","uuid":"ab4b81f9-4a7b-818d-a134-7956b5cdf87d"}Finished executing commands.
## Adding a 'File' with the following info using JSONWS:
## * Title: DM Document Title
## * Description: DM Document Description
## * GroupId: 20123
## * File Entry ID: 43004
## Adding a 'Comment' with the following info using JSONWS:
## * commentBody: DM Document Comment
## * fileEntryId: 43004
Log out of Liferay Portal.
Running WaitForSPARefresh
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters
Running assertLiferayErrors
Running Open with locator1http://localhost:8080/web/guest/home
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
Running assertLiferayErrors
Running selectWindow with parameters
Running selectFrame with parametersrelative=top
Running open with parametershttp://localhost:8080/web/guest/home
Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parametershttp://localhost:8080/web/guest/home
Running assertLiferayErrors
Running Pause with locator13000
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters3000
Running assertLiferayErrors
Running pause with parameters3000
Running IsElementNotPresent with locator1//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertLiferayErrors
Running isElementPresent with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running isElementNotPresent with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running AssertClick#assertPartialTextClickAt with locator1//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page'] with value1Documents and Media Page
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Documents and Media Page
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Documents and Media Page
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Documents and Media Page
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]Documents and Media Page
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running assertLiferayErrors
Running waitForVisible with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']Documents and Media Page
Running waitForPartialTextCaseInsensitive with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']Documents and Media Page
Running assertPartialTextCaseInsensitive with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']Documents and Media Page
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running assertLiferayErrors
Running mouseOver with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running clickAt with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul/li/a[normalize-space()='Documents and Media Page']
Running assertLiferayErrors
Running IsElementNotPresent with locator1//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertLiferayErrors
Running isElementPresent with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running isNotVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running AssertVisible with locator1//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertLiferayErrors
Running waitForVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertVisible with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertJavaScriptErrors with parameters//div[contains(@id,'navbar')]/ul//*[contains(@class,'active')][.//*[normalize-space(text())='Documents and Media Page']]
Running assertLiferayErrors
Running AssertClick with locator1//li[contains(@data-title,'DM Document Title')]//a with value1DM Document Title
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]DM Document Title
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]DM Document Title
Running assertJavaScriptErrors with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]DM Document Title
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]DM Document Title
Running assertJavaScriptErrors with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]DM Document Title
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]DM Document Title
Running assertJavaScriptErrors with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertLiferayErrors
Running waitForVisible with parameters//li[contains(@data-title,'DM Document Title')]//aDM Document Title
Running waitForTextCaseInsensitive with parameters//li[contains(@data-title,'DM Document Title')]//aDM Document Title
Running assertTextCaseInsensitive with parameters//li[contains(@data-title,'DM Document Title')]//aDM Document Title
Running assertJavaScriptErrors with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertLiferayErrors
Running mouseOver with parameters//li[contains(@data-title,'DM Document Title')]//a
Running clickAt with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertJavaScriptErrors with parameters//li[contains(@data-title,'DM Document Title')]//a
Running assertLiferayErrors
Running AssertElementNotPresent with locator1//div[contains(@class,'comment')]/div[contains(.,'${key_entryComment}')]/..//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@class,'comment')]/div[contains(.,'${key_entryComment}')]/..//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
Running assertLiferayErrors
Running waitForElementNotPresent with parameters//div[contains(@class,'comment')]/div[contains(.,'${key_entryComment}')]/..//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
Running assertElementNotPresent with parameters//div[contains(@class,'comment')]/div[contains(.,'${key_entryComment}')]/..//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
Running assertJavaScriptErrors with parameters//div[contains(@class,'comment')]/div[contains(.,'${key_entryComment}')]/..//a[span/*[name()='svg'][contains(@class,'icon-ellipsis')]]
Running assertLiferayErrors
LocalFile.DMPermissions#tear-down
Running IsElementNotPresent with locator1//div[contains(@class,'applications-menu-modal')]
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//div[contains(@class,'applications-menu-modal')]
Running assertLiferayErrors
Running isElementPresent with parameters//div[contains(@class,'applications-menu-modal')]
Running isElementNotPresent with parameters//div[contains(@class,'applications-menu-modal')]
Running Click with locator1//button[@data-qa-id='applicationsMenu']
Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]
Running isElementPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running waitForElementNotPresent with parameters//div[contains(@class,'lfr-notification-wrapper') and contains(@style,'height: 82px;')]
Running assertJavaScriptErrors with parameters//button[@data-qa-id='applicationsMenu']
Running assertLiferayErrors
Running waitForVisible with parameters//button[@data-qa-id='applicationsMenu']
Cause:
Element is not present at "//button[@data-qa-id='applicationsMenu']"
Steps:
JSONUser#tearDownNonAdminUsers --> PASSED
Role#tearDownCP --> FAILED
Click on 'TOGGLE' --> FAILED
Before
After
LocalFile.DMPermissions#GuestCannotUpdateComments
8
setUp {
9
TestCase.setUpPortalInstance();
116
var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
117
var testPortalInstance = PropsUtil.get("test.portal.instance");
119
if (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
AssertConfirm(value1 = "Are you sure you want to delete this role? It will be deleted immediately. If it is a reviewer role, its task assignments will be deleted along with it.");