LocalFile.PagesAdmin#set-up
  • Running IsTestName with locator1 with value1
    • 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 isTestName with parameters
  • 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 runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • 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":1637230595372,"ctCollectionId":"0","defaultUser":false,"emailAddress":"[email protected]","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1637251400048,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1637251618079,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1637251810485,"mvccVersion":"70","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"66a43e23-57e6-7a06-920d-5368c8ff3326"}Finished executing commands.
  • Running post with parametersArg: ${curl}Return: {"agreedToTermsOfUse":true,"comments":"","companyId":"20099","contactId":"20129","createDate":1637230595372,"ctCollectionId":"0","defaultUser":false,"emailAddress":"[email protected]","emailAddressVerified":true,"externalReferenceCode":"","facebookId":"0","failedLoginAttempts":0,"firstName":"Test","googleUserId":"","graceLoginCount":0,"greeting":"Welcome Test Test!","jobTitle":"","languageId":"en_US","lastFailedLoginDate":null,"lastLoginDate":1637251400048,"lastLoginIP":"127.0.0.1","lastName":"Test","ldapServerId":"-1","lockout":false,"lockoutDate":null,"loginDate":1637251618079,"loginIP":"127.0.0.1","middleName":"","modifiedDate":1637251810756,"mvccVersion":"71","openId":"","portraitId":"0","reminderQueryAnswer":"test","reminderQueryQuestion":"what-is-your-father's-middle-name","screenName":"test","status":0,"timeZoneId":"UTC","userId":"20127","uuid":"66a43e23-57e6-7a06-920d-5368c8ff3326"}Finished executing commands.
  • Running Open with locator1http://localhost:8080/web/[email protected]
    • 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/[email protected]
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/web/[email protected]
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/web/[email protected]
    • 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/[email protected]
    • Running assertLiferayErrors
  • Running IsElementPresent with locator1//h1[contains(.,'Your connection is not private')]
    • 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//h1[contains(.,'Your connection is not private')]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//h1[contains(.,'Your connection is not private')]
  • Running IsElementPresent#pauseIsElementPresent with locator1//div[label[contains(.,'Password')]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
    • 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[label[contains(.,'Password')]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
    • Running assertLiferayErrors
    • Running pause with parameters1000
    • Running isElementPresent with parameters//div[label[contains(.,'Password')]]/input | //div[label[contains(.,"parola d'ordine")]]/input | //div[label[contains(.,'Contraseña')]]/input | //div[label[contains(.,'パスワード')]]/input | //div[label[contains(.,'密码')]]/input | //div[contains(.,'Kennwort')]//input[@type='password']
  • 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 IsElementPresent#pauseIsElementPresent with locator1//input[contains(@id,'reminderQueryAnswer')]
    • 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//input[contains(@id,'reminderQueryAnswer')]
    • Running assertLiferayErrors
    • Running pause with parameters1000
    • Running isElementPresent with parameters//input[contains(@id,'reminderQueryAnswer')]
  • Running IsElementNotPresent with locator1//span[@class='user-avatar-link']
    • 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[@class='user-avatar-link']
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//span[@class='user-avatar-link']
    • Running isNotVisible with parameters//span[@class='user-avatar-link']
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running post with parametersArg: ${curl}Return: {"active":true,"classNameId":"20003","classPK":"42211","companyId":"20099","creatorUserId":"20127","ctCollectionId":"0","description":"","descriptionCurrentValue":"","descriptiveName":"Test Site Name","friendlyURL":"\/test-site-name","groupId":"42211","groupKey":"Test Site Name","inheritContent":false,"liveGroupId":"0","manualMembership":true,"membershipRestriction":0,"mvccVersion":"0","name":"<?xml version='1.0' encoding='UTF-8'?><root available-locales=\"en_US\" default-locale=\"en_US\"><Name language-id=\"en_US\">Test Site Name<\/Name><\/root>","nameCurrentValue":"Test Site Name","parentGroupId":"0","remoteStagingGroupCount":0,"site":true,"treePath":"\/42211\/","type":1,"uuid":"d664939e-6619-b3d0-1f8c-43a9056a1209"}Finished executing commands.
  • LocalFile.PagesAdmin#AddCollectionItemsInCollectionPageBasedOnManualCollection
  • This is a use case for LPS-107776. Only can add specific type collection items in a collection page based on manual collection with single item type.
  • ## * GroupId: 42211
  • ## * GroupId: 20125
  • Running add with parametersArg: ${list}Arg: com.liferay.blogs.model.BlogsEntryReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.bookmarks.model.BookmarksEntryReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.bookmarks.model.BookmarksFolderReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.calendar.model.CalendarBookingReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.commerce.model.CommerceOrderReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.document.library.kernel.model.DLFileEntryReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.document.library.kernel.model.DLFolderReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.dynamic.data.lists.model.DDLRecordReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.knowledge.base.model.KBArticleReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.message.boards.model.MBMessageReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.translation.model.TranslationEntryReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.journal.model.JournalArticleReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.journal.model.JournalFolderReturn:
  • Running add with parametersArg: ${list}Arg: com.liferay.wiki.model.WikiPageReturn:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running add with parametersArg: ${list}Arg: ${classNameId}Return:
  • Running post with parametersArg: ${curl}Return: {}Finished executing commands.
  • Running Open with locator1http://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet
    • 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/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet
    • Running assertLiferayErrors
    • Running selectWindow with parameters
    • Running selectFrame with parametersrelative=top
    • Running open with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
    • Running assertJavaScriptErrors with parametershttp://localhost:8080/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet
    • 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/group/test-site-name/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet
    • Running assertLiferayErrors
  • Running IsTextNotEqual with locator1//*[@data-qa-id='headerTitle'] with value1Pages
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Pages
    • 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;')]Pages
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='headerTitle']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Pages
    • 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;')]Pages
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='headerTitle']
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[@data-qa-id='headerTitle']Pages
    • Running isNotText with parameters//*[@data-qa-id='headerTitle']Pages
  • Running WaitForPageLoad
    • Running waitForJavaScriptNoError with parameters return document.readyState === "complete"; Page is still loading.
    • Running verifyJavaScript with parameters return document.readyState === "complete"; Page is still loading.
  • Running Click with locator1//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • 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//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • Running mouseOver with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • Running click with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • Running assertJavaScriptErrors with parameters//a[contains(@class,'btn')][contains(@href,'new') or contains(@href,'redirect') or contains(@href,'mvc') or contains(@href,'javascript')][.//*[name()='svg'][contains(@class,'icon-plus')]][not(contains(@class,'borderless'))] | //button[*[contains(@class,'icon-plus')]]
    • Running assertLiferayErrors
  • Running Click with locator1xpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection 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 parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection Page"]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection Page"]
    • Running mouseOver with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection Page"]
    • Running click with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection Page"]
    • Running assertJavaScriptErrors with parametersxpath=(//div | //li)[contains(@class,'open') or contains(@class,'show')]//*[normalize-space(text())="Public Collection Page"] | //ul[contains(@class,'dropdown-menu') and contains(@class,'show')]//li//*[normalize-space(text())="Public Collection Page"]
    • Running assertLiferayErrors
  • Running IsElementNotPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • 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//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running isElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running isNotVisible with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
  • Running AssertElementPresent with locator1//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • 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//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertElementPresent with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'nav-link') and contains(@class,'active') and normalize-space()='Collections'][not(contains(@id,'ProductMenu') or contains(@href,'site_administration'))]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Click#mouseDownMouseUp with locator1//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • 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//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running waitForVisible with parameters//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running mouseDown with parameters//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running mouseUp with parameters//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'card-body')][contains(.,'Manual Collection')]
    • Running assertLiferayErrors
  • Running WaitForLiferayEvent#initializeLiferayEventLog
    • Running runScript with parameters if (typeof Liferay != "undefined") { const TRACKED_EVENTS = [ 'addPortlet', 'allPortletsReady', 'allUploadsComplete', 'beforeNavigate', 'beforeScreenFlip', 'closePortlet', 'dataLayoutConfigReady', 'destroyPortlet', 'editorAPIReady', 'endNavigate', 'form:registered', 'formNavigator:reveal', 'dropdownShow', 'entitySelectionRemoved', 'exitNavigation', 'hideNavigationMenu', 'initLayout', 'inputLocalized:localeChanged', 'modalIframeLoaded', 'noticeShow', 'noticeHide', 'popupReady', 'portletDragStart', 'portletMoved', 'portletReady', 'ratings:vote', 'screenActivate', 'screenDeactivate', 'screenFlip', 'screenLoad', 'search-container:registered', 'sessionExpired', 'showNavigationMenu', 'spaRequestTimeout', 'startNavigate', 'submitForm', 'tempFileRemoved', 'toggleControls', 'updatedLayout', ]; let __LFR_TRACKED_EVENTS__ = {}; Liferay.on(TRACKED_EVENTS, function(event){ { const eventLog = __LFR_TRACKED_EVENTS__[event.type] ? __LFR_TRACKED_EVENTS__[event.type].concat(event) : [event]; __LFR_TRACKED_EVENTS__[event.type] = eventLog }; }); function getLastEvent(eventName) { return __LFR_TRACKED_EVENTS__[eventName] ? __LFR_TRACKED_EVENTS__[eventName][ __LFR_TRACKED_EVENTS__[eventName].length - 1 ] : {}; }; function getLastEventDetails(eventName){ return getLastEvent(eventName).details[0]; }; window.LFR_JS_EVENTS_LOG = { getLastEvent:getLastEvent, getLastEventDetails:getLastEventDetails, }; }
  • Running Click#mouseDownMouseUp with locator1//*[contains(@class,'card-body')][contains(.,'Blank')]
    • 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//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running waitForVisible with parameters//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running mouseDown with parameters//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running mouseUp with parameters//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running assertJavaScriptErrors with parameters//*[contains(@class,'card-body')][contains(.,'Blank')]
    • Running assertLiferayErrors
  • Running SelectFrame with locator1//div[contains(@class,'modal-body')]/iframe
    • Running waitForJavaScriptNoError with parameters try { var eventValue = LFR_JS_EVENTS_LOG.getLastEvent("modalIframeLoaded").src; return eventValue.includes("dialog-iframe-popup"); } catch(err) { return false; } Event "modalIframeLoaded" with attribute "src" and value "dialog-iframe-popup" not fired.
    • Running verifyJavaScript with parameters try { var eventValue = LFR_JS_EVENTS_LOG.getLastEvent("modalIframeLoaded").src; return eventValue.includes("dialog-iframe-popup"); } catch(err) { return false; } Event "modalIframeLoaded" with attribute "src" and value "dialog-iframe-popup" not fired.
    • Running waitForVisible with parameters//div[contains(@class,'modal-body')]/iframe
    • Running mouseOver with parameters//div[contains(@class,'modal-body')]/iframe
    • Running selectFrame with parameters//div[contains(@class,'modal-body')]/iframe
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'modal-body')]/iframe
    • 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 parameters//div[contains(@class,'modal-body')]/iframe
    • Running assertLiferayErrors
  • Running Type with locator1//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')] with value1Test Collection Page Name
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Test Collection Page Name
    • 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;')]Test Collection Page Name
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]Test Collection Page Name
    • Running waitForEditable with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running mouseOver with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running pause with parameters1000
    • Running type with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]Test Collection Page Name
    • Running pause with parameters1000
    • Running clickAt with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//div[label[contains(.,'Name')]]//input[@type='text'] | //div[contains(@class,'form-group')]//input[contains(@id,'name')]
    • Running assertLiferayErrors
  • Running Click#mouseDownMouseUp with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • 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//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running waitForVisible with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running mouseDown with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running mouseUp with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Add'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
  • Running SelectFrame#selectFrameTop
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • 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 parameters
    • Running assertLiferayErrors
  • Running WaitForPageLoad
    • Running waitForJavaScriptNoError with parameters return document.readyState === "complete"; Page is still loading.
    • Running verifyJavaScript with parameters return document.readyState === "complete"; Page is still loading.
  • Running AssertVisible with locator1//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • 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,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertVisible with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'sidebar')]/div[contains(@class,'buttons')]/button
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//*[@data-qa-id='headerTitle'] with value1Test Collection Page Name *
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Test Collection Page Name *
    • 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;')]Test Collection Page Name *
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='headerTitle']
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Test Collection Page Name *
    • 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;')]Test Collection Page Name *
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='headerTitle']
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='headerTitle']Test Collection Page Name *
    • Running waitForTextCaseInsensitive with parameters//*[@data-qa-id='headerTitle']Test Collection Page Name *
    • Running assertTextCaseInsensitive with parameters//*[@data-qa-id='headerTitle']Test Collection Page Name *
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='headerTitle']
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//li[contains(@class,'topper__title') and contains(.,'Heading')])[1]
    • 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 parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Heading')])[1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Heading')])[1]
    • Running assertElementPresent with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Heading')])[1]
    • Running assertJavaScriptErrors with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Heading')])[1]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1xpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')] with value1Manual Collection
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Manual Collection
    • 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;')]Manual Collection
    • Running assertJavaScriptErrors with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Manual Collection
    • 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;')]Manual Collection
    • Running assertJavaScriptErrors with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]
    • Running assertLiferayErrors
    • Running waitForVisible with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]Manual Collection
    • Running waitForTextCaseInsensitive with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]Manual Collection
    • Running assertTextCaseInsensitive with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]Manual Collection
    • Running assertJavaScriptErrors with parametersxpath=(//div[contains(@id,'fragment-')][.//*[contains(@class,'heading')]])[1]//*[contains(@data-lfr-editable-id,'element-text')]
    • Running assertLiferayErrors
  • Running AssertElementPresent with locator1xpath=(//li[contains(@class,'topper__title') and contains(.,'Collection Display')])[1]
    • 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 parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Collection Display')])[1]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Collection Display')])[1]
    • Running assertElementPresent with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Collection Display')])[1]
    • Running assertJavaScriptErrors with parametersxpath=(//li[contains(@class,'topper__title') and contains(.,'Collection Display')])[1]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Sample Collection Item')]
    • 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,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Sample Collection Item')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Sample Collection Item')]
    • Running assertVisible with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Sample Collection Item')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Sample Collection Item')]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')] with value1(0 Items)
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')](0 Items)
    • 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;')](0 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')](0 Items)
    • 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;')](0 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](0 Items)
    • Running waitForTextCaseInsensitive with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](0 Items)
    • Running assertTextCaseInsensitive with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](0 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
  • Running Click with locator1//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • 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//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • Running mouseOver with parameters//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • Running click with parameters//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//a[@*='New Basic Web Content']//*[name()='svg'][contains(@class,'lexicon-icon-plus')]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'contextual-sidebar-visible')]
    • 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,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertVisible with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'contextual-sidebar-visible')]
    • Running assertLiferayErrors
  • Running Type with locator1//input[contains(@id,'title')] with value1Web Content Title
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Web Content 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;')]Web Content Title
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//input[contains(@id,'title')]Web Content Title
    • Running waitForEditable with parameters//input[contains(@id,'title')]
    • Running mouseOver with parameters//input[contains(@id,'title')]
    • Running clickAt with parameters//input[contains(@id,'title')]
    • Running pause with parameters1000
    • Running type with parameters//input[contains(@id,'title')]Web Content Title
    • Running pause with parameters1000
    • Running clickAt with parameters//input[contains(@id,'title')]
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//input[contains(@id,'title')]
    • Running assertLiferayErrors
  • Running SelectFrame#selectFrameNoLoading with locator1//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • Running waitForVisible with parameters//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • Running mouseOver with parameters//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • Running selectFrame with parameters//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • Running assertJavaScriptErrors with parameters//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • 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 parameters//label[contains(.,'content')]//following-sibling::div//div[contains(@id,'cke')]/iframe
    • Running assertLiferayErrors
  • Running Type with locator1//body[contains(@class,'cke_editable')] with value1Web Content Content
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]Web Content Content
    • 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;')]Web Content Content
    • Running assertJavaScriptErrors with parameters//body[contains(@class,'cke_editable')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//body[contains(@class,'cke_editable')]Web Content Content
    • Running waitForEditable with parameters//body[contains(@class,'cke_editable')]
    • Running mouseOver with parameters//body[contains(@class,'cke_editable')]
    • Running clickAt with parameters//body[contains(@class,'cke_editable')]
    • Running pause with parameters1000
    • Running type with parameters//body[contains(@class,'cke_editable')]Web Content Content
    • Running pause with parameters1000
    • Running clickAt with parameters//body[contains(@class,'cke_editable')]
    • Running pause with parameters1000
    • Running assertJavaScriptErrors with parameters//body[contains(@class,'cke_editable')]
    • Running assertLiferayErrors
  • Running SelectFrame with value1relative=top
    • Running selectFrame with parametersrelative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]relative=top
    • 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;')]relative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')]relative=top
    • 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;')]relative=top
    • Running assertJavaScriptErrors with parameters
    • Running assertLiferayErrors
  • Running ScrollWebElementIntoView with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • 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//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running scrollWebElementIntoView with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
  • Running Click#mouseDownMouseUp with locator1//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • 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//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running waitForVisible with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running mouseDown with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running mouseUp with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertJavaScriptErrors with parameters//*[not(self::div)][contains(@class,'btn')][normalize-space()='Publish'][not(contains(@class,'navbar'))]
    • Running assertLiferayErrors
  • Running VerifyElementPresent with locator1//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • 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,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
    • Running waitForElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]false
    • Running verifyElementPresent with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'alert-success')][contains(@class,'alert-dismissible')] | //div[contains(@class,'alert-success')][contains(@class,'alert-dismissable')]
    • Running assertLiferayErrors
  • Running AssertVisible with locator1//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Web Content Title')]
    • 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,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Web Content Title')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Web Content Title')]
    • Running assertVisible with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Web Content Title')]
    • Running assertJavaScriptErrors with parameters//div[contains(@class,'page-editor__topper') and contains(.,'Collection Display')]//div[contains(@class,'page-editor__collection')]/div[@class='row'][1]/div[contains(@class,'col')][1]//*[contains(@class,'item__title') and contains(.,'Web Content Title')]
    • Running assertLiferayErrors
  • Running AssertTextEquals with locator1//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')] with value1(1 Items)
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')](1 Items)
    • 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;')](1 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
    • Running waitForElementNotPresent with parameters//html[contains(@class,'lfr-spa-loading')](1 Items)
    • 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;')](1 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
    • Running waitForVisible with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](1 Items)
    • Running waitForTextCaseInsensitive with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](1 Items)
    • Running assertTextCaseInsensitive with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')](1 Items)
    • Running assertJavaScriptErrors with parameters//*[@data-qa-id='controlMenu']//button[contains(@id,'viewCollectionItems')]
    • Running assertLiferayErrors
  • LocalFile.PagesAdmin#tear-down
  • ## * GroupId: 42211
  • Running post with parametersArg: ${curl}Return: {}Finished executing commands.
  • LocalFile.PagesAdmin#AddCollectionItemsInCollectionPageBasedOnManualCollection

    • 8
      setUp {
      • 9
        task ("Set up instance and sign in") {
        • 10
          TestCase.setUpPortalInstance();
          • 109
            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
          • 110
            var testPortalInstance = PropsUtil.get("test.portal.instance");
          • 112
            if (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}"))) {
            • 113
              HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = "${authenticationMethod}");
              • 108
                var portalInstanceJSON = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = "${authenticationMethod}");
                • 5
                  var portalURL = JSONCompany.getDefaultPortalURL();
                  • 41
                    var portalURL = PropsUtil.get("default.portal.url");
                  • 43
                    if (!(contains("${portalURL}", "http"))) {
                    • 44
                      var portalURL = "http://${portalURL}";
                    }
                  • 47
                    return "${portalURL}";
                • 7
                  if ("${authenticationMethod}" == "By Screen Name") {
                  • 8
                    var userName = "test";
                  }
                • 10
                  else {
                  • 11
                    var userName = "[email protected]";
                  }
                • 14
                  var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -H Content-Type: application/json ''';
                • 20
                  var JSON = JSONCurlUtil.get("${curl}");
                • 22
                  return "${JSON}";
              • 110
                var portalInstanceIds = JSONUtil.getWithJSONPath("${portalInstanceJSON}","$.items..portalInstanceId");
              • 112
                for (var portalInstanceId : list "${portalInstanceIds}") {
                • 113
                  if ("${portalInstanceId}" != "liferay.com") {
                  • 114
                    HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = "${authenticationMethod}", portalInstanceId = "${portalInstanceId}");
                    • 123
                      Variables.assertDefined(parameterList = "${portalInstanceId}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 125
                      var portalURL = JSONCompany.getDefaultPortalURL();
                      • 41
                        var portalURL = PropsUtil.get("default.portal.url");
                      • 43
                        if (!(contains("${portalURL}", "http"))) {
                        • 44
                          var portalURL = "http://${portalURL}";
                        }
                      • 47
                        return "${portalURL}";
                    • 127
                      var portalInstanceId = StringUtil.replace("${portalInstanceId}", " ", "%20");
                    • 129
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 130
                        var userName = "test";
                      }
                    • 132
                      else {
                      • 133
                        var userName = "[email protected]";
                      }
                    • 136
                      var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                    • 142
                      JSONCurlUtil.delete("${curl}");
                  }
                }
            • 115
              if ("${testPortalInstance}" == "true") {
              • 116
                SignIn.signInPortalInstanceSetUp();
                • 3
                  var userEmailAddress = "[email protected]";
                • 4
                  var userPassword = "test";
                • 5
                  var userPasswordReminderAnswer = "test";
                • 48
                  var portalURL = PropsUtil.get("portal.url");
                • 49
                  var portalURL = StringUtil.replace("${portalURL}", "http://", "");
                • 50
                  var portalURL = StringUtil.replace("${portalURL}", ":8080", "");
                • 52
                  HeadlessPortalInstanceAPI.addPortalInstance( authenticationMethod = "${authenticationMethod}", domain = "liferay.com", portalInstanceId = "${portalURL}", virtualHost = "${portalURL}");
                  • 27
                    Variables.assertDefined(parameterList = "${domain},${virtualHost},${portalInstanceId}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 29
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 41
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 43
                      if (!(contains("${portalURL}", "http"))) {
                      • 44
                        var portalURL = "http://${portalURL}";
                      }
                    • 47
                      return "${portalURL}";
                  • 31
                    var parameters = JSONUtil2._addJSONObject( JSON = "{}", key = "domain", value = ""${domain}"");
                    • 67
                      if ((!(isSet(JSON))) || (!(isSet(key))) || (!(isSet(value)))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( JSON = "${JSON}", key = "${key}");
                      • 132
                        var temp = RegexUtil.replace("${JSON}","\"(${key})\"\s*:\s*","1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          return "FALSE";
                        }
                    • 75
                      if ("${bool}" == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if ("${JSON}" == "{}") {
                      • 80
                        var JSON = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var JSON = StringUtil.regexReplaceFirst("${JSON}","(.*)\}","$1, "${key}": ${value}}");
                      }
                    • 86
                      return "${JSON}";
                  • 36
                    var parameters = JSONUtil2._addJSONObject( JSON = "${parameters}", key = "virtualHost", value = ""${virtualHost}"");
                    • 67
                      if ((!(isSet(JSON))) || (!(isSet(key))) || (!(isSet(value)))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( JSON = "${JSON}", key = "${key}");
                      • 132
                        var temp = RegexUtil.replace("${JSON}","\"(${key})\"\s*:\s*","1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          return "FALSE";
                        }
                    • 75
                      if ("${bool}" == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if ("${JSON}" == "{}") {
                      • 80
                        var JSON = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var JSON = StringUtil.regexReplaceFirst("${JSON}","(.*)\}","$1, "${key}": ${value}}");
                      }
                    • 86
                      return "${JSON}";
                  • 41
                    var parameters = JSONUtil2._addJSONObject( JSON = "${parameters}", key = "portalInstanceId", value = ""${portalInstanceId}"");
                    • 67
                      if ((!(isSet(JSON))) || (!(isSet(key))) || (!(isSet(value)))) {
                      • 68
                        fail("Error, 'JSON', 'key', and 'value' must all be set");
                      }
                    • 71
                      var bool = JSONUtil2._isJSONObjectPresent( JSON = "${JSON}", key = "${key}");
                      • 132
                        var temp = RegexUtil.replace("${JSON}","\"(${key})\"\s*:\s*","1");
                      • 134
                        if ("${temp}" == "${key}") {
                        • 135
                          return "TRUE";
                        }
                      • 137
                        else {
                        • 138
                          return "FALSE";
                        }
                    • 75
                      if ("${bool}" == "TRUE") {
                      • 76
                        fail("Error, '${key}' already exists in the JSON");
                      }
                    • 79
                      if ("${JSON}" == "{}") {
                      • 80
                        var JSON = '''{"${key}" : ${value}}''';
                      }
                    • 82
                      else {
                      • 83
                        var JSON = StringUtil.regexReplaceFirst("${JSON}","(.*)\}","$1, "${key}": ${value}}");
                      }
                    • 86
                      return "${JSON}";
                  • 46
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 47
                      var userName = "test";
                    }
                  • 49
                    else {
                    • 50
                      var userName = "[email protected]";
                    }
                  • 53
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -d ${parameters} \ -H Content-Type: application/json ''';
                  • 60
                    JSONCurlUtil.post("${curl}");
              }
            }
        • 12
          User.firstLoginPG();
          • 3
            var password = "test";
          • 4
            var userEmailAddress = "[email protected]";
          • 1933
            if (isSet(virtualHostsURL)) {
            • 1934
              Navigator.openSpecificURL(url = "${virtualHostsURL}");
              • 295
                Open(locator1 = "${url}");
              • 297
                Alert.confirmSecurity();
                • 16
                  if (IsElementPresent(key_title="Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 17
                    Click(locator1 = "Button#ADVANCED");
                  • 19
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 23
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
            }
          • 1936
            else {
            • 1937
              Navigator.openURL();
              • 353
                WaitForSPARefresh();
              • 355
                var baseURL = "${baseURL}";
              • 357
                if (contains("${baseURL}", "{baseURL}")) {
                • 358
                  var baseURL = PropsUtil.get("portal.url");
                }
              • 361
                Open(locator1 = "${baseURL}/web/guest/home");
            }
          • 1940
            UserBar.signOut();
            • 34
              if (IsElementNotPresent(locator1 = "UserBar#USER_SIGN_IN")) {
              • 35
                UserBar.gotoDropdown();
                • 4
                  if (IsElementPresent(locator1 = "UserBar#USER_AVATAR_PORTRAIT")) {
                  • 5
                    Click.waitForPersonalMenuJSClick(locator1 = "UserBar#USER_AVATAR_PORTRAIT");
                  }
                • 7
                  else if (IsElementPresent(locator1 = "UserBar#USER_AVATAR_TOGGLE")) {
                  • 8
                    Click.waitForMenuToggleJSClick(locator1 = "UserBar#USER_AVATAR_TOGGLE");
                  }
                • 10
                  else {
                  • 11
                    Click.waitForPersonalMenuJSClick(locator1 = "UserBar#USER_AVATAR_ICON");
                  }
                • 14
                  AssertVisible(locator1 = "UserBar#USER_AVATAR_DROPDOWN_PORTAL_OPEN");
              • 37
                ScrollWebElementIntoView(locator1 = "UserBar#USER_AVATAR_DROPDOWN_SIGNOUT");
              • 39
                Click(locator1 = "UserBar#USER_AVATAR_DROPDOWN_SIGNOUT");
              }
          • 1942
            JSONUser.agreeToTermsAndAnswerReminderQuery( portalURL = "${virtualHostsURL}", userEmailAddress = "${userEmailAddress}");
            • 172
              Variables.assertDefined(parameterList = "${userEmailAddress}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 174
              var portalInstanceName = JSONUserSetter.setPortalInstanceName(portalURL = "${portalURL}");
              • 35
                if (isSet(portalURL)) {
                • 36
                  var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                  • 73
                    Variables.assertDefined(parameterList = "${portalURL}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 75
                    var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                  • 76
                    var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                  • 78
                    return "${portalInstanceName}";
                }
              • 39
                return "${portalInstanceName}";
            • 176
              var userId = JSONUserSetter.setUserId( portalInstanceName = "${portalInstanceName}", userEmailAddress = "${userEmailAddress}");
              • 90
                Variables.assertDefined(parameterList = "${userEmailAddress}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 92
                var userId = JSONUserAPI._getUserIdByEmailAddress( creatorEmailAddress = "${creatorEmailAddress}", creatorPassword = "${creatorPassword}", portalInstanceName = "${portalInstanceName}", userEmailAddress = "${userEmailAddress}");
                • 209
                  Variables.assertDefined(parameterList = "${userEmailAddress}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 211
                  var companyId = JSONCompany.getCompanyId( creatorEmailAddress = "${creatorEmailAddress}", creatorPassword = "${creatorPassword}", portalInstanceName = "${portalInstanceName}");
                  • 4
                    if (!(isSet(portalInstanceName))) {
                    • 5
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 51
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 52
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 54
                        if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                        • 55
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        • 57
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                          • 73
                            Variables.assertDefined(parameterList = "${portalURL}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 75
                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                          • 76
                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                          • 78
                            return "${portalInstanceName}";
                        • 59
                          return "${portalInstanceName}";
                        }
                      • 61
                        else {
                        • 62
                          return "localhost";
                        }
                    }
                  • 8
                    if (!(isSet(portalURL))) {
                    • 9
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    }
                  • 12
                    if (!(isSet(creatorEmailAddress))) {
                    • 13
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 14
                        if (!(isSet(userScreenName))) {
                        • 15
                          var creatorEmailAddress = "test";
                        }
                      • 17
                        else {
                        • 18
                          var creatorEmailAddress = "${userScreenName}";
                        }
                      }
                    • 21
                      else {
                      • 22
                        var creatorEmailAddress = "[email protected]";
                      }
                    }
                  • 26
                    if (!(isSet(creatorPassword))) {
                    • 27
                      var creatorPassword = "test";
                    }
                  • 30
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 35
                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                  • 37
                    return "${companyId}";
                • 216
                  if (isSet(specificURL)) {
                  • 217
                    var portalURL = "${specificURL}";
                  }
                • 219
                  else {
                  • 220
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  }
                • 223
                  if (!(isSet(creatorEmailAddress))) {
                  • 224
                    var creatorEmailAddress = "[email protected]";
                  }
                • 227
                  if (!(isSet(creatorPassword))) {
                  • 228
                    var creatorPassword = "test";
                  }
                • 231
                  var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-email-address/company-id/${companyId}/email-address/${userEmailAddress} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 236
                  var userId = JSONCurlUtil.get("${curl}", "$['userId']");
                • 238
                  return "${userId}";
              • 98
                return "${userId}";
            • 180
              JSONUserAPI._agreeToTermsAndAnswerReminderQuery(userId = "${userId}");
              • 89
                Variables.assertDefined(parameterList = "${userId}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 91
                if (isSet(specificURL)) {
                • 92
                  var portalURL = "${specificURL}";
                }
              • 94
                else {
                • 95
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                }
              • 98
                var curl = ''' ${portalURL}/api/jsonws/user/update-agreed-to-terms-of-use/user-id/${userId}/agreed-to-terms-of-use/true \ -u [email protected]:test ''';
              • 103
                com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
              • 105
                var curl = ''' ${portalURL}/api/jsonws/user/update-reminder-query/user-id/${userId}/question/what-is-your-father%27s-middle-name/answer/test \ -u [email protected]:test ''';
              • 110
                com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
          • 1946
            if (isSet(virtualHostsURL)) {
            • 1947
              Navigator.openSpecificURL(url = "${virtualHostsURL}/web/guest?SM_USER=${userEmailAddress}");
              • 295
                Open(locator1 = "${url}");
              • 297
                Alert.confirmSecurity();
                • 16
                  if (IsElementPresent(key_title="Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 17
                    Click(locator1 = "Button#ADVANCED");
                  • 19
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 23
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
            }
          • 1949
            else {
            • 1950
              var baseURL = PropsUtil.get("portal.url");
            • 1952
              Navigator.openSpecificURL(url = "${baseURL}/web/guest?SM_USER=${userEmailAddress}");
              • 295
                Open(locator1 = "${url}");
              • 297
                Alert.confirmSecurity();
                • 16
                  if (IsElementPresent(key_title="Your connection is not private", locator1 = "Header#H1_TITLE")) {
                  • 17
                    Click(locator1 = "Button#ADVANCED");
                  • 19
                    AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                  • 23
                    Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                  }
            }
          • 1957
            User.resetPassword( resetPassword = "${resetPassword}", setupWizardEnabled = "${setupWizardEnabled}", syntaxCheckingEnabled = "${syntaxCheckingEnabled}");
            • 3
              var password = "test";
            • 4
              var userEmailAddress = "[email protected]";
            • 2470
              if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#PASSWORD")) {
              • 2471
                if ("${syntaxCheckingEnabled}" == "true") {
                • 2472
                  Type( locator1 = "TextInput#PASSWORD_1", value1 = "${resetPassword}");
                • 2476
                  Type( locator1 = "TextInput#PASSWORD_2", value1 = "${resetPassword}");
                }
              • 2480
                else {
                • 2481
                  if ("${setupWizardEnabled}" == "true") {
                  • 2482
                    Type( locator1 = "TextInput#PASSWORD_1", value1 = "test2");
                  • 2486
                    Type( locator1 = "TextInput#PASSWORD_2", value1 = "test2");
                  }
                • 2490
                  else {
                  • 2491
                    Type( locator1 = "TextInput#PASSWORD_1", value1 = "test");
                  • 2495
                    Type( locator1 = "TextInput#PASSWORD_2", value1 = "test");
                  }
                }
              • 2501
                Button.clickSubmitButton();
                • 118
                  Click(locator1 = "Button#SUBMIT");
              • 2503
                AssertElementNotPresent(locator1 = "TextInput#ENTER_AGAIN");
              }
          • 1962
            User.answerPasswordReminder();
            • 3
              var password = "test";
            • 4
              var userEmailAddress = "[email protected]";
            • 747
              Pause(locator1 = "3000");
            • 749
              if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#REMINDER_QUERY")) {
              • 750
                Type( locator1 = "TextInput#REMINDER_QUERY", value1 = "test");
              • 754
                Click(locator1 = "Button#SUBMIT");
              }
          • 1964
            if (IsElementNotPresent(locator1 = "UserBar#USER_AVATAR_IMAGE")) {
            • 1965
              takeScreenshot();
            • 1967
              echo("URL login failed, falling back to UI login.");
            • 1969
              User.firstLoginUI( idpName = "${idpName}", password = "${password}", rememberMeChecked = "${rememberMeChecked}", specificURL = "${virtualHostsURL}", userEmailAddress = "${userEmailAddress}", userScreenName = "${userScreenName}");
              • 3
                var password = "test";
              • 4
                var userEmailAddress = "[email protected]";
              • 1984
                if (isSet(specificURL)) {
                • 1985
                  Navigator.openSpecificURL(url = "${specificURL}");
                  • 295
                    Open(locator1 = "${url}");
                  • 297
                    Alert.confirmSecurity();
                    • 16
                      if (IsElementPresent(key_title="Your connection is not private", locator1 = "Header#H1_TITLE")) {
                      • 17
                        Click(locator1 = "Button#ADVANCED");
                      • 19
                        AssertElementPresent( key_text = "Proceed to localhost", locator1 = "Link#ANY");
                      • 23
                        Click( key_text = "Proceed to localhost (unsafe)", locator1 = "Link#ANY");
                      }
                }
              • 1987
                else {
                • 1988
                  Navigator.openURL();
                  • 353
                    WaitForSPARefresh();
                  • 355
                    var baseURL = "${baseURL}";
                  • 357
                    if (contains("${baseURL}", "{baseURL}")) {
                    • 358
                      var baseURL = PropsUtil.get("portal.url");
                    }
                  • 361
                    Open(locator1 = "${baseURL}/web/guest/home");
                }
              • 1991
                User._clickSignInLink( idpName = "${idpName}", localization = "${localization}", samlMultiIdPs = "${samlMultiIdPs}");
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "[email protected]";
                • 13
                  var localizedSignIn = User._getSignInText(localization = "${localization}");
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "[email protected]";
                  • 42
                    if ("${localization}" == "JA") {
                    • 43
                      var localizedSignIn = "ログイン";
                    }
                  • 45
                    else if ("${localization}" == "ZH") {
                    • 46
                      var localizedSignIn = "登录";
                    }
                  • 48
                    else if ("${localization}" == "IT") {
                    • 49
                      var localizedSignIn = "Accedi";
                    }
                  • 51
                    else if ("${localization}" == "ES") {
                    • 52
                      var localizedSignIn = "Acceder";
                    }
                  • 54
                    else {
                    • 55
                      var localizedSignIn = "Sign In";
                    }
                  • 58
                    return "${localizedSignIn}";
                • 15
                  if (IsElementNotPresent(locator1 = "TextInput#EMAIL_ADDRESS")) {
                  • 16
                    if (isSet(localization)) {
                    • 17
                      AssertClick( locator1 = "UserBar#USER_SIGN_IN", value1 = "${localizedSignIn}");
                    }
                  • 21
                    else if (IsElementPresent(locator1 = "UserBar#USER_SIGN_IN")) {
                    • 22
                      AssertClick( locator1 = "UserBar#USER_SIGN_IN", value1 = "Sign In");
                    • 26
                      if ("${samlMultiIdPs}" == "true") {
                      • 27
                        Select( key_fieldLabel = "Identity Provider", locator1 = "Select#GENERIC_SELECT_FIELD", value1 = "${idpName}");
                      • 32
                        Button.click(button = "Sign In");
                        • 4
                          Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                      }
                    }
                  • 35
                    else if (IsElementPresent(key_text = "Sign In", locator1 = "Button#ANY")) {
                    • 36
                      Button.click(button = "Sign In");
                      • 4
                        Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                    }
                  }
              • 1996
                if ("${authenticationMethod}" == "By Screen Name") {
                • 1997
                  Type( locator1 = "TextInput#SCREEN_NAME", value1 = "${userScreenName}");
                }
              • 2001
                else if ("${authenticationMethod}" == "By User ID") {
                • 2002
                  Type.typePause( key_text = "ID", locator1 = "TextInput#ANY", value1 = "${userID}");
                }
              • 2007
                else {
                • 2008
                  Type.typePause( locator1 = "TextInput#EMAIL_ADDRESS", value1 = "${userEmailAddress}");
                }
              • 2013
                Type.typePause( locator1 = "TextInput#PASSWORD", value1 = "${password}");
              • 2017
                if ((isSet(rememberMeChecked)) && ("${rememberMeChecked}" == "true")) {
                • 2018
                  Check(locator1 = "Checkbox#REMEMBER_ME");
                }
              • 2021
                User._clickSignInButton(localization = "${localization}");
                • 3
                  var password = "test";
                • 4
                  var userEmailAddress = "[email protected]";
                • 7
                  var localizedSignIn = User._getSignInText(localization = "${localization}");
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "[email protected]";
                  • 42
                    if ("${localization}" == "JA") {
                    • 43
                      var localizedSignIn = "ログイン";
                    }
                  • 45
                    else if ("${localization}" == "ZH") {
                    • 46
                      var localizedSignIn = "登录";
                    }
                  • 48
                    else if ("${localization}" == "IT") {
                    • 49
                      var localizedSignIn = "Accedi";
                    }
                  • 51
                    else if ("${localization}" == "ES") {
                    • 52
                      var localizedSignIn = "Acceder";
                    }
                  • 54
                    else {
                    • 55
                      var localizedSignIn = "Sign In";
                    }
                  • 58
                    return "${localizedSignIn}";
                • 9
                  Button.click(button = "${localizedSignIn}");
                  • 4
                    Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
              • 2023
                if (isSet(localizedAgree)) {
                • 2024
                  User.acceptEndUserLicenseAgreementLocalized(localizedAgree = "${localizedAgree}");
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "[email protected]";
                  • 78
                    var key_localizedAgree = "${localizedAgree}";
                  • 80
                    if (IsElementPresent(locator1 = "Button#I_AGREE_LOCALIZED")) {
                    • 81
                      AssertClick( locator1 = "Button#I_AGREE_LOCALIZED", value1 = "${localizedAgree}");
                    • 85
                      AssertElementNotPresent(locator1 = "Button#I_AGREE_LOCALIZED");
                    }
                }
              • 2027
                else if (IsElementPresent(locator1 = "Button#I_AGREE")) {
                • 2028
                  SignIn.agreeToTermsOfUse();
                  • 3
                    var userEmailAddress = "[email protected]";
                  • 4
                    var userPassword = "test";
                  • 5
                    var userPasswordReminderAnswer = "test";
                  • 24
                    AssertClick( locator1 = "Button#I_AGREE", value1 = "I Agree");
                  • 28
                    AssertElementNotPresent(locator1 = "Button#I_AGREE");
                }
              • 2031
                if (isSet(localizedAnswer)) {
                • 2032
                  User.answerPasswordReminderLocalized( localizedAnswer = "${localizedAnswer}", localizedSaveButton = "${localizedSaveButton}");
                  • 3
                    var password = "test";
                  • 4
                    var userEmailAddress = "[email protected]";
                  • 759
                    Pause(locator1 = "3000");
                  • 761
                    var key_localizedAnswer = "${localizedAnswer}";
                  • 763
                    if (IsElementPresent.pauseIsElementPresent(locator1 = "TextInput#ANSWER_LOCALIZED")) {
                    • 764
                      Type( locator1 = "TextInput#ANSWER_LOCALIZED", value1 = "test");
                    • 768
                      Button.click(button = "${localizedSaveButton}");
                      • 4
                        Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                    • 770
                      Button.viewNotPresent(button = "${localizedSaveButton}");
                      • 138
                        AssertElementNotPresent( key_text = "${button}", locator1 = "Button#ANY");
                    }
                }
              • 2037
                else if (IsElementPresent(locator1 = "Select#QUESTION")) {
                • 2038
                  SignIn.setPasswordReminder();
                  • 3
                    var userEmailAddress = "[email protected]";
                  • 4
                    var userPassword = "test";
                  • 5
                    var userPasswordReminderAnswer = "test";
                  • 33
                    Type( locator1 = "TextInput#ANSWER", value1 = "${userPasswordReminderAnswer}");
                  • 37
                    Button.clickSave();
                    • 98
                      Button.click(button = "Save");
                      • 4
                        Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                    • 100
                      WaitForLiferayEvent.initializeLiferayEventLog();
                }
              • 2041
                WaitForLiferayEvent.initializeLiferayEventLog();
            }
          • 1977
            else {
            • 1978
              WaitForLiferayEvent.initializeLiferayEventLog();
            }
        }
      • 15
        task ("Add a site via JSON") {
        • 16
          JSONGroup.addGroup(groupName = "Test Site Name");
          • 29
            Variables.assertDefined(parameterList = "${groupName}");
            • 5
              if (contains("${parameterList}","{parameterList}")) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list "${parameterList}") {
              • 13
                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
              • 17
                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 31
            var groupDescriptionMap = JSONGroupSetter.setGroupDescriptionMap( groupDescription = "${groupDescription}");
            • 31
              if (isSet(groupDescription)) {
              • 32
                var groupDescription = URLUtil.encodeUTF8("${groupDescription}");
              • 34
                var groupDescriptionMap = '''{"en_US":"${groupDescriptionEncoded}"}''';
              }
            • 36
              else {
              • 37
                var groupDescriptionMap = "{}";
              }
            • 40
              return "${groupDescriptionMap}";
          • 34
            var groupNameMap = JSONGroupSetter.setGroupNameMap( groupName = "${groupName}");
            • 56
              Variables.assertDefined(parameterList = "${groupName}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 58
              var groupNameMap = URLUtil.encodeUTF8("${groupName}");
            • 60
              var groupNameMap = '''{"en_US":"${groupName}"}''';
            • 62
              return "${groupNameMap}";
          • 37
            var parentGroupId = JSONGroupSetter.setParentGroupId(groupName = "${parentGroupName}");
            • 82
              if (isSet(parentGroupName)) {
              • 83
                var parentGroupId = JSONGroupAPI._getParentGroupIdByName(groupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                • 253
                  Variables.assertDefined(parameterList = "${groupName}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 255
                  var companyId = JSONCompany.getCompanyId();
                  • 4
                    if (!(isSet(portalInstanceName))) {
                    • 5
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 51
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 52
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 54
                        if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                        • 55
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        • 57
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                          • 73
                            Variables.assertDefined(parameterList = "${portalURL}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 75
                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                          • 76
                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                          • 78
                            return "${portalInstanceName}";
                        • 59
                          return "${portalInstanceName}";
                        }
                      • 61
                        else {
                        • 62
                          return "localhost";
                        }
                    }
                  • 8
                    if (!(isSet(portalURL))) {
                    • 9
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    }
                  • 12
                    if (!(isSet(creatorEmailAddress))) {
                    • 13
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 14
                        if (!(isSet(userScreenName))) {
                        • 15
                          var creatorEmailAddress = "test";
                        }
                      • 17
                        else {
                        • 18
                          var creatorEmailAddress = "${userScreenName}";
                        }
                      }
                    • 21
                      else {
                      • 22
                        var creatorEmailAddress = "[email protected]";
                      }
                    }
                  • 26
                    if (!(isSet(creatorPassword))) {
                    • 27
                      var creatorPassword = "test";
                    }
                  • 30
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 35
                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                  • 37
                    return "${companyId}";
                • 257
                  var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = "${grandParentGroupName}");
                  • 16
                    if (isSet(grandParentGroupName)) {
                    • 17
                      if (!(isSet(site))) {
                      • 18
                        var site = "true";
                      }
                    • 21
                      var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName(groupName = "${grandParentGroupName}", site = "${site}");
                      • 154
                        Variables.assertDefined(parameterList = "${groupName}");
                        • 5
                          if (contains("${parameterList}","{parameterList}")) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list "${parameterList}") {
                          • 13
                            var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                          • 17
                            if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 156
                        var companyId = JSONCompany.getCompanyId();
                        • 4
                          if (!(isSet(portalInstanceName))) {
                          • 5
                            var portalInstanceName = JSONCompany.getPortalInstanceName();
                            • 51
                              var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                            • 52
                              var testPortalInstance = PropsUtil.get("test.portal.instance");
                            • 54
                              if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                              • 55
                                var portalURL = JSONCompany.getPortalURL();
                                • 67
                                  var portalURL = PropsUtil.get("portal.url");
                                • 69
                                  return "${portalURL}";
                              • 57
                                var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                • 73
                                  Variables.assertDefined(parameterList = "${portalURL}");
                                  • 5
                                    if (contains("${parameterList}","{parameterList}")) {
                                    • 6
                                      fail("Please define a parameter list in 'parameterList'");
                                    }
                                  • 9
                                    for (var parameter : list "${parameterList}") {
                                    • 13
                                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                    • 17
                                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                      • 18
                                        fail("Please set '${parameter}'");
                                      }
                                    }
                                • 75
                                  var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                • 76
                                  var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                • 78
                                  return "${portalInstanceName}";
                              • 59
                                return "${portalInstanceName}";
                              }
                            • 61
                              else {
                              • 62
                                return "localhost";
                              }
                          }
                        • 8
                          if (!(isSet(portalURL))) {
                          • 9
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          }
                        • 12
                          if (!(isSet(creatorEmailAddress))) {
                          • 13
                            if ("${authenticationMethod}" == "By Screen Name") {
                            • 14
                              if (!(isSet(userScreenName))) {
                              • 15
                                var creatorEmailAddress = "test";
                              }
                            • 17
                              else {
                              • 18
                                var creatorEmailAddress = "${userScreenName}";
                              }
                            }
                          • 21
                            else {
                            • 22
                              var creatorEmailAddress = "[email protected]";
                            }
                          }
                        • 26
                          if (!(isSet(creatorPassword))) {
                          • 27
                            var creatorPassword = "test";
                          }
                        • 30
                          var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                        • 35
                          var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                        • 37
                          return "${companyId}";
                      • 158
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 160
                        if (!(isSet(site))) {
                        • 161
                          var site = "true";
                        }
                      • 164
                        var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u [email protected]:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                      • 172
                        var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                      • 174
                        if ("${groupId}" == "") {
                        • 175
                          fail("FAIL. Cannot find group.");
                        }
                      • 178
                        return "${groupId}";
                    }
                  • 23
                    else {
                    • 24
                      var grandParentGroupId = "0";
                    }
                  • 27
                    return "${grandParentGroupId}";
                • 259
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 261
                  var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u [email protected]:test ''';
                • 266
                  var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                • 268
                  if ("${groupId}" == "") {
                  • 269
                    fail("FAIL. Cannot find group.");
                  }
                • 272
                  return "${groupId}";
              }
            • 85
              else {
              • 86
                var parentGroupId = "0";
              }
            • 89
              return "${parentGroupId}";
          • 39
            var type = JSONGroupSetter.setMembershipType(membershipType = "${membershipType}");
            • 66
              if ("${membershipType}" == "Private") {
              • 67
                var type = "3";
              }
            • 70
              else if ("${membershipType}" == "Restricted") {
              • 71
                var type = "2";
              }
            • 74
              else {
              • 75
                var type = "1";
              }
            • 78
              return "${type}";
          • 41
            var manualMembership = JSONGroupSetter.setAllowManualMembershipManagement(allowManualMembershipManagement = "${allowManualMembershipManagement}");
            • 4
              if ("${allowManualMembershipManagement}" == "false") {
              • 5
                var manualMembership = "false";
              }
            • 8
              else {
              • 9
                var manualMembership = "true";
              }
            • 12
              return "${manualMembership}";
          • 43
            JSONGroupAPI._addGroup( groupDescriptionMap = "${groupDescriptionMap}", groupNameMap = "${groupNameMap}", manualMembership = "${manualMembership}", parentGroupId = "${parentGroupId}", portalURL = "${portalURL}", type = "${type}");
            • 5
              Variables.assertDefined(parameterList = "${groupDescriptionMap},${groupNameMap},${manualMembership},${parentGroupId},${type}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 7
              if (!(isSet(portalURL))) {
              • 8
                var portalURL = JSONCompany.getPortalURL();
                • 67
                  var portalURL = PropsUtil.get("portal.url");
                • 69
                  return "${portalURL}";
              }
            • 11
              var curl = ''' ${portalURL}/api/jsonws/group/add-group \ -u [email protected]:test \ -d parentGroupId=${parentGroupId} \ -d liveGroupId=0 \ -d nameMap=${groupNameMap} \ -d descriptionMap=${groupDescriptionMap} \ -d type=${type} \ -d manualMembership=${manualMembership} \ -d membershipRestriction=0 \ -d friendlyURL= \ -d site=true \ -d inheritContent=false \ -d active=true ''';
            • 27
              JSONCurlUtil.post("${curl}");
        }
      }
    • 187
      test AddCollectionItemsInCollectionPageBasedOnManualCollection {
      • 185
        @description = "This is a use case for LPS-107776. Only can add specific type collection items in a collection page based on manual collection with single item type."
      • 188
        task ("Add a manual collection with Web Content Article item type") {
        • 189
          JSONAssetlist.addManualAssetListEntryWithItemType( groupName = "Test Site Name", itemSubtype = "All Subtypes", itemType = "Web Content Article", title = "Manual Collection");
          • 42
            Variables.assertDefined(parameterList = "${groupName},${itemType},${title}");
            • 5
              if (contains("${parameterList}","{parameterList}")) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list "${parameterList}") {
              • 13
                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
              • 17
                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 44
            var groupId = JSONAssetlistSetter.setGroupId(groupName = "${groupName}", site = "${site}");
            • 4
              Variables.assertDefined(parameterList = "${groupName}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 6
              if (!(isSet(site))) {
              • 7
                var site = "true";
              }
            • 10
              var groupId = JSONGroupAPI._getGroupIdByName(groupName = "${groupName}", site = "${site}");
              • 207
                Variables.assertDefined(parameterList = "${groupName},${site}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 209
                if (!(isSet(portalURL))) {
                • 210
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                }
              • 213
                var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 51
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 52
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 54
                      if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                      • 55
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 57
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 73
                          Variables.assertDefined(parameterList = "${portalURL}");
                          • 5
                            if (contains("${parameterList}","{parameterList}")) {
                            • 6
                              fail("Please define a parameter list in 'parameterList'");
                            }
                          • 9
                            for (var parameter : list "${parameterList}") {
                            • 13
                              var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                            • 17
                              if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                              • 18
                                fail("Please set '${parameter}'");
                              }
                            }
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 76
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 78
                          return "${portalInstanceName}";
                      • 59
                        return "${portalInstanceName}";
                      }
                    • 61
                      else {
                      • 62
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "[email protected]";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 35
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 37
                  return "${companyId}";
              • 215
                var parentGroupId = JSONGroupSetter.setParentGroupId(parentGroupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                • 82
                  if (isSet(parentGroupName)) {
                  • 83
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName(groupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                    • 253
                      Variables.assertDefined(parameterList = "${groupName}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 255
                      var companyId = JSONCompany.getCompanyId();
                      • 4
                        if (!(isSet(portalInstanceName))) {
                        • 5
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 51
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 52
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 54
                            if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                            • 55
                              var portalURL = JSONCompany.getPortalURL();
                              • 67
                                var portalURL = PropsUtil.get("portal.url");
                              • 69
                                return "${portalURL}";
                            • 57
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                              • 73
                                Variables.assertDefined(parameterList = "${portalURL}");
                                • 5
                                  if (contains("${parameterList}","{parameterList}")) {
                                  • 6
                                    fail("Please define a parameter list in 'parameterList'");
                                  }
                                • 9
                                  for (var parameter : list "${parameterList}") {
                                  • 13
                                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                  • 17
                                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                    • 18
                                      fail("Please set '${parameter}'");
                                    }
                                  }
                              • 75
                                var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                              • 76
                                var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                              • 78
                                return "${portalInstanceName}";
                            • 59
                              return "${portalInstanceName}";
                            }
                          • 61
                            else {
                            • 62
                              return "localhost";
                            }
                        }
                      • 8
                        if (!(isSet(portalURL))) {
                        • 9
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        }
                      • 12
                        if (!(isSet(creatorEmailAddress))) {
                        • 13
                          if ("${authenticationMethod}" == "By Screen Name") {
                          • 14
                            if (!(isSet(userScreenName))) {
                            • 15
                              var creatorEmailAddress = "test";
                            }
                          • 17
                            else {
                            • 18
                              var creatorEmailAddress = "${userScreenName}";
                            }
                          }
                        • 21
                          else {
                          • 22
                            var creatorEmailAddress = "[email protected]";
                          }
                        }
                      • 26
                        if (!(isSet(creatorPassword))) {
                        • 27
                          var creatorPassword = "test";
                        }
                      • 30
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 35
                        var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                      • 37
                        return "${companyId}";
                    • 257
                      var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = "${grandParentGroupName}");
                      • 16
                        if (isSet(grandParentGroupName)) {
                        • 17
                          if (!(isSet(site))) {
                          • 18
                            var site = "true";
                          }
                        • 21
                          var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName(groupName = "${grandParentGroupName}", site = "${site}");
                          • 154
                            Variables.assertDefined(parameterList = "${groupName}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 156
                            var companyId = JSONCompany.getCompanyId();
                            • 4
                              if (!(isSet(portalInstanceName))) {
                              • 5
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 51
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 52
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 54
                                  if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                                  • 55
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 67
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 69
                                      return "${portalURL}";
                                  • 57
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                    • 73
                                      Variables.assertDefined(parameterList = "${portalURL}");
                                      • 5
                                        if (contains("${parameterList}","{parameterList}")) {
                                        • 6
                                          fail("Please define a parameter list in 'parameterList'");
                                        }
                                      • 9
                                        for (var parameter : list "${parameterList}") {
                                        • 13
                                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                        • 17
                                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                          • 18
                                            fail("Please set '${parameter}'");
                                          }
                                        }
                                    • 75
                                      var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                    • 76
                                      var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                    • 78
                                      return "${portalInstanceName}";
                                  • 59
                                    return "${portalInstanceName}";
                                  }
                                • 61
                                  else {
                                  • 62
                                    return "localhost";
                                  }
                              }
                            • 8
                              if (!(isSet(portalURL))) {
                              • 9
                                var portalURL = JSONCompany.getPortalURL();
                                • 67
                                  var portalURL = PropsUtil.get("portal.url");
                                • 69
                                  return "${portalURL}";
                              }
                            • 12
                              if (!(isSet(creatorEmailAddress))) {
                              • 13
                                if ("${authenticationMethod}" == "By Screen Name") {
                                • 14
                                  if (!(isSet(userScreenName))) {
                                  • 15
                                    var creatorEmailAddress = "test";
                                  }
                                • 17
                                  else {
                                  • 18
                                    var creatorEmailAddress = "${userScreenName}";
                                  }
                                }
                              • 21
                                else {
                                • 22
                                  var creatorEmailAddress = "[email protected]";
                                }
                              }
                            • 26
                              if (!(isSet(creatorPassword))) {
                              • 27
                                var creatorPassword = "test";
                              }
                            • 30
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 35
                              var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                            • 37
                              return "${companyId}";
                          • 158
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          • 160
                            if (!(isSet(site))) {
                            • 161
                              var site = "true";
                            }
                          • 164
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u [email protected]:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 172
                            var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 174
                            if ("${groupId}" == "") {
                            • 175
                              fail("FAIL. Cannot find group.");
                            }
                          • 178
                            return "${groupId}";
                        }
                      • 23
                        else {
                        • 24
                          var grandParentGroupId = "0";
                        }
                      • 27
                        return "${grandParentGroupId}";
                    • 259
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    • 261
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u [email protected]:test ''';
                    • 266
                      var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 268
                      if ("${groupId}" == "") {
                      • 269
                        fail("FAIL. Cannot find group.");
                      }
                    • 272
                      return "${groupId}";
                  }
                • 85
                  else {
                  • 86
                    var parentGroupId = "0";
                  }
                • 89
                  return "${parentGroupId}";
              • 217
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u [email protected]:test ''';
              • 222
                var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 224
                if ("${groupId}" == "") {
                • 225
                  fail("FAIL. Cannot find group.");
                }
              • 228
                echo("## * GroupId: ${groupId}");
              • 230
                return "${groupId}";
            • 12
              return "${groupId}";
          • 46
            JSONAssetlistAPI._addManualAssetListEntry( groupId = "${groupId}", itemSubtype = "${itemSubtype}", itemType = "${itemType}", title = "${title}");
            • 50
              Variables.assertDefined(parameterList = "${groupId},${itemType},${title}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 52
              var assetListEntryId = JSONAssetlistAPI._addAssetListEntry( groupId = "${groupId}", title = "${title}", type = "1");
              • 5
                Variables.assertDefined(parameterList = "${groupId},${title},${type}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 7
                var portalURL = JSONCompany.getPortalURL();
                • 67
                  var portalURL = PropsUtil.get("portal.url");
                • 69
                  return "${portalURL}";
              • 9
                var curl = ''' ${portalURL}/api/jsonws/assetlist.assetlistentry/add-asset-list-entry \ -u [email protected]:test \ -d groupId=${groupId} \ -d title=${title} \ -d type=${type} ''';
              • 17
                var assetListEntryId = JSONCurlUtil.post("${curl}", "$.[?(@['title'] == '${title}')]['assetListEntryId']");
              • 19
                return "${assetListEntryId}";
            • 57
              var typeSettings = JSONAssetlistSetter.setTypeSettings( groupId = "${groupId}", itemSubtype = "${itemSubtype}", itemType = "${itemType}", selectionType = "manual");
              • 30
                var globalGroupId = JSONGroupAPI._getGroupIdByName( groupName = "Global", site = "true");
                • 207
                  Variables.assertDefined(parameterList = "${groupName},${site}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 209
                  if (!(isSet(portalURL))) {
                  • 210
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  }
                • 213
                  var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
                  • 4
                    if (!(isSet(portalInstanceName))) {
                    • 5
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 51
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 52
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 54
                        if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                        • 55
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        • 57
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                          • 73
                            Variables.assertDefined(parameterList = "${portalURL}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 75
                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                          • 76
                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                          • 78
                            return "${portalInstanceName}";
                        • 59
                          return "${portalInstanceName}";
                        }
                      • 61
                        else {
                        • 62
                          return "localhost";
                        }
                    }
                  • 8
                    if (!(isSet(portalURL))) {
                    • 9
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    }
                  • 12
                    if (!(isSet(creatorEmailAddress))) {
                    • 13
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 14
                        if (!(isSet(userScreenName))) {
                        • 15
                          var creatorEmailAddress = "test";
                        }
                      • 17
                        else {
                        • 18
                          var creatorEmailAddress = "${userScreenName}";
                        }
                      }
                    • 21
                      else {
                      • 22
                        var creatorEmailAddress = "[email protected]";
                      }
                    }
                  • 26
                    if (!(isSet(creatorPassword))) {
                    • 27
                      var creatorPassword = "test";
                    }
                  • 30
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 35
                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                  • 37
                    return "${companyId}";
                • 215
                  var parentGroupId = JSONGroupSetter.setParentGroupId(parentGroupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                  • 82
                    if (isSet(parentGroupName)) {
                    • 83
                      var parentGroupId = JSONGroupAPI._getParentGroupIdByName(groupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                      • 253
                        Variables.assertDefined(parameterList = "${groupName}");
                        • 5
                          if (contains("${parameterList}","{parameterList}")) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list "${parameterList}") {
                          • 13
                            var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                          • 17
                            if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 255
                        var companyId = JSONCompany.getCompanyId();
                        • 4
                          if (!(isSet(portalInstanceName))) {
                          • 5
                            var portalInstanceName = JSONCompany.getPortalInstanceName();
                            • 51
                              var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                            • 52
                              var testPortalInstance = PropsUtil.get("test.portal.instance");
                            • 54
                              if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                              • 55
                                var portalURL = JSONCompany.getPortalURL();
                                • 67
                                  var portalURL = PropsUtil.get("portal.url");
                                • 69
                                  return "${portalURL}";
                              • 57
                                var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                • 73
                                  Variables.assertDefined(parameterList = "${portalURL}");
                                  • 5
                                    if (contains("${parameterList}","{parameterList}")) {
                                    • 6
                                      fail("Please define a parameter list in 'parameterList'");
                                    }
                                  • 9
                                    for (var parameter : list "${parameterList}") {
                                    • 13
                                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                    • 17
                                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                      • 18
                                        fail("Please set '${parameter}'");
                                      }
                                    }
                                • 75
                                  var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                • 76
                                  var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                • 78
                                  return "${portalInstanceName}";
                              • 59
                                return "${portalInstanceName}";
                              }
                            • 61
                              else {
                              • 62
                                return "localhost";
                              }
                          }
                        • 8
                          if (!(isSet(portalURL))) {
                          • 9
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          }
                        • 12
                          if (!(isSet(creatorEmailAddress))) {
                          • 13
                            if ("${authenticationMethod}" == "By Screen Name") {
                            • 14
                              if (!(isSet(userScreenName))) {
                              • 15
                                var creatorEmailAddress = "test";
                              }
                            • 17
                              else {
                              • 18
                                var creatorEmailAddress = "${userScreenName}";
                              }
                            }
                          • 21
                            else {
                            • 22
                              var creatorEmailAddress = "[email protected]";
                            }
                          }
                        • 26
                          if (!(isSet(creatorPassword))) {
                          • 27
                            var creatorPassword = "test";
                          }
                        • 30
                          var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                        • 35
                          var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                        • 37
                          return "${companyId}";
                      • 257
                        var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = "${grandParentGroupName}");
                        • 16
                          if (isSet(grandParentGroupName)) {
                          • 17
                            if (!(isSet(site))) {
                            • 18
                              var site = "true";
                            }
                          • 21
                            var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName(groupName = "${grandParentGroupName}", site = "${site}");
                            • 154
                              Variables.assertDefined(parameterList = "${groupName}");
                              • 5
                                if (contains("${parameterList}","{parameterList}")) {
                                • 6
                                  fail("Please define a parameter list in 'parameterList'");
                                }
                              • 9
                                for (var parameter : list "${parameterList}") {
                                • 13
                                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                • 17
                                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                  • 18
                                    fail("Please set '${parameter}'");
                                  }
                                }
                            • 156
                              var companyId = JSONCompany.getCompanyId();
                              • 4
                                if (!(isSet(portalInstanceName))) {
                                • 5
                                  var portalInstanceName = JSONCompany.getPortalInstanceName();
                                  • 51
                                    var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                  • 52
                                    var testPortalInstance = PropsUtil.get("test.portal.instance");
                                  • 54
                                    if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                                    • 55
                                      var portalURL = JSONCompany.getPortalURL();
                                      • 67
                                        var portalURL = PropsUtil.get("portal.url");
                                      • 69
                                        return "${portalURL}";
                                    • 57
                                      var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                      • 73
                                        Variables.assertDefined(parameterList = "${portalURL}");
                                        • 5
                                          if (contains("${parameterList}","{parameterList}")) {
                                          • 6
                                            fail("Please define a parameter list in 'parameterList'");
                                          }
                                        • 9
                                          for (var parameter : list "${parameterList}") {
                                          • 13
                                            var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                          • 17
                                            if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                            • 18
                                              fail("Please set '${parameter}'");
                                            }
                                          }
                                      • 75
                                        var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                      • 76
                                        var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                      • 78
                                        return "${portalInstanceName}";
                                    • 59
                                      return "${portalInstanceName}";
                                    }
                                  • 61
                                    else {
                                    • 62
                                      return "localhost";
                                    }
                                }
                              • 8
                                if (!(isSet(portalURL))) {
                                • 9
                                  var portalURL = JSONCompany.getPortalURL();
                                  • 67
                                    var portalURL = PropsUtil.get("portal.url");
                                  • 69
                                    return "${portalURL}";
                                }
                              • 12
                                if (!(isSet(creatorEmailAddress))) {
                                • 13
                                  if ("${authenticationMethod}" == "By Screen Name") {
                                  • 14
                                    if (!(isSet(userScreenName))) {
                                    • 15
                                      var creatorEmailAddress = "test";
                                    }
                                  • 17
                                    else {
                                    • 18
                                      var creatorEmailAddress = "${userScreenName}";
                                    }
                                  }
                                • 21
                                  else {
                                  • 22
                                    var creatorEmailAddress = "[email protected]";
                                  }
                                }
                              • 26
                                if (!(isSet(creatorPassword))) {
                                • 27
                                  var creatorPassword = "test";
                                }
                              • 30
                                var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                              • 35
                                var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                              • 37
                                return "${companyId}";
                            • 158
                              var portalURL = JSONCompany.getPortalURL();
                              • 67
                                var portalURL = PropsUtil.get("portal.url");
                              • 69
                                return "${portalURL}";
                            • 160
                              if (!(isSet(site))) {
                              • 161
                                var site = "true";
                              }
                            • 164
                              var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u [email protected]:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                            • 172
                              var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                            • 174
                              if ("${groupId}" == "") {
                              • 175
                                fail("FAIL. Cannot find group.");
                              }
                            • 178
                              return "${groupId}";
                          }
                        • 23
                          else {
                          • 24
                            var grandParentGroupId = "0";
                          }
                        • 27
                          return "${grandParentGroupId}";
                      • 259
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 261
                        var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u [email protected]:test ''';
                      • 266
                        var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                      • 268
                        if ("${groupId}" == "") {
                        • 269
                          fail("FAIL. Cannot find group.");
                        }
                      • 272
                        return "${groupId}";
                    }
                  • 85
                    else {
                    • 86
                      var parentGroupId = "0";
                    }
                  • 89
                    return "${parentGroupId}";
                • 217
                  var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u [email protected]:test ''';
                • 222
                  var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                • 224
                  if ("${groupId}" == "") {
                  • 225
                    fail("FAIL. Cannot find group.");
                  }
                • 228
                  echo("## * GroupId: ${groupId}");
                • 230
                  return "${groupId}";
              • 34
                var list = ListUtil.newList();
              • 36
                ListUtil.add("${list}", "com.liferay.blogs.model.BlogsEntry");
              • 37
                ListUtil.add("${list}", "com.liferay.bookmarks.model.BookmarksEntry");
              • 38
                ListUtil.add("${list}", "com.liferay.bookmarks.model.BookmarksFolder");
              • 39
                ListUtil.add("${list}", "com.liferay.calendar.model.CalendarBooking");
              • 40
                ListUtil.add("${list}", "com.liferay.commerce.model.CommerceOrder");
              • 41
                ListUtil.add("${list}", "com.liferay.document.library.kernel.model.DLFileEntry");
              • 42
                ListUtil.add("${list}", "com.liferay.document.library.kernel.model.DLFolder");
              • 43
                ListUtil.add("${list}", "com.liferay.dynamic.data.lists.model.DDLRecord");
              • 44
                ListUtil.add("${list}", "com.liferay.knowledge.base.model.KBArticle");
              • 45
                ListUtil.add("${list}", "com.liferay.message.boards.model.MBMessage");
              • 46
                ListUtil.add("${list}", "com.liferay.translation.model.TranslationEntry");
              • 47
                ListUtil.add("${list}", "com.liferay.journal.model.JournalArticle");
              • 48
                ListUtil.add("${list}", "com.liferay.journal.model.JournalFolder");
              • 49
                ListUtil.add("${list}", "com.liferay.wiki.model.WikiPage");
              • 51
                var values = ListUtil.toString("${list}");
              • 53
                var list = ListUtil.newList();
              • 55
                for (var value : list "${values}") {
                • 56
                  var classNameId = JSONClassname._getClassNameId(value = "${value}");
                  • 5
                    Variables.assertDefined(parameterList = "${value}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 7
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  • 9
                    var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                  • 14
                    var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                  • 16
                    if ("${classNameId}" == "") {
                    • 17
                      echo("The ${value} doesn't exist.");
                    }
                  • 20
                    return "${classNameId}";
                • 58
                  if ("${value}" != "") {
                  • 59
                    ListUtil.add("${list}","${classNameId}");
                  }
                }
              • 63
                var classNameIds = ListUtil.toString("${list}");
              • 65
                var googleDriveShortcutClassTypeId = JSONDLfileentrytype._getFileEntryTypeId( fileEntryTypeName = "Google Drive Shortcut", groupId = "${globalGroupId}");
                • 5
                  Variables.assertDefined(parameterList = "${fileEntryTypeName},${groupId}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 7
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 9
                  var curl = ''' ${portalURL}/api/jsonws/dlfileentrytype/get-file-entry-types \ -u [email protected]:test \ -d groupIds=[${groupId}] ''';
                • 15
                  var fileEntryTypeId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${fileEntryTypeName}')]['fileEntryTypeId']");
                • 17
                  if ("${fileEntryTypeId}" == "") {
                  • 18
                    echo("The ${fileEntryTypeName} doesn't exist.");
                  }
                • 21
                  return "${fileEntryTypeId}";
              • 69
                var basicDocumentClassTypeId = "0";
              • 71
                var classTypeIdsDLFileEntry = JSONDLfileentrytype._getFileEntryTypeIds(groupId = "${groupId}");
                • 26
                  Variables.assertDefined(parameterList = "${groupId}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 28
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/dlfileentrytype/get-file-entry-types \ -u [email protected]:test \ -d groupIds=[${groupId}] ''';
                • 36
                  var fileEntryTypeIds = JSONCurlUtil.post("${curl}", "$..fileEntryTypeId");
                • 38
                  return "${fileEntryTypeIds}";
              • 73
                if ("${classTypeIdsDLFileEntry}" == "") {
                • 74
                  if ("${googleDriveShortcutClassTypeId}" != "") {
                  • 75
                    var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId}''';
                  }
                • 77
                  else {
                  • 78
                    var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId}''';
                  }
                }
              • 81
                else {
                • 82
                  if ("${googleDriveShortcutClassTypeId}" != "") {
                  • 83
                    var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${googleDriveShortcutClassTypeId},${classTypeIdsDLFileEntry}''';
                  }
                • 85
                  else {
                  • 86
                    var classTypeIdsDLFileEntry = '''${basicDocumentClassTypeId},${classTypeIdsDLFileEntry}''';
                  }
                }
              • 90
                var classNameId = JSONClassname._getClassNameId(value = "com.liferay.journal.model.JournalArticle");
                • 5
                  Variables.assertDefined(parameterList = "${value}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 7
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 9
                  var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                • 14
                  var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                • 16
                  if ("${classNameId}" == "") {
                  • 17
                    echo("The ${value} doesn't exist.");
                  }
                • 20
                  return "${classNameId}";
              • 92
                var basicWebContentClassTypeId = JSONDDMstructure._getStructureId( classNameId = "${classNameId}", groupId = "${globalGroupId}", structureName = "Basic Web Content");
                • 5
                  Variables.assertDefined(parameterList = "${classNameId},${groupId},${structureName}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 7
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 9
                  var companyId = JSONCompany.getCompanyId();
                  • 4
                    if (!(isSet(portalInstanceName))) {
                    • 5
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 51
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 52
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 54
                        if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                        • 55
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        • 57
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                          • 73
                            Variables.assertDefined(parameterList = "${portalURL}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 75
                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                          • 76
                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                          • 78
                            return "${portalInstanceName}";
                        • 59
                          return "${portalInstanceName}";
                        }
                      • 61
                        else {
                        • 62
                          return "localhost";
                        }
                    }
                  • 8
                    if (!(isSet(portalURL))) {
                    • 9
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    }
                  • 12
                    if (!(isSet(creatorEmailAddress))) {
                    • 13
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 14
                        if (!(isSet(userScreenName))) {
                        • 15
                          var creatorEmailAddress = "test";
                        }
                      • 17
                        else {
                        • 18
                          var creatorEmailAddress = "${userScreenName}";
                        }
                      }
                    • 21
                      else {
                      • 22
                        var creatorEmailAddress = "[email protected]";
                      }
                    }
                  • 26
                    if (!(isSet(creatorPassword))) {
                    • 27
                      var creatorPassword = "test";
                    }
                  • 30
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 35
                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                  • 37
                    return "${companyId}";
                • 11
                  var curl = ''' ${portalURL}/api/jsonws/ddm.ddmstructure/get-structures \ -u [email protected]:test \ -d companyId=${companyId} \ -d groupIds=[${groupId}] \ -d classNameId=${classNameId} \ -d "start=-1" \ -d "end=-1" \ -d -orderByComparator= ''';
                • 22
                  var structureId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${structureName}')]['structureId']");
                • 24
                  if ("${structureId}" == "") {
                  • 25
                    fail("FAIL. Cannot find structureId.");
                  }
                • 28
                  return "${structureId}";
              • 97
                var classTypeIdsDDMStructure = JSONDDMstructure._getStructureIds( classNameId = "${classNameId}", groupId = "${groupId}");
                • 33
                  Variables.assertDefined(parameterList = "${classNameId},${groupId}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 35
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                • 37
                  var companyId = JSONCompany.getCompanyId();
                  • 4
                    if (!(isSet(portalInstanceName))) {
                    • 5
                      var portalInstanceName = JSONCompany.getPortalInstanceName();
                      • 51
                        var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                      • 52
                        var testPortalInstance = PropsUtil.get("test.portal.instance");
                      • 54
                        if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                        • 55
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        • 57
                          var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                          • 73
                            Variables.assertDefined(parameterList = "${portalURL}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 75
                            var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                          • 76
                            var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                          • 78
                            return "${portalInstanceName}";
                        • 59
                          return "${portalInstanceName}";
                        }
                      • 61
                        else {
                        • 62
                          return "localhost";
                        }
                    }
                  • 8
                    if (!(isSet(portalURL))) {
                    • 9
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    }
                  • 12
                    if (!(isSet(creatorEmailAddress))) {
                    • 13
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 14
                        if (!(isSet(userScreenName))) {
                        • 15
                          var creatorEmailAddress = "test";
                        }
                      • 17
                        else {
                        • 18
                          var creatorEmailAddress = "${userScreenName}";
                        }
                      }
                    • 21
                      else {
                      • 22
                        var creatorEmailAddress = "[email protected]";
                      }
                    }
                  • 26
                    if (!(isSet(creatorPassword))) {
                    • 27
                      var creatorPassword = "test";
                    }
                  • 30
                    var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                  • 35
                    var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                  • 37
                    return "${companyId}";
                • 39
                  var curl = ''' ${portalURL}/api/jsonws/ddm.ddmstructure/get-structures \ -u [email protected]:test \ -d companyId=${companyId} \ -d groupIds=[${groupId}] \ -d classNameId=${classNameId} \ -d "start=-1" \ -d "end=-1" \ -d -orderByComparator= ''';
                • 50
                  var structureIds = JSONCurlUtil.post("${curl}", "$..structureId");
                • 52
                  return "${structureIds}";
              • 101
                if ("${classTypeIdsDDMStructure}" == "") {
                • 102
                  var classTypeIdsDDMStructure = '''${basicWebContentClassTypeId}''';
                }
              • 104
                else {
                • 105
                  var classTypeIdsDDMStructure = '''${basicWebContentClassTypeId},${classTypeIdsDDMStructure}''';
                }
              • 108
                if ("${itemType}" == "All Types") {
                • 109
                  if ("${selectionType}" == "dynamic") {
                  • 110
                    var typeSettings = ''' anyAssetType=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                  }
                • 127
                  else if ("${selectionType}" == "manual") {
                  • 128
                    var typeSettings = ''' anyAssetType=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                  }
                }
              • 136
                else if ("${itemType}" == "Web Content Article") {
                • 137
                  var itemType = JSONClassname._getClassNameId(value = "com.liferay.journal.model.JournalArticle");
                  • 5
                    Variables.assertDefined(parameterList = "${value}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 7
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  • 9
                    var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                  • 14
                    var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                  • 16
                    if ("${classNameId}" == "") {
                    • 17
                      echo("The ${value} doesn't exist.");
                    }
                  • 20
                    return "${classNameId}";
                • 139
                  if ("${itemSubtype}" == "All Subtypes") {
                  • 140
                    if ("${selectionType}" == "dynamic") {
                    • 141
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeJournalArticleAssetRendererFactory=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                    }
                  • 159
                    else if ("${selectionType}" == "manual") {
                    • 160
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeJournalArticleAssetRendererFactory=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                    }
                  }
                • 169
                  else {
                  • 170
                    if ("${itemSubtype}" == "Basic Web Content") {
                    • 171
                      var classTypeId = "${basicWebContentClassTypeId}";
                    }
                  • 173
                    else {
                    • 174
                      var classTypeId = JSONDDMstructure._getStructureId( classNameId = "${classNameId}", groupId = "${groupId}", structureName = "${itemSubtype}");
                      • 5
                        Variables.assertDefined(parameterList = "${classNameId},${groupId},${structureName}");
                        • 5
                          if (contains("${parameterList}","{parameterList}")) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list "${parameterList}") {
                          • 13
                            var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                          • 17
                            if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 7
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 9
                        var companyId = JSONCompany.getCompanyId();
                        • 4
                          if (!(isSet(portalInstanceName))) {
                          • 5
                            var portalInstanceName = JSONCompany.getPortalInstanceName();
                            • 51
                              var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                            • 52
                              var testPortalInstance = PropsUtil.get("test.portal.instance");
                            • 54
                              if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                              • 55
                                var portalURL = JSONCompany.getPortalURL();
                                • 67
                                  var portalURL = PropsUtil.get("portal.url");
                                • 69
                                  return "${portalURL}";
                              • 57
                                var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                • 73
                                  Variables.assertDefined(parameterList = "${portalURL}");
                                  • 5
                                    if (contains("${parameterList}","{parameterList}")) {
                                    • 6
                                      fail("Please define a parameter list in 'parameterList'");
                                    }
                                  • 9
                                    for (var parameter : list "${parameterList}") {
                                    • 13
                                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                    • 17
                                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                      • 18
                                        fail("Please set '${parameter}'");
                                      }
                                    }
                                • 75
                                  var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                • 76
                                  var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                • 78
                                  return "${portalInstanceName}";
                              • 59
                                return "${portalInstanceName}";
                              }
                            • 61
                              else {
                              • 62
                                return "localhost";
                              }
                          }
                        • 8
                          if (!(isSet(portalURL))) {
                          • 9
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          }
                        • 12
                          if (!(isSet(creatorEmailAddress))) {
                          • 13
                            if ("${authenticationMethod}" == "By Screen Name") {
                            • 14
                              if (!(isSet(userScreenName))) {
                              • 15
                                var creatorEmailAddress = "test";
                              }
                            • 17
                              else {
                              • 18
                                var creatorEmailAddress = "${userScreenName}";
                              }
                            }
                          • 21
                            else {
                            • 22
                              var creatorEmailAddress = "[email protected]";
                            }
                          }
                        • 26
                          if (!(isSet(creatorPassword))) {
                          • 27
                            var creatorPassword = "test";
                          }
                        • 30
                          var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                        • 35
                          var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                        • 37
                          return "${companyId}";
                      • 11
                        var curl = ''' ${portalURL}/api/jsonws/ddm.ddmstructure/get-structures \ -u [email protected]:test \ -d companyId=${companyId} \ -d groupIds=[${groupId}] \ -d classNameId=${classNameId} \ -d "start=-1" \ -d "end=-1" \ -d -orderByComparator= ''';
                      • 22
                        var structureId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${structureName}')]['structureId']");
                      • 24
                        if ("${structureId}" == "") {
                        • 25
                          fail("FAIL. Cannot find structureId.");
                        }
                      • 28
                        return "${structureId}";
                    }
                  • 180
                    if ("${selectionType}" == "dynamic") {
                    • 181
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeJournalArticleAssetRendererFactory=${classTypeId} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                    }
                  • 199
                    else if ("${selectionType}" == "manual") {
                    • 200
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeJournalArticleAssetRendererFactory=${classTypeId} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                    }
                  }
                }
              • 210
                else if ("${itemType}" == "Blogs Entry" || "${itemType}" == "Documents Folder" || "${itemType}" == "Web Content Folder") {
                • 211
                  if ("${itemType}" == "Blogs Entry") {
                  • 212
                    var itemType = JSONClassname._getClassNameId(value = "com.liferay.blogs.model.BlogsEntry");
                    • 5
                      Variables.assertDefined(parameterList = "${value}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 7
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    • 9
                      var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                    • 14
                      var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                    • 16
                      if ("${classNameId}" == "") {
                      • 17
                        echo("The ${value} doesn't exist.");
                      }
                    • 20
                      return "${classNameId}";
                  }
                • 215
                  if ("${itemType}" == "Documents Folder") {
                  • 216
                    var itemType = JSONClassname._getClassNameId(value = "com.liferay.document.library.kernel.model.DLFolder");
                    • 5
                      Variables.assertDefined(parameterList = "${value}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 7
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    • 9
                      var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                    • 14
                      var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                    • 16
                      if ("${classNameId}" == "") {
                      • 17
                        echo("The ${value} doesn't exist.");
                      }
                    • 20
                      return "${classNameId}";
                  }
                • 219
                  if ("${itemType}" == "Web Content Folder") {
                  • 220
                    var itemType = JSONClassname._getClassNameId(value = "com.liferay.journal.model.JournalFolder");
                    • 5
                      Variables.assertDefined(parameterList = "${value}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 7
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    • 9
                      var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                    • 14
                      var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                    • 16
                      if ("${classNameId}" == "") {
                      • 17
                        echo("The ${value} doesn't exist.");
                      }
                    • 20
                      return "${classNameId}";
                  }
                • 223
                  if ("${selectionType}" == "dynamic") {
                  • 224
                    var typeSettings = ''' anyAssetType=${itemType} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                  }
                • 241
                  else if ("${selectionType}" == "manual") {
                  • 242
                    var typeSettings = ''' anyAssetType=${itemType} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                  }
                }
              • 250
                else if ("${itemType}" == "Document") {
                • 251
                  var itemType = JSONClassname._getClassNameId(value = "com.liferay.document.library.kernel.model.DLFileEntry");
                  • 5
                    Variables.assertDefined(parameterList = "${value}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 7
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  • 9
                    var curl = ''' ${portalURL}/api/jsonws/classname/fetch-class-name \ -u [email protected]:test \ -d value=${value} ''';
                  • 14
                    var classNameId = JSONCurlUtil.post("${curl}", "$.[?(@['value'] == '${value}')]['classNameId']");
                  • 16
                    if ("${classNameId}" == "") {
                    • 17
                      echo("The ${value} doesn't exist.");
                    }
                  • 20
                    return "${classNameId}";
                • 253
                  if ("${itemSubtype}" == "All Subtypes") {
                  • 254
                    if ("${selectionType}" == "dynamic") {
                    • 255
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeDLFileEntryAssetRendererFactory=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                    }
                  • 273
                    else if ("${selectionType}" == "manual") {
                    • 274
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeDLFileEntryAssetRendererFactory=true classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                    }
                  }
                • 283
                  else {
                  • 284
                    if ("${itemSubtype}" == "Basic Document") {
                    • 285
                      var classTypeId = "${basicDocumentClassTypeId}";
                    }
                  • 287
                    else if ("${itemSubtype}" == "Google Drive Shortcut") {
                    • 288
                      var classTypeId = "${googleDriveShortcutClassTypeId}";
                    }
                  • 290
                    else {
                    • 291
                      var classTypeId = JSONDLfileentrytype._getFileEntryTypeId( fileEntryTypeName = "${itemSubtype}", groupId = "${groupId}");
                      • 5
                        Variables.assertDefined(parameterList = "${fileEntryTypeName},${groupId}");
                        • 5
                          if (contains("${parameterList}","{parameterList}")) {
                          • 6
                            fail("Please define a parameter list in 'parameterList'");
                          }
                        • 9
                          for (var parameter : list "${parameterList}") {
                          • 13
                            var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                          • 17
                            if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                            • 18
                              fail("Please set '${parameter}'");
                            }
                          }
                      • 7
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 9
                        var curl = ''' ${portalURL}/api/jsonws/dlfileentrytype/get-file-entry-types \ -u [email protected]:test \ -d groupIds=[${groupId}] ''';
                      • 15
                        var fileEntryTypeId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${fileEntryTypeName}')]['fileEntryTypeId']");
                      • 17
                        if ("${fileEntryTypeId}" == "") {
                        • 18
                          echo("The ${fileEntryTypeName} doesn't exist.");
                        }
                      • 21
                        return "${fileEntryTypeId}";
                    }
                  • 296
                    if ("${selectionType}" == "dynamic") {
                    • 297
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeDLFileEntryAssetRendererFactory=${classTypeId} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} groupIds=${groupId} orderByColumn1=modifiedDate orderByColumn2=title orderByType1=DESC orderByType2=ASC queryAndOperator0=true queryContains0=true queryName0=assetTags subtypeFieldsFilterEnabledDLFileEntryAssetRendererFactory=false subtypeFieldsFilterEnabledJournalArticleAssetRendererFactory=false ''';
                    }
                  • 315
                    else if ("${selectionType}" == "manual") {
                    • 316
                      var typeSettings = ''' anyAssetType=${itemType} anyClassTypeDLFileEntryAssetRendererFactory=${classTypeId} classNameIds=${classNameIds} classTypeIdsDLFileEntryAssetRendererFactory=${classTypeIdsDLFileEntry} classTypeIdsJournalArticleAssetRendererFactory=${classTypeIdsDDMStructure} ''';
                    }
                  }
                }
              • 326
                else {
                • 327
                  fail("'itemType' is either invalid or not yet set.");
                }
              • 330
                var newLine = ''' ''';
              • 333
                var typeSettings = StringUtil.regexReplaceAll("${typeSettings}", "${newLine}", "%0A");
              • 335
                return "${typeSettings}";
            • 63
              JSONAssetlistAPI._updateAssetListEntryTypeSettings( assetListEntryId = "${assetListEntryId}", segmentsEntryId = "0", typeSettings = "${typeSettings}");
              • 71
                Variables.assertDefined(parameterList = "${assetListEntryId},${segmentsEntryId},${typeSettings}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 73
                var portalURL = JSONCompany.getPortalURL();
                • 67
                  var portalURL = PropsUtil.get("portal.url");
                • 69
                  return "${portalURL}";
              • 75
                var curl = ''' ${portalURL}/api/jsonws/assetlist.assetlistentry/update-asset-list-entry-type-settings \ -u [email protected]:test \ -d assetListEntryId=${assetListEntryId} \ -d segmentsEntryId=${segmentsEntryId} \ -d typeSettings=${typeSettings} ''';
              • 83
                com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
        }
      • 196
        task ("Add a collection page based on manual collection") {
        • 197
          SitePages.openPagesAdmin(siteURLKey = "test-site-name");
          • 504
            var siteURLKey = StringUtil.replace("${siteURLKey}", " ", "-");
          • 505
            var siteURLKey = StringUtil.lowerCase("${siteURLKey}");
          • 507
            Navigator.openWithAppendToBaseURL( baseURL = "${baseURL}", urlAppend = "group/${siteURLKey}/~/control_panel/manage?p_p_id=com_liferay_layout_admin_web_portlet_GroupPagesPortlet");
            • 365
              if (!(isSet(baseURL))) {
              • 366
                var baseURL = PropsUtil.get("portal.url");
              }
            • 369
              Open(locator1 = "${baseURL}/${urlAppend}");
        • 199
          ContentPages.addPublicCollectionPage( collectionName = "Manual Collection", pageName = "Test Collection Page Name", tabName = "Collections");
          • 163
            if (IsTextNotEqual(locator1 = "ControlMenu#HEADING", value1 = "Pages")) {
            • 164
              ProductMenu.gotoPortlet( category = "Site Builder", portlet = "Pages");
              • 57
                if (IsElementNotPresent(locator1 = "ProductMenu#TOGGLE")) {
                • 58
                  ApplicationsMenu.gotoSite(site = "${site}");
                  • 39
                    ApplicationsMenuHelper.openApplicationsMenu();
                    • 23
                      if (IsElementNotPresent(locator1 = "ApplicationsMenu#APPLICATIONS_MENU")) {
                      • 24
                        Click(locator1 = "ApplicationsMenu#TOGGLE");
                      }
                    • 27
                      WaitForElementPresent(locator1 = "ApplicationsMenu#APPLICATIONS_MENU");
                  • 41
                    Click( key_site = "${site}", locator1 = "ApplicationsMenu#SITE_LINK");
                }
              • 61
                ProductMenuHelper.openProductMenu();
                • 46
                  if ((IsElementNotPresent(locator1 = "ProductMenu#PRODUCT_MENU_OPENED")) && (IsElementPresent(locator1 = "ProductMenu#PRODUCT_MENU_CLOSED"))) {
                  • 47
                    Click(locator1 = "ProductMenu#TOGGLE");
                  }
                • 50
                  AssertElementPresent(locator1 = "ProductMenu#PRODUCT_MENU_OPENED");
                • 52
                  AssertElementNotPresent(locator1 = "ProductMenu#PRODUCT_MENU_CLOSED");
                • 54
                  if (IsElementPresent(key_text = "Back to Menu", locator1 = "Button#ANY")) {
                  • 55
                    Click( key_text = "Back to Menu", locator1 = "Button#ANY");
                  }
                • 60
                  AssertVisible(locator1 = "ProductMenu#PRODUCT_MENU_BODY");
              • 63
                ProductMenuHelper.expandCategory(category = "${category}");
                • 12
                  var key_category = "${category}";
                • 14
                  if (IsElementPresent(locator1 = "ProductMenu#CATEGORY_COLLAPSED")) {
                  • 15
                    Click(locator1 = "ProductMenu#CATEGORY_COLLAPSED");
                  }
                • 18
                  AssertElementPresent(locator1 = "ProductMenu#CATEGORY_EXPANDED");
              • 65
                ProductMenuHelper.gotoPortlet(portlet = "${portlet}");
                • 39
                  AssertClick.assertPartialTextClickAt( key_portlet = "${portlet}", locator1 = "ProductMenu#PORTLET", value1 = "${portlet}");
            }
          • 169
            LexiconEntry.gotoAdd();
            • 51
              WaitForPageLoad();
            • 53
              Click(locator1 = "Button#PLUS");
          • 171
            MenuItem.click(menuItem = "Public Collection Page");
            • 4
              Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
          • 173
            Navigator.gotoNavTab(navTab = "${tabName}");
            • 102
              var key_tab = "${navTab}";
            • 104
              if (IsElementNotPresent(locator1 = "NavTab#ACTIVE_TAB_LINK")) {
              • 105
                AssertClick.assertPartialTextClickAt( locator1 = "NavTab#TAB_LINK", value1 = "${navTab}");
              }
            • 110
              AssertElementPresent(locator1 = "NavTab#ACTIVE_TAB_LINK");
            • 112
              WaitForLiferayEvent.initializeLiferayEventLog();
          • 175
            if (isSet(menuItem)) {
            • 176
              AssetListsAdmin.addSelection( collectionName = "${collectionName}", menuItem = "${menuItem}", selectedAsset = "${selectedAsset}");
              • 128
                Click(locator1 = "Button#NEW");
              • 130
                MenuItem.click(menuItem = "${menuItem}");
                • 4
                  Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
              • 132
                PortletEntry.inputText( fieldLabel = "Title", text = "${collectionName}");
                • 118
                  Type( key_fieldLabel = "${fieldLabel}", locator1 = "TextInput#GENERIC_TEXT_INPUT", value1 = "${text}");
              • 136
                Button.clickSave();
                • 98
                  Button.click(button = "Save");
                  • 4
                    Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                • 100
                  WaitForLiferayEvent.initializeLiferayEventLog();
              • 138
                Select( locator1 = "APConfiguration#SOURCE_SCOPE_ASSET_TYPE_SELECT", value1 = "${selectedAsset}");
              • 142
                WaitForElementNotPresent( key_text = "Save", locator1 = "Button#ANY_DISABLED");
              • 146
                PortletEntry.save();
                • 152
                  Button.clickSave();
                  • 98
                    Button.click(button = "Save");
                    • 4
                      Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                  • 100
                    WaitForLiferayEvent.initializeLiferayEventLog();
                • 154
                  Alert.viewSuccessMessage();
                  • 110
                    VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
                • 156
                  WaitForLiferayEvent.initializeLiferayEventLog();
            • 181
              Click(locator1 = "Icon#BACK");
            }
          • 184
            LexiconCard.clickCard(card = "${collectionName}");
            • 14
              WaitForLiferayEvent.initializeLiferayEventLog();
            • 16
              Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
          • 186
            if (isSet(masterLayoutName)) {
            • 187
              LexiconCard.clickCard(card = "${masterLayoutName}");
              • 14
                WaitForLiferayEvent.initializeLiferayEventLog();
              • 16
                Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
            }
          • 189
            else {
            • 190
              LexiconCard.clickCard(card = "Blank");
              • 14
                WaitForLiferayEvent.initializeLiferayEventLog();
              • 16
                Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
            }
          • 193
            SelectFrame(locator1 = "IFrame#MODAL_BODY");
          • 195
            PortletEntry.inputName(name = "${pageName}");
            • 106
              Type( locator1 = "TextInput#NAME", value1 = "${name}");
          • 197
            if (isSet(categoryName)) {
            • 198
              AssetCategorization.addCategory( categoryName = "${categoryName}", vocabularyName = "${vocabularyName}");
              • 23
                var key_categoryName = "${categoryName}";
              • 25
                Type( key_vocabularyName = "${vocabularyName}", locator1 = "AssetCategorization#CATEGORIES_FIELD", value1 = "${categoryName}");
              • 30
                Click.mouseDownMouseUp(locator1 = "AssetCategorization#CATEGORY_AUTOCOMPLETE_SPECIFIC");
              • 32
                AssertTextEquals( locator1 = "AssetCategorization#CATEGORY", value1 = "${categoryName}");
            }
          • 203
            if (isSet(categoryNameList)) {
            • 204
              AssetCategorization.addMultipleCategories( categoryNameList = "${categoryNameList}", vocabularyName = "${vocabularyName}");
              • 66
                for (var categoryName : list "${categoryNameList}") {
                • 67
                  AssetCategorization.addCategory( categoryName = "${categoryName}", vocabularyName = "${vocabularyName}");
                  • 23
                    var key_categoryName = "${categoryName}";
                  • 25
                    Type( key_vocabularyName = "${vocabularyName}", locator1 = "AssetCategorization#CATEGORIES_FIELD", value1 = "${categoryName}");
                  • 30
                    Click.mouseDownMouseUp(locator1 = "AssetCategorization#CATEGORY_AUTOCOMPLETE_SPECIFIC");
                  • 32
                    AssertTextEquals( locator1 = "AssetCategorization#CATEGORY", value1 = "${categoryName}");
                }
            }
          • 209
            Button.clickAdd();
            • 10
              Button.click(button = "Add");
              • 4
                Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
          • 211
            SelectFrame.selectFrameTop();
          • 213
            PageEditor.assertFragmentSidebarLoaded();
            • 904
              WaitForPageLoad();
            • 906
              AssertVisible(locator1 = "PageEditor#FRAGMENT_SIDEBAR_LOADED");
          • 215
            ControlMenu.viewHeaderTitle(headerTitle = "${pageName} *");
            • 5
              AssertTextEquals( locator1 = "ControlMenu#HEADING", value1 = "${headerTitle}");
          • 217
            PageEditor.viewFragmentEditableText( editableText = "${collectionName}", fragmentName = "Heading", id = "element-text");
            • 3612
              if (!(isSet(position))) {
              • 3613
                var position = "1";
              }
            • 3616
              PageEditor.viewFragment( fragmentName = "${fragmentName}", index = "${position}");
              • 3585
                if (!(isSet(position))) {
                • 3586
                  var position = "1";
                }
              • 3589
                AssertElementPresent( key_fragmentName = "${fragmentName}", key_index = "${position}", locator1 = "Fragment#FRAGMENT_HEADER_ANY");
            • 3620
              if (isSet(className)) {
              • 3621
                var fragmentName = "${className}";
              }
            • 3624
              else {
              • 3625
                var fragmentName = StringUtil.replace("${fragmentName}", " ", "-");
              • 3626
                var fragmentName = StringUtil.lowerCase("${fragmentName}");
              }
            • 3629
              if ("${contributed}" == "false") {
              • 3630
                ContentPages.viewFragmentText( contributed = "false", fragmentName = "${fragmentName}", position = "${position}", text = "${editableText}");
                • 311
                  if (!(isSet(position))) {
                  • 312
                    var position = "1";
                  }
                • 315
                  if ("${contributed}" == "false") {
                  • 316
                    AssertTextEquals( fragmentName = "${fragmentName}", index = "${position}", locator1 = "Fragment#EDITABLE_FIELD_ANY", value1 = "${text}");
                  }
                • 323
                  else if (("${fragmentName}" == "Content Display") || ("${fragmentName}" == "Display Page Content")) {
                  • 324
                    if (!(isSet(assetType))) {
                    • 325
                      AssertTextEquals( index = "${position}", locator1 = "Fragment#CONTENT_DISPLAY_ASSET_SUMMARY", value1 = "${text}");
                    }
                  • 331
                    else {
                    • 332
                      AssertTextEquals( assetType = "${assetType}", index = "${position}", locator1 = "Fragment#CONTENT_DISPLAY_TEXT", value1 = "${text}");
                    }
                  }
                • 340
                  else {
                  • 341
                    AssertTextEquals( fragmentName = "${fragmentName}", id = "${id}", index = "${position}", locator1 = "Fragment#CONTRIBUTED_FRAGMENT_TEXT", value1 = "${text}");
                  }
              • 3636
                if (isSet(style)) {
                • 3637
                  AssertVisible( id = "${id}", key_position = "${position}", key_style = "${style}", key_text = "${editableText}", locator1 = "Fragment#INLINE_RICH_TEXT_STYLE");
                }
              }
            • 3646
              else {
              • 3647
                ContentPages.viewFragmentText( fragmentName = "${fragmentName}", id = "${id}", position = "${position}", text = "${editableText}");
                • 311
                  if (!(isSet(position))) {
                  • 312
                    var position = "1";
                  }
                • 315
                  if ("${contributed}" == "false") {
                  • 316
                    AssertTextEquals( fragmentName = "${fragmentName}", index = "${position}", locator1 = "Fragment#EDITABLE_FIELD_ANY", value1 = "${text}");
                  }
                • 323
                  else if (("${fragmentName}" == "Content Display") || ("${fragmentName}" == "Display Page Content")) {
                  • 324
                    if (!(isSet(assetType))) {
                    • 325
                      AssertTextEquals( index = "${position}", locator1 = "Fragment#CONTENT_DISPLAY_ASSET_SUMMARY", value1 = "${text}");
                    }
                  • 331
                    else {
                    • 332
                      AssertTextEquals( assetType = "${assetType}", index = "${position}", locator1 = "Fragment#CONTENT_DISPLAY_TEXT", value1 = "${text}");
                    }
                  }
                • 340
                  else {
                  • 341
                    AssertTextEquals( fragmentName = "${fragmentName}", id = "${id}", index = "${position}", locator1 = "Fragment#CONTRIBUTED_FRAGMENT_TEXT", value1 = "${text}");
                  }
              • 3653
                if (isSet(style)) {
                • 3654
                  AssertVisible( id = "${id}", key_position = "${position}", key_style = "${style}", key_text = "${editableText}", locator1 = "Fragment#CONTRIBUTED_FRAGMENT_INLINE_RICH_TEXT_STYLE");
                }
              }
          • 222
            PageEditor.viewFragment(fragmentName = "Collection Display");
            • 3585
              if (!(isSet(position))) {
              • 3586
                var position = "1";
              }
            • 3589
              AssertElementPresent( key_fragmentName = "${fragmentName}", key_index = "${position}", locator1 = "Fragment#FRAGMENT_HEADER_ANY");
        }
      • 205
        task ("View there is no collection items shown in Collection Display") {
        • 206
          PageEditor.viewEmptyCollectionItem();
          • 3576
            AssertVisible( key_colPosition = "1", key_entryTitle = "Sample Collection Item", key_fragmentName = "Collection Display", key_rowPosition = "1", locator1 = "PageEditor#COLLECTION_ITEM_TITLE");
        • 208
          PageEditor.viewQuantityCollectionItem(quantityOfItems = "(0 Items)");
          • 4046
            AssertTextEquals( locator1 = "ControlMenu#VIEW_COLLECTION_ITEMS_BUTTON", value1 = "${quantityOfItems}");
        }
      • 211
        task ("Add a web content article based on Basic Web Content in collection page") {
        • 212
          ContentPages.addCollectionItemInCollectionPage(title = "New Basic Web Content");
          • 60
            if (isSet(itemSubtype)) {
            • 61
              Click( key_title = "${title}", locator1 = "ControlMenu#NEW_COLLECTION_PAGE_ITEM_BUTTON");
            • 65
              MenuItem.click(menuItem = "${itemSubtype}");
              • 4
                Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
            }
          • 67
            else {
            • 68
              Click( key_title = "${title}", locator1 = "ControlMenu#NEW_COLLECTION_PAGE_ITEM_BUTTON");
            }
        • 214
          WebContent.addCP( webContentContent = "Web Content Content", webContentTitle = "Web Content Title");
          • 14
            AssertVisible(locator1 = "WCEditWebContent#SIDEBAR");
          • 16
            if (isSet(webContentTitle)) {
            • 17
              PortletEntry.inputTitle(title = "${webContentTitle}");
              • 132
                Type( locator1 = "TextInput#TITLE", value1 = "${title}");
            }
          • 20
            if (isSet(webContentContent)) {
            • 21
              if (isSet(source)) {
              • 22
                CKEditor.addSourceContent(content = "${webContentContent}");
                • 69
                  Click(locator1 = "CKEditor#TOOLBAR_SOURCE_BUTTON");
                • 71
                  Type.typeCodeMirrorEditorNoError( locator1 = "CKEditor#BODY_FIELD_SOURCE_ON", value1 = "${content}");
              }
            • 24
              else {
              • 25
                CKEditor.addContentInWebContent( content = "${webContentContent}", fieldLabel = "content");
                • 21
                  SelectFrame.selectFrameNoLoading( key_fieldLabel = "${fieldLabel}", locator1 = "CKEditor#BODY_FIELD_IFRAME_WEB_CONTENT_ARTICLE");
                • 25
                  Type( locator1 = "CKEditor#BODY", value1 = "${content}");
                • 29
                  SelectFrame(value1 = "relative=top");
              }
            }
          • 31
            if (isSet(embedImage)) {
            • 32
              var key_imageFileName = "${imageFileName}";
            • 34
              ItemSelector.gotoItemSelectorViaCKEditor();
              • 246
                if (isSet(video)) {
                • 247
                  WaitForLiferayEvent.initializeLiferayEventLog();
                • 249
                  Click.pauseClickAt(locator1 = "CKEditor#TOOLBAR_VIDEO_BUTTON");
                }
              • 251
                else {
                • 252
                  Click(locator1 = "CKEditor#TOOLBAR_IMAGE_BUTTON");
                • 254
                  SelectFrame(value1 = "relative=top");
                }
            • 36
              SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
            • 38
              AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
            • 43
              AssertClick( key_siteName = "${siteName}", locator1 = "ItemSelector#SITE_SELECTOR", value1 = "${siteName}");
            • 48
              if (isSet(folderName)) {
              • 49
                LexiconCard.clickCard(card = "${folderName}");
                • 14
                  WaitForLiferayEvent.initializeLiferayEventLog();
                • 16
                  Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
              }
            • 52
              if (isSet(pendingEntry)) {
              • 53
                AssertElementNotPresent(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
              }
            • 55
              else {
              • 56
                Click(locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
              }
            }
          • 60
            if (isSet(embedVideo)) {
            • 61
              WaitForLiferayEvent.initializeLiferayEventLog();
            • 63
              Click.pauseClickAt(locator1 = "CKEditor#TOOLBAR_VIDEO_BUTTON");
            • 65
              if ("${navTab}" == "Documents and Media") {
              • 66
                ItemSelector.addVideoFromDM( depotName = "${depotName}", navTab = "${navTab}", videoShortcutTitle = "${videoShortcutTitle}");
                • 103
                  SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                • 105
                  AssertClick( key_navTab = "${navTab}", locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "${navTab}");
                • 110
                  if (isSet(depotName)) {
                  • 111
                    AssertClick( key_breadcrumbName = "Sites and Libraries", locator1 = "Breadcrumb#BREADCRUMB_ENTRY", value1 = "Sites and Libraries");
                  • 116
                    AssertClick( key_groupTab = "Asset Library", locator1 = "ItemSelector#NAVIGATION_GROUP_TAB", value1 = "Asset Library");
                  • 121
                    LexiconCard.clickCard(card = "${depotName}");
                    • 14
                      WaitForLiferayEvent.initializeLiferayEventLog();
                    • 16
                      Click.mouseDownMouseUp( key_card = "${card}", locator1 = "Card#CARD");
                  }
                • 124
                  if (isSet(videoShortcutPreview)) {
                  • 125
                    Click( key_cardTitle = "${videoShortcutTitle}", locator1 = "Icon#EYE_PREVIEW_SPECIFIC");
                  • 129
                    AssertVisible( key_videoShortcutPreview = "${videoShortcutPreview}", locator1 = "DocumentsAndMediaDocument#VIDEO_SHORTCUT_PREVIEW");
                  • 133
                    AssertTextEquals( key_imageFileName = "${videoShortcutTitle}", locator1 = "ItemSelector#VIEWER_FOOTER_IMAGE", value1 = "${videoShortcutTitle}");
                  • 138
                    AssertClick( locator1 = "ItemSelector#ADD_BUTTON", value1 = "Add");
                  }
                • 142
                  else {
                  • 143
                    Click( key_imageFileName = "${videoShortcutTitle}", locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                  }
                • 148
                  SelectFrameTop(value1 = "relative=top");
              }
            • 71
              else if (isSet(videoURL)) {
              • 72
                ItemSelector.addVideo( extractedVideoShortcutTitle = "${extractedVideoShortcutTitle}", videoShortcutDescription = "${videoShortcutDescription}", videoShortcutPreview = "${videoShortcutPreview}", videoShortcutTitle = "${videoShortcutTitle}", videoURL = "${videoURL}");
                • 81
                  SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                • 83
                  AssertClick( key_navTab = "Documents and Media", locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "Documents and Media");
                • 88
                  VideoShortcut.addCP( extractedVideoShortcutTitle = "${extractedVideoShortcutTitle}", videoShortcutDescription = "${videoShortcutDescription}", videoShortcutPreview = "${videoShortcutPreview}", videoShortcutTitle = "${videoShortcutTitle}", videoURL = "${videoURL}");
                  • 4
                    if (!(isSet(skipNavigation))) {
                    • 5
                      DMNavigator.gotoAddDocumentTypeCP(dmDocumentTypeName = "External Video Shortcut");
                      • 3
                        var dmDocumentTypeName = "File Upload";
                      • 16
                        LexiconEntry.gotoAdd();
                        • 51
                          WaitForPageLoad();
                        • 53
                          Click(locator1 = "Button#PLUS");
                      • 18
                        var key_dmDocumentTypeName = "${dmDocumentTypeName}";
                      • 20
                        if ("${dmDocumentTypeName}" == "External Video Shortcut") {
                        • 21
                          AssertVisible( key_text = "video", locator1 = "Icon#ANY");
                        }
                      • 26
                        if ("${dmDocumentTypeName}" == "Google Drive Shortcut") {
                        • 27
                          AssertVisible( key_text = "google-drive", locator1 = "Icon#ANY");
                        }
                      • 32
                        MenuItem.click(menuItem = "${dmDocumentTypeName}");
                        • 4
                          Click( key_menuItem = "${menuItem}", locator1 = "MenuItem#ANY_MENU_ITEM");
                    }
                  • 8
                    Type( key_text = "Video URL", locator1 = "TextInput#ANY", value1 = "${videoURL}");
                  • 13
                    Pause(locator1 = "5000");
                  • 15
                    if (isSet(videoShortcutPreview)) {
                    • 16
                      AssertVisible( key_videoShortcutPreview = "${videoShortcutPreview}", locator1 = "DocumentsAndMediaDocument#VIDEO_SHORTCUT_PREVIEW");
                    }
                  • 21
                    if (isSet(extractedVideoShortcutTitle)) {
                    • 22
                      var titleText = selenium.getElementValue("TextInput#TITLE");
                    • 24
                      if ("${extractedVideoShortcutTitle}" == "${titleText}") {
                      • 25
                        echo("This is a correct title.");
                      }
                    • 27
                      else {
                      • 28
                        fail("FAIL!");
                      }
                    }
                  • 32
                    if (isSet(videoShortcutTitle)) {
                    • 33
                      PortletEntry.inputTitle(title = "${videoShortcutTitle}");
                      • 132
                        Type( locator1 = "TextInput#TITLE", value1 = "${title}");
                    }
                  • 36
                    if (isSet(videoShortcutDescription)) {
                    • 37
                      PortletEntry.inputDescription(description = "${videoShortcutDescription}");
                      • 86
                        Type( locator1 = "TextArea#DESCRIPTION", value1 = "${description}");
                    }
                  • 40
                    if (isSet(categoryName)) {
                    • 41
                      var key_categoryName = "${categoryName}";
                    • 43
                      Panel.expandPanel(panel = "Categorization");
                      • 4
                        Portlet.waitForForm();
                        • 684
                          AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                      • 6
                        var key_panel = "${panel}";
                      • 8
                        AssertVisible( key_panel = "${panel}", locator1 = "Panel#PANEL");
                      • 12
                        if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                        • 13
                          AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = "${panel}");
                        }
                      • 18
                        AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                    • 45
                      AssetCategorization.addCategory( categoryName = "${categoryName}", vocabularyName = "${vocabularyName}");
                      • 23
                        var key_categoryName = "${categoryName}";
                      • 25
                        Type( key_vocabularyName = "${vocabularyName}", locator1 = "AssetCategorization#CATEGORIES_FIELD", value1 = "${categoryName}");
                      • 30
                        Click.mouseDownMouseUp(locator1 = "AssetCategorization#CATEGORY_AUTOCOMPLETE_SPECIFIC");
                      • 32
                        AssertTextEquals( locator1 = "AssetCategorization#CATEGORY", value1 = "${categoryName}");
                    }
                  • 50
                    if (isSet(tagNameList)) {
                    • 51
                      Panel.expandPanel(panel = "Categorization");
                      • 4
                        Portlet.waitForForm();
                        • 684
                          AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
                      • 6
                        var key_panel = "${panel}";
                      • 8
                        AssertVisible( key_panel = "${panel}", locator1 = "Panel#PANEL");
                      • 12
                        if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                        • 13
                          AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = "${panel}");
                        }
                      • 18
                        AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
                    • 53
                      for (var tagName : list "${tagNameList}") {
                      • 54
                        AssetCategorization.addTag(tagName = "${tagName}");
                        • 74
                          AssetCategorization._addTag(tagName = "${tagName}");
                          • 4
                            Type( locator1 = "AssetCategorization#TAGS_FIELD", value1 = "${tagName}");
                          • 8
                            ScrollWebElementIntoView(locator1 = "AssetCategorization#TAGS_FIELD");
                          • 10
                            if (IsElementPresent(key_tagName = "${tagName}", locator1 = "AssetCategorization#TAG_AUTOCOMPLETE_SPECIFIC")) {
                            • 11
                              Click( key_tagName = "${tagName}", locator1 = "AssetCategorization#TAG_AUTOCOMPLETE_SPECIFIC");
                            }
                          • 15
                            else {
                            • 16
                              KeyPress( locator1 = "AssetCategorization#TAGS_FIELD", value1 = ",");
                            }
                        • 76
                          AssertTextEquals( key_tagName = "${tagName}", locator1 = "AssetCategorization#TAG", value1 = "${tagName}");
                      }
                    }
                  • 58
                    PortletEntry.publish();
                    • 138
                      Button.clickPublish();
                      • 86
                        ScrollWebElementIntoView( key_text = "Publish", locator1 = "Button#ANY");
                      • 90
                        Button.click(button = "Publish");
                        • 4
                          Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                    • 140
                      Alert.viewSuccessMessage();
                      • 110
                        VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
                • 95
                  Click( key_imageFileName = "${videoShortcutTitle}", locator1 = "ItemSelector#SELECT_FILE_IMAGE_CARD");
                • 99
                  SelectFrameTop(value1 = "relative=top");
              }
            • 79
              else {
              • 80
                ItemSelector.addVideoFromURL( navTab = "${navTab}", videoSourceURL = "${embedVideo}");
                • 152
                  var key_navTab = "${navTab}";
                • 154
                  SelectFrame(locator1 = "ItemSelector#ITEM_SELECTOR_IFRAME");
                • 156
                  AssertClick( locator1 = "ItemSelector#NAVIGATION_SPECIFIC_TAB", value1 = "URL");
                • 160
                  AssertElementPresent(locator1 = "ItemSelector#URL_LABEL");
                • 161
                  AssertElementNotPresent(locator1 = "IFrame#EXTERNAL_VIDEO_IFRAME");
                • 163
                  Type( locator1 = "TextInput#VIDEO_URL", value1 = "${videoSourceURL}");
                • 167
                  Pause(locator1 = "3000");
                • 169
                  if (!(isSet(unpublish))) {
                  • 170
                    AssertElementPresent.pauseAssertVisible( key_text = "Add", locator1 = "Button#ANY_ENABLED");
                  • 174
                    Button.clickAdd();
                    • 10
                      Button.click(button = "Add");
                      • 4
                        Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
                  }
                • 177
                  SelectFrameTop(value1 = "relative=top");
              }
            }
          • 86
            if (isSet(viewableBy)) {
            • 87
              Panel.expandPanel(panel = "Permissions");
              • 4
                Portlet.waitForForm();
                • 684
                  AssertElementNotPresent(locator1 = "//fieldset[@disabled]");
              • 6
                var key_panel = "${panel}";
              • 8
                AssertVisible( key_panel = "${panel}", locator1 = "Panel#PANEL");
              • 12
                if ((IsElementPresent(locator1 = "Panel#PANEL_COLLAPSED")) && (IsVisible(locator1 = "Panel#PANEL_COLLAPSED"))) {
                • 13
                  AssertClick( locator1 = "Panel#PANEL_COLLAPSED", value1 = "${panel}");
                }
              • 18
                AssertElementPresent(locator1 = "Panel#PANEL_EXPANDED");
            • 89
              Select( locator1 = "Select#PERMISSIONS", value1 = "${viewableBy}");
            }
          • 94
            if (isSet(webContentId)) {
            • 95
              Uncheck(locator1 = "WCEditWebContent#AUTOGENERATEID");
            • 97
              Type( locator1 = "WCEditWebContent#WEB_CONTENT_ID", value1 = "${webContentId}");
            }
        • 218
          PortletEntry.publish();
          • 138
            Button.clickPublish();
            • 86
              ScrollWebElementIntoView( key_text = "Publish", locator1 = "Button#ANY");
            • 90
              Button.click(button = "Publish");
              • 4
                Click.mouseDownMouseUp( key_text = "${button}", locator1 = "Button#ANY");
          • 140
            Alert.viewSuccessMessage();
            • 110
              VerifyElementPresent(locator1 = "Message#SUCCESS_DISMISSIBLE");
        }
      • 221
        task ("View the web content article is shown in Collection Display") {
        • 222
          PageEditor.viewCollectionItem(assetTitle = "Web Content Title");
          • 3292
            if (!(isSet(column))) {
            • 3293
              var column = "1";
            }
          • 3296
            if (!(isSet(row))) {
            • 3297
              var row = "1";
            }
          • 3300
            AssertVisible( key_colPosition = "${column}", key_entryTitle = "${assetTitle}", key_fragmentName = "Collection Display", key_rowPosition = "${row}", locator1 = "PageEditor#COLLECTION_ITEM_TITLE");
        • 224
          PageEditor.viewQuantityCollectionItem(quantityOfItems = "(1 Items)");
          • 4046
            AssertTextEquals( locator1 = "ControlMenu#VIEW_COLLECTION_ITEMS_BUTTON", value1 = "${quantityOfItems}");
        }
      }
    • 20
      tearDown {
      • 21
        var testPortalInstance = PropsUtil.get("test.portal.instance");
      • 23
        if ("${testPortalInstance}" == "true") {
        • 24
          PortalInstances.tearDownCP();
          • 93
            JSONUser.tearDownNonAdminUsers(authenticationMethod = "${authenticationMethod}");
            • 265
              var userIds = JSONUserAPI._getUserIds(authenticationMethod = "${authenticationMethod}");
              • 276
                var companyId = JSONCompany.getCompanyId(authenticationMethod = "${authenticationMethod}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 51
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 52
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 54
                      if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                      • 55
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 57
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 73
                          Variables.assertDefined(parameterList = "${portalURL}");
                          • 5
                            if (contains("${parameterList}","{parameterList}")) {
                            • 6
                              fail("Please define a parameter list in 'parameterList'");
                            }
                          • 9
                            for (var parameter : list "${parameterList}") {
                            • 13
                              var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                            • 17
                              if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                              • 18
                                fail("Please set '${parameter}'");
                              }
                            }
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 76
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 78
                          return "${portalInstanceName}";
                      • 59
                        return "${portalInstanceName}";
                      }
                    • 61
                      else {
                      • 62
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "[email protected]";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 35
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 37
                  return "${companyId}";
              • 278
                if (isSet(specificURL)) {
                • 279
                  var portalURL = "${specificURL}";
                }
              • 281
                else {
                • 282
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                }
              • 285
                if ("${authenticationMethod}" == "By Screen Name") {
                • 286
                  var userName = "test";
                }
              • 288
                else {
                • 289
                  var userName = "[email protected]";
                }
              • 292
                var curl = ''' ${portalURL}/api/jsonws/user/get-company-users \ -u ${userName}:test \ -d companyId=${companyId} \ -d \ -d ''';
              • 300
                var userIds = JSONCurlUtil.post("${curl}", "$..['userId']");
              • 302
                return "${userIds}";
            • 267
              for (var userId : list "${userIds}") {
              • 268
                var currentEmailAddress = JSONUserGetter.getEmailAddress( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                • 26
                  Variables.assertDefined(parameterList = "${userId}");
                  • 5
                    if (contains("${parameterList}","{parameterList}")) {
                    • 6
                      fail("Please define a parameter list in 'parameterList'");
                    }
                  • 9
                    for (var parameter : list "${parameterList}") {
                    • 13
                      var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                    • 17
                      if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                      • 18
                        fail("Please set '${parameter}'");
                      }
                    }
                • 28
                  var curl = JSONUserGetter._getUserByIdCurl( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                  • 4
                    Variables.assertDefined(parameterList = "${userId}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 6
                    var companyId = JSONCompany.getCompanyId(authenticationMethod = "${authenticationMethod}");
                    • 4
                      if (!(isSet(portalInstanceName))) {
                      • 5
                        var portalInstanceName = JSONCompany.getPortalInstanceName();
                        • 51
                          var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                        • 52
                          var testPortalInstance = PropsUtil.get("test.portal.instance");
                        • 54
                          if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                          • 55
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          • 57
                            var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                            • 73
                              Variables.assertDefined(parameterList = "${portalURL}");
                              • 5
                                if (contains("${parameterList}","{parameterList}")) {
                                • 6
                                  fail("Please define a parameter list in 'parameterList'");
                                }
                              • 9
                                for (var parameter : list "${parameterList}") {
                                • 13
                                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                • 17
                                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                  • 18
                                    fail("Please set '${parameter}'");
                                  }
                                }
                            • 75
                              var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                            • 76
                              var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                            • 78
                              return "${portalInstanceName}";
                          • 59
                            return "${portalInstanceName}";
                          }
                        • 61
                          else {
                          • 62
                            return "localhost";
                          }
                      }
                    • 8
                      if (!(isSet(portalURL))) {
                      • 9
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      }
                    • 12
                      if (!(isSet(creatorEmailAddress))) {
                      • 13
                        if ("${authenticationMethod}" == "By Screen Name") {
                        • 14
                          if (!(isSet(userScreenName))) {
                          • 15
                            var creatorEmailAddress = "test";
                          }
                        • 17
                          else {
                          • 18
                            var creatorEmailAddress = "${userScreenName}";
                          }
                        }
                      • 21
                        else {
                        • 22
                          var creatorEmailAddress = "[email protected]";
                        }
                      }
                    • 26
                      if (!(isSet(creatorPassword))) {
                      • 27
                        var creatorPassword = "test";
                      }
                    • 30
                      var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                    • 35
                      var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                    • 37
                      return "${companyId}";
                  • 8
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  • 10
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 11
                      var userName = "test";
                    }
                  • 13
                    else {
                    • 14
                      var userName = "[email protected]";
                    }
                  • 17
                    var curl = ''' ${portalURL}/api/jsonws/user/get-user-by-id/user-id/${userId} \ -u ${userName}:test \ ''';
                  • 22
                    return "${curl}";
                • 32
                  var userEmailAddress = JSONCurlUtil.get("${curl}", "$['emailAddress']");
                • 34
                  return "${userEmailAddress}";
              • 272
                if ("${currentEmailAddress}" != "[email protected]") {
                • 273
                  JSONUser.deleteUserByUserId( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                  • 205
                    Variables.assertDefined(parameterList = "${userId}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 207
                    JSONUserAPI._deleteUser( authenticationMethod = "${authenticationMethod}", userId = "${userId}");
                    • 139
                      Variables.assertDefined(parameterList = "${userId}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 141
                      if (isSet(specificURL)) {
                      • 142
                        var portalURL = "${specificURL}";
                      }
                    • 144
                      else {
                      • 145
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      }
                    • 148
                      if ("${authenticationMethod}" == "By Screen Name") {
                      • 149
                        var userName = "test";
                      }
                    • 151
                      else {
                      • 152
                        var userName = "[email protected]";
                      }
                    • 155
                      var curl = ''' ${portalURL}/api/jsonws/user/delete-user \ -u ${userName}:test \ -d userId=${userId} ''';
                    • 161
                      com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
                }
              }
          • 95
            HeadlessPortalInstanceAPI.cleanAllPortalInstances(authenticationMethod = "${authenticationMethod}");
            • 108
              var portalInstanceJSON = HeadlessPortalInstanceAPI._getPortalInstances(authenticationMethod = "${authenticationMethod}");
              • 5
                var portalURL = JSONCompany.getDefaultPortalURL();
                • 41
                  var portalURL = PropsUtil.get("default.portal.url");
                • 43
                  if (!(contains("${portalURL}", "http"))) {
                  • 44
                    var portalURL = "http://${portalURL}";
                  }
                • 47
                  return "${portalURL}";
              • 7
                if ("${authenticationMethod}" == "By Screen Name") {
                • 8
                  var userName = "test";
                }
              • 10
                else {
                • 11
                  var userName = "[email protected]";
                }
              • 14
                var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances \ -u ${userName}:test \ -H Content-Type: application/json ''';
              • 20
                var JSON = JSONCurlUtil.get("${curl}");
              • 22
                return "${JSON}";
            • 110
              var portalInstanceIds = JSONUtil.getWithJSONPath("${portalInstanceJSON}","$.items..portalInstanceId");
            • 112
              for (var portalInstanceId : list "${portalInstanceIds}") {
              • 113
                if ("${portalInstanceId}" != "liferay.com") {
                • 114
                  HeadlessPortalInstanceAPI.deletePortalInstance( authenticationMethod = "${authenticationMethod}", portalInstanceId = "${portalInstanceId}");
                  • 123
                    Variables.assertDefined(parameterList = "${portalInstanceId}");
                    • 5
                      if (contains("${parameterList}","{parameterList}")) {
                      • 6
                        fail("Please define a parameter list in 'parameterList'");
                      }
                    • 9
                      for (var parameter : list "${parameterList}") {
                      • 13
                        var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                      • 17
                        if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                        • 18
                          fail("Please set '${parameter}'");
                        }
                      }
                  • 125
                    var portalURL = JSONCompany.getDefaultPortalURL();
                    • 41
                      var portalURL = PropsUtil.get("default.portal.url");
                    • 43
                      if (!(contains("${portalURL}", "http"))) {
                      • 44
                        var portalURL = "http://${portalURL}";
                      }
                    • 47
                      return "${portalURL}";
                  • 127
                    var portalInstanceId = StringUtil.replace("${portalInstanceId}", " ", "%20");
                  • 129
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 130
                      var userName = "test";
                    }
                  • 132
                    else {
                    • 133
                      var userName = "[email protected]";
                    }
                  • 136
                    var curl = ''' ${portalURL}/o/headless-portal-instances/v1.0/portal-instances/${portalInstanceId} \ -u ${userName}:test \ -H Content-Type: application/json ''';
                  • 142
                    JSONCurlUtil.delete("${curl}");
                }
              }
        }
      • 27
        else {
        • 28
          JSONGroup.deleteGroupByName(groupName = "Test Site Name");
          • 93
            Variables.assertDefined(parameterList = "${groupName}");
            • 5
              if (contains("${parameterList}","{parameterList}")) {
              • 6
                fail("Please define a parameter list in 'parameterList'");
              }
            • 9
              for (var parameter : list "${parameterList}") {
              • 13
                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
              • 17
                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                • 18
                  fail("Please set '${parameter}'");
                }
              }
          • 95
            var groupId = JSONGroupSetter.setGroupId( groupName = "${groupName}", portalURL = "${portalURL}");
            • 44
              Variables.assertDefined(parameterList = "${groupName}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 46
              if (!(isSet(site))) {
              • 47
                var site = "true";
              }
            • 50
              var groupId = JSONGroupAPI._getGroupIdByName(groupName = "${groupName}", parentGroupName = "${parentGroupName}", portalURL = "${portalURL}", site = "${site}");
              • 207
                Variables.assertDefined(parameterList = "${groupName},${site}");
                • 5
                  if (contains("${parameterList}","{parameterList}")) {
                  • 6
                    fail("Please define a parameter list in 'parameterList'");
                  }
                • 9
                  for (var parameter : list "${parameterList}") {
                  • 13
                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                  • 17
                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                    • 18
                      fail("Please set '${parameter}'");
                    }
                  }
              • 209
                if (!(isSet(portalURL))) {
                • 210
                  var portalURL = JSONCompany.getPortalURL();
                  • 67
                    var portalURL = PropsUtil.get("portal.url");
                  • 69
                    return "${portalURL}";
                }
              • 213
                var companyId = JSONCompany.getCompanyId(portalURL = "${portalURL}");
                • 4
                  if (!(isSet(portalInstanceName))) {
                  • 5
                    var portalInstanceName = JSONCompany.getPortalInstanceName();
                    • 51
                      var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                    • 52
                      var testPortalInstance = PropsUtil.get("test.portal.instance");
                    • 54
                      if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                      • 55
                        var portalURL = JSONCompany.getPortalURL();
                        • 67
                          var portalURL = PropsUtil.get("portal.url");
                        • 69
                          return "${portalURL}";
                      • 57
                        var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                        • 73
                          Variables.assertDefined(parameterList = "${portalURL}");
                          • 5
                            if (contains("${parameterList}","{parameterList}")) {
                            • 6
                              fail("Please define a parameter list in 'parameterList'");
                            }
                          • 9
                            for (var parameter : list "${parameterList}") {
                            • 13
                              var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                            • 17
                              if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                              • 18
                                fail("Please set '${parameter}'");
                              }
                            }
                        • 75
                          var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                        • 76
                          var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                        • 78
                          return "${portalInstanceName}";
                      • 59
                        return "${portalInstanceName}";
                      }
                    • 61
                      else {
                      • 62
                        return "localhost";
                      }
                  }
                • 8
                  if (!(isSet(portalURL))) {
                  • 9
                    var portalURL = JSONCompany.getPortalURL();
                    • 67
                      var portalURL = PropsUtil.get("portal.url");
                    • 69
                      return "${portalURL}";
                  }
                • 12
                  if (!(isSet(creatorEmailAddress))) {
                  • 13
                    if ("${authenticationMethod}" == "By Screen Name") {
                    • 14
                      if (!(isSet(userScreenName))) {
                      • 15
                        var creatorEmailAddress = "test";
                      }
                    • 17
                      else {
                      • 18
                        var creatorEmailAddress = "${userScreenName}";
                      }
                    }
                  • 21
                    else {
                    • 22
                      var creatorEmailAddress = "[email protected]";
                    }
                  }
                • 26
                  if (!(isSet(creatorPassword))) {
                  • 27
                    var creatorPassword = "test";
                  }
                • 30
                  var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                • 35
                  var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                • 37
                  return "${companyId}";
              • 215
                var parentGroupId = JSONGroupSetter.setParentGroupId(parentGroupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                • 82
                  if (isSet(parentGroupName)) {
                  • 83
                    var parentGroupId = JSONGroupAPI._getParentGroupIdByName(groupName = "${parentGroupName}", grandParentGroupName = "${grandParentGroupName}");
                    • 253
                      Variables.assertDefined(parameterList = "${groupName}");
                      • 5
                        if (contains("${parameterList}","{parameterList}")) {
                        • 6
                          fail("Please define a parameter list in 'parameterList'");
                        }
                      • 9
                        for (var parameter : list "${parameterList}") {
                        • 13
                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                        • 17
                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                          • 18
                            fail("Please set '${parameter}'");
                          }
                        }
                    • 255
                      var companyId = JSONCompany.getCompanyId();
                      • 4
                        if (!(isSet(portalInstanceName))) {
                        • 5
                          var portalInstanceName = JSONCompany.getPortalInstanceName();
                          • 51
                            var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                          • 52
                            var testPortalInstance = PropsUtil.get("test.portal.instance");
                          • 54
                            if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                            • 55
                              var portalURL = JSONCompany.getPortalURL();
                              • 67
                                var portalURL = PropsUtil.get("portal.url");
                              • 69
                                return "${portalURL}";
                            • 57
                              var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                              • 73
                                Variables.assertDefined(parameterList = "${portalURL}");
                                • 5
                                  if (contains("${parameterList}","{parameterList}")) {
                                  • 6
                                    fail("Please define a parameter list in 'parameterList'");
                                  }
                                • 9
                                  for (var parameter : list "${parameterList}") {
                                  • 13
                                    var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                  • 17
                                    if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                    • 18
                                      fail("Please set '${parameter}'");
                                    }
                                  }
                              • 75
                                var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                              • 76
                                var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                              • 78
                                return "${portalInstanceName}";
                            • 59
                              return "${portalInstanceName}";
                            }
                          • 61
                            else {
                            • 62
                              return "localhost";
                            }
                        }
                      • 8
                        if (!(isSet(portalURL))) {
                        • 9
                          var portalURL = JSONCompany.getPortalURL();
                          • 67
                            var portalURL = PropsUtil.get("portal.url");
                          • 69
                            return "${portalURL}";
                        }
                      • 12
                        if (!(isSet(creatorEmailAddress))) {
                        • 13
                          if ("${authenticationMethod}" == "By Screen Name") {
                          • 14
                            if (!(isSet(userScreenName))) {
                            • 15
                              var creatorEmailAddress = "test";
                            }
                          • 17
                            else {
                            • 18
                              var creatorEmailAddress = "${userScreenName}";
                            }
                          }
                        • 21
                          else {
                          • 22
                            var creatorEmailAddress = "[email protected]";
                          }
                        }
                      • 26
                        if (!(isSet(creatorPassword))) {
                        • 27
                          var creatorPassword = "test";
                        }
                      • 30
                        var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                      • 35
                        var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                      • 37
                        return "${companyId}";
                    • 257
                      var grandParentGroupId = JSONGroupSetter.setGrandParentGroupId(grandParentGroupName = "${grandParentGroupName}");
                      • 16
                        if (isSet(grandParentGroupName)) {
                        • 17
                          if (!(isSet(site))) {
                          • 18
                            var site = "true";
                          }
                        • 21
                          var grandParentGroupId = JSONGroupAPI._getGrandParentGroupIdByName(groupName = "${grandParentGroupName}", site = "${site}");
                          • 154
                            Variables.assertDefined(parameterList = "${groupName}");
                            • 5
                              if (contains("${parameterList}","{parameterList}")) {
                              • 6
                                fail("Please define a parameter list in 'parameterList'");
                              }
                            • 9
                              for (var parameter : list "${parameterList}") {
                              • 13
                                var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                              • 17
                                if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                • 18
                                  fail("Please set '${parameter}'");
                                }
                              }
                          • 156
                            var companyId = JSONCompany.getCompanyId();
                            • 4
                              if (!(isSet(portalInstanceName))) {
                              • 5
                                var portalInstanceName = JSONCompany.getPortalInstanceName();
                                • 51
                                  var testNameSkipPortalInstance = PropsUtil.get("test.name.skip.portal.instance");
                                • 52
                                  var testPortalInstance = PropsUtil.get("test.portal.instance");
                                • 54
                                  if (("${testPortalInstance}" == "true") && (!(IsTestName(locator1 = "", value1 = "${testNameSkipPortalInstance}")))) {
                                  • 55
                                    var portalURL = JSONCompany.getPortalURL();
                                    • 67
                                      var portalURL = PropsUtil.get("portal.url");
                                    • 69
                                      return "${portalURL}";
                                  • 57
                                    var portalInstanceName = JSONCompany.parsePortalInstanceURL(portalURL = "${portalURL}");
                                    • 73
                                      Variables.assertDefined(parameterList = "${portalURL}");
                                      • 5
                                        if (contains("${parameterList}","{parameterList}")) {
                                        • 6
                                          fail("Please define a parameter list in 'parameterList'");
                                        }
                                      • 9
                                        for (var parameter : list "${parameterList}") {
                                        • 13
                                          var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                                        • 17
                                          if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                                          • 18
                                            fail("Please set '${parameter}'");
                                          }
                                        }
                                    • 75
                                      var portalInstanceName = StringUtil.replace("${portalURL}", "http://", "");
                                    • 76
                                      var portalInstanceName = StringUtil.replace("${portalInstanceName}", ":8080", "");
                                    • 78
                                      return "${portalInstanceName}";
                                  • 59
                                    return "${portalInstanceName}";
                                  }
                                • 61
                                  else {
                                  • 62
                                    return "localhost";
                                  }
                              }
                            • 8
                              if (!(isSet(portalURL))) {
                              • 9
                                var portalURL = JSONCompany.getPortalURL();
                                • 67
                                  var portalURL = PropsUtil.get("portal.url");
                                • 69
                                  return "${portalURL}";
                              }
                            • 12
                              if (!(isSet(creatorEmailAddress))) {
                              • 13
                                if ("${authenticationMethod}" == "By Screen Name") {
                                • 14
                                  if (!(isSet(userScreenName))) {
                                  • 15
                                    var creatorEmailAddress = "test";
                                  }
                                • 17
                                  else {
                                  • 18
                                    var creatorEmailAddress = "${userScreenName}";
                                  }
                                }
                              • 21
                                else {
                                • 22
                                  var creatorEmailAddress = "[email protected]";
                                }
                              }
                            • 26
                              if (!(isSet(creatorPassword))) {
                              • 27
                                var creatorPassword = "test";
                              }
                            • 30
                              var curl = ''' ${portalURL}/api/jsonws/company/get-company-by-virtual-host/virtual-host/${portalInstanceName} \ -u ${creatorEmailAddress}:${creatorPassword} ''';
                            • 35
                              var companyId = JSONCurlUtil.get("${curl}", "$['companyId']");
                            • 37
                              return "${companyId}";
                          • 158
                            var portalURL = JSONCompany.getPortalURL();
                            • 67
                              var portalURL = PropsUtil.get("portal.url");
                            • 69
                              return "${portalURL}";
                          • 160
                            if (!(isSet(site))) {
                            • 161
                              var site = "true";
                            }
                          • 164
                            var curl = ''' ${portalURL}/api/jsonws/group/get-groups \ -u [email protected]:test \ -d companyId=${companyId} \ -d parentGroupId=0 \ -d site=${site} ''';
                          • 172
                            var groupId = JSONCurlUtil.post("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                          • 174
                            if ("${groupId}" == "") {
                            • 175
                              fail("FAIL. Cannot find group.");
                            }
                          • 178
                            return "${groupId}";
                        }
                      • 23
                        else {
                        • 24
                          var grandParentGroupId = "0";
                        }
                      • 27
                        return "${grandParentGroupId}";
                    • 259
                      var portalURL = JSONCompany.getPortalURL();
                      • 67
                        var portalURL = PropsUtil.get("portal.url");
                      • 69
                        return "${portalURL}";
                    • 261
                      var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${grandParentGroupId}/site/true \ -u [email protected]:test ''';
                    • 266
                      var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
                    • 268
                      if ("${groupId}" == "") {
                      • 269
                        fail("FAIL. Cannot find group.");
                      }
                    • 272
                      return "${groupId}";
                  }
                • 85
                  else {
                  • 86
                    var parentGroupId = "0";
                  }
                • 89
                  return "${parentGroupId}";
              • 217
                var curl = ''' ${portalURL}/api/jsonws/group/get-groups/company-id/${companyId}/parent-group-id/${parentGroupId}/site/${site} \ -u [email protected]:test ''';
              • 222
                var groupId = JSONCurlUtil.get("${curl}", "$.[?(@['nameCurrentValue'] == '${groupName}')]['groupId']");
              • 224
                if ("${groupId}" == "") {
                • 225
                  fail("FAIL. Cannot find group.");
                }
              • 228
                echo("## * GroupId: ${groupId}");
              • 230
                return "${groupId}";
            • 52
              return "${groupId}";
          • 99
            JSONGroupAPI._deleteGroup( groupId = "${groupId}", portalURL = "${portalURL}");
            • 79
              Variables.assertDefined(parameterList = "${groupId}");
              • 5
                if (contains("${parameterList}","{parameterList}")) {
                • 6
                  fail("Please define a parameter list in 'parameterList'");
                }
              • 9
                for (var parameter : list "${parameterList}") {
                • 13
                  var undefined = StringUtil.matches("${parameter}", "\$\{[^\$\{\s]*\}");
                • 17
                  if (("${undefined}" == "true") && ("${parameter}" != "false")) {
                  • 18
                    fail("Please set '${parameter}'");
                  }
                }
            • 81
              if (!(isSet(portalURL))) {
              • 82
                var portalURL = JSONCompany.getPortalURL();
                • 67
                  var portalURL = PropsUtil.get("portal.url");
                • 69
                  return "${portalURL}";
              }
            • 85
              var curl = ''' ${portalURL}/api/jsonws/group/delete-group \ -u [email protected]:test \ -d groupId=${groupId} ''';
            • 91
              com.liferay.poshi.runner.util.JSONCurlUtil.post("${curl}");
        }
      }