multipleVersionPublication
open restAPI/systemLog?token=dolog&level=INFO&message=----- Selenium multipleVersionPublication
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1@view_documents
mouseDown link=New
clickAndWait link=Note
type document_create:nxl_heading:nxw_title note to be versionned and published
type document_create:nxl_heading:nxw_description the description
clickAndWait document_create:button_create
clickAndWait link=Publish
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishCommandLink
waitForA4jRequest 10000
clickAndWait link=Edit
click document_edit:versioningOptionInstanceId:2
type document_edit:nxl_heading:nxw_title note to be versionned and published v2
clickAndWait //input[@value="Save"]
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent 1.0
verifyTextNotPresent 2.0
verifyTextPresent This document is published
open logout
type username bree
type password bree1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent This document is published
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1/note-to-be-versionned-an@view_documents
clickAndWait link=Publish
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishCommandLink
waitForA4jRequest 10000
verifyTextPresent 1.0
verifyTextPresent 2.0
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 1.0
verifyTextPresent 2.0
clickAndWait link=note to be versionned and published
verifyTextPresent This document is published
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
clickAndWait link=note to be versionned and published v2
assertTextPresent This document is waiting for a publication approval
open logout
type username linnet
type password linnet1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 1.0
verifyTextNotPresent 2.0
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent This document is published
verifyTextPresent 1.0
verifyTextNotPresent 2.0
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Dashboard
verifyTextPresent Publish document
clickAndWait link=note to be versionned and published v2
type document_view:nxl_note_summary_layout:rejectPublishingComment doc is ok
clickAndWait //input[@value="Approve"]
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 2.0
verifyTextNotPresent 1.0
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty. There are no tasks that require your intervention.
open logout
type username linnet
type password linnet1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
clickAndWait link=note to be versionned and published v2
verifyTextPresent 2.0
verifyTextNotPresent 1.0
verifyTextPresent This document is published
open logout
type username Administrator
type password Administrator
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
click CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document
waitForEditable //input[@value="Unpublish"] 10000
clickAndWait //input[@value="Unpublish"]
verifyTextPresent This folder contains no document.
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1@view_documents
click CHILDREN_DOCUMENT_LIST:nxl_document_listing_1:nxw_listing_selection_box_with_current_document_1
waitForEditable //input[@value="Delete"] 10000
chooseOkOnNextConfirmation
clickAndWait //input[@value="Delete"]
assertConfirmation Delete selected document(s)?
clickAndWait link=Manage
clickAndWait link=Trash
click CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document
waitForEditable //input[@value="Permanent delete"] 10000
clickAndWait //input[@value="Permanent delete"]
assertConfirmation Permanently delete selected document(s)?
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1@view_documents
mouseDown link=New
clickAndWait link=Note
type document_create:nxl_heading:nxw_title note to be versionned and published
type document_create:nxl_heading:nxw_description the description
clickAndWait document_create:button_create
clickAndWait link=Publish
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishCommandLink
waitForA4jRequest 10000
clickAndWait link=Edit
click document_edit:versioningOptionInstanceId:2
type document_edit:nxl_heading:nxw_title note to be versionned and published v2
clickAndWait //input[@value="Save"]
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent 1.0
verifyTextNotPresent 2.0
verifyTextPresent This document is published
open logout
type username bree
type password bree1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent This document is published
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1/note-to-be-versionned-an@view_documents
clickAndWait link=Publish
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishCommandLink
waitForA4jRequest 10000
verifyTextPresent 1.0
verifyTextPresent 2.0
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 1.0
verifyTextPresent 2.0
clickAndWait link=note to be versionned and published
verifyTextPresent This document is published
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
clickAndWait link=note to be versionned and published v2
assertTextPresent This document is waiting for a publication approval
open logout
type username linnet
type password linnet1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 1.0
verifyTextNotPresent 2.0
open nxpath/default/default-domain/sections/testsection1/testsection2/note-to-be-versionned-an@view_documents
verifyTextPresent This document is published
verifyTextPresent 1.0
verifyTextNotPresent 2.0
open logout
type username jdoe
type password jdoe1
clickAndWait Submit
clickAndWait link=Dashboard
verifyTextPresent Publish document
clickAndWait link=note to be versionned and published v2
verifyTextPresent This document is waiting for a publication approval
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1/note-to-be-versionned-an@view_documents
clickAndWait link=Publish
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishTreeNode:handle:img:collapsed
waitForA4jRequest 10000
watchA4jRequests
click publishTreeForm:publishTree:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0:publishRecursiveAdaptor:0::publishCommandLink
waitForA4jRequest 10000
assertTextPresent 2.0
assertTextNotPresent 1.0
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
verifyTextPresent 2.0
verifyTextNotPresent 1.0
clickAndWait link=Dashboard
verifyTextPresent Your dashboard is empty. There are no tasks that require your intervention.
open logout
type username linnet
type password linnet1
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
clickAndWait link=note to be versionned and published v2
verifyTextPresent 2.0
verifyTextNotPresent 1.0
verifyTextPresent This document is published
open logout
type username Administrator
type password Administrator
clickAndWait Submit
open nxpath/default/default-domain/sections/testsection1/testsection2@view_documents
click CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document
waitForEditable //input[@value="Unpublish"] 10000
clickAndWait //input[@value="Unpublish"]
assertTextPresent This folder contains no document.
open nxpath/default/default-domain/workspaces/testworkspace1/testfolder1@view_documents
click CHILDREN_DOCUMENT_LIST:nxl_document_listing_4:nxw_listing_selection_box_with_current_document_4
waitForEditable //input[@value="Delete"] 10000
chooseOkOnNextConfirmation
clickAndWait //input[@value="Delete"]
assertConfirmation Delete selected document(s)?
clickAndWait link=Manage
clickAndWait link=Trash
click CHILDREN_DOCUMENT_LIST:nxl_document_listing:nxw_listing_selection_box_with_current_document
waitForEditable //input[@value="Permanent delete"] 10000
clickAndWait //input[@value="Permanent delete"]
assertConfirmation Permanently delete selected document(s)?
open logout