Author: hansbak
Date: Thu Jul 7 03:50:28 2011 New Revision: 1143644 URL: http://svn.apache.org/viewvc?rev=1143644&view=rev Log: updated scrum junit tests, should make the testrun succesful again Removed: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintTests.xml ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml ofbiz/trunk/specialpurpose/scrum/testdef/scrumTests.xml Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumEvents.xml Thu Jul 7 03:50:28 2011 @@ -4486,10 +4486,13 @@ </simple-method> <simple-method method-name="getWebSiteId" short-description="Get WebSite Id"> <!-- for notification --> - <call-bsh><![CDATA[ - import org.ofbiz.webapp.website.WebSiteWorker; - webSiteId = WebSiteWorker.getWebSiteId(request); - parameters.put("webSiteId", webSiteId); - ]]></call-bsh> + <request-to-field field="request"/> + <if-not-empty field="request"> + <call-bsh><![CDATA[ + import org.ofbiz.webapp.website.WebSiteWorker; + webSiteId = WebSiteWorker.getWebSiteId(request); + parameters.put("webSiteId", webSiteId); + ]]></call-bsh> + </if-not-empty> </simple-method> </simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml Thu Jul 7 03:50:28 2011 @@ -35,7 +35,5 @@ under the License. <set field="noteData.partyId" value="admin"/> <set field="noteData.noteDateTime" value="2010-10-13" type="Timestamp"/> <call-simple-method method-name="createDailyNote" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml Thu Jul 7 03:50:28 2011 @@ -92,4 +92,4 @@ under the License. <set field="inMap.statusId" value="TIMESHEET_COMPLETED"/> <call-service service-name="updateTimesheet" in-map-name="inMap"></call-service> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml Thu Jul 7 03:50:28 2011 @@ -21,7 +21,7 @@ under the License. <simple-methods xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ofbiz.apache.org/dtds/simple-methods.xsd"> - <simple-method method-name="testCreateProductBacklogByAdmin" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateProductBacklogByAdmin" short-description="Test Create Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> @@ -29,22 +29,11 @@ under the License. <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.custRequestName" value="TEST Product Backlog"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.description" value="TEST Product Backlog"/> <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateProductBacklogByStakeholder" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestName" value="TEST Product Backlog"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - </simple-method> - - <simple-method method-name="testCreateProductBacklogByProductOwner" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateProductBacklogByProductOwner" short-description="Test Create Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="productowner"/> </entity-one> @@ -52,10 +41,11 @@ under the License. <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.custRequestName" value="TEST Product Backlog"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.description" value="TEST Product Backlog"/> <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateProductBacklogByScrumMaster" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateProductBacklogByScrumMaster" short-description="Test Create Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="scrummaster"/> </entity-one> @@ -63,120 +53,64 @@ under the License. <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.custRequestName" value="TEST Product Backlog"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.description" value="TEST Product Backlog"/> <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateProductBacklogByScrumTeam" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestName" value="TEST Product Backlog"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - </simple-method> - - <!--<simple-method method-name="testCreateProductBacklogByScrumUser" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestName" value="TEST Product Backlog"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method>--> - - <simple-method method-name="testCreateProductBacklogByProductOwner" short-description="Test Create Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestName" value="TEST Product Backlog 2 "/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateProductBacklogByAdmin" short-description="Test Update Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testUpdateProductBacklogByAdmin" short-description="Test Update Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestId" value="TEST4"/> - <set field="parameters.custRequestName" value="TEST Product Backlog"/> - <set field="parameters.noteInfo" value="TestNote"/> - <call-simple-method method-name="updateProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateProductBacklogByStakeholder" short-description="Test Update Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestId" value="TEST4"/> + <set field="parameters.custRequestId" value="TEST5"/> <set field="parameters.custRequestName" value="TEST Product Backlog"/> <set field="parameters.noteInfo" value="TestNote"/> + <set field="parameters.description" value="TEST Product Backlog"/> <call-simple-method method-name="updateProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testUpdateProductBacklogByProductOwner" short-description="Test Update Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testUpdateProductBacklogByProductOwner" short-description="Test Update Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="productowner"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestId" value="TEST5"/> - <set field="parameters.custRequestName" value="TEST Product Backlog Update"/> + <set field="parameters.custRequestId" value="TEST6"/> + <set field="parameters.custRequestName" value="TEST Product Backlog"/> + <set field="parameters.description" value="TEST Product Backlog"/> <set field="parameters.noteData" value="note"/> <set field="parameters.note" value="note1"/> <set field="parameters.noteId" value="NOTE-1"/> <set field="parameters.noteInfo" value="TestNote"/> + <set field="parameters.valueAcsr" value=""/> <call-simple-method method-name="updateProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <!--<simple-method method-name="testUpdateProductBacklogByScrumUser" short-description="Test Update Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.custRequestId" value="TEST4"/> - <set field="parameters.custRequestName" value="TEST Product Backlog"/> - <set field="parameters.noteInfo" value="TestNote"/> - <call-simple-method method-name="updateProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - </simple-method>--> - - - - <simple-method method-name="testDeleteProductBacklogByAdmin" short-description="Test Delete Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testDeleteProductBacklogByAdmin" short-description="Test Delete Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST11"/> + <set field="parameters.custRequestId" value="TEST5"/> + <entity-one value-field="result" entity-name="CustRequest"> + <field-map field-name="custRequestId" from-field="parameters.custRequestId"/> + </entity-one> <if-compare operator="equals" value="CRQ_ACCEPTED" field="result.statusId"> <call-simple-method method-name="deleteCustRequest" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </if-compare> </simple-method> - - <simple-method method-name="testDeleteProductBacklogByProducOwner" short-description="Test Delete Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testDeleteProductBacklogByProducOwner" short-description="Test Delete Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="productowner"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST2"/> + <set field="parameters.custRequestId" value="TEST6"/> <entity-one value-field="result" entity-name="CustRequest"> <field-map field-name="custRequestId" from-field="parameters.custRequestId"/> </entity-one> @@ -185,42 +119,18 @@ under the License. </if-compare> </simple-method> - <simple-method method-name="testDeleteProductBacklogByScrumMaster" short-description="Test Delete Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testDeleteProductBacklogByScrumMaster" short-description="Test Delete Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="scrummaster"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST11"/> + <set field="parameters.custRequestId" value="TEST7"/> <call-simple-method method-name="deleteCustRequest" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testDeleteProductBacklogByScrumTeam" short-description="Test Delete Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST11"/> - <call-simple-method method-name="deleteCustRequest" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - </simple-method> - - <!--<simple-method method-name="testDeleteProductBacklogByScrumUser" short-description="Test Delete Product Backlog" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST11"/> - <call-simple-method method-name="deleteCustRequest" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - </simple-method>--> - - <simple-method method-name="testCreateBacklogSetStatus" short-description=" Test Set Status Create Product Backlog" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateBacklogSetStatus" short-description=" Test Set Status Create Product Backlog" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="productowner"/> </entity-one> @@ -232,7 +142,7 @@ under the License. <call-simple-method method-name="createProductBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateDefaultBacklogs" short-description="Test Create DefaultBacklogs" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateDefaultBacklogs" short-description="Test Create DefaultBacklogs" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> @@ -241,14 +151,15 @@ under the License. <field-map field-name="workEffortId" value="DEMO-PROJECT-1"/> </entity-one> <set field="parameters.workEffortName" value="Test Default Task"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> <set field="parameters.description" from-field="workEffort.description"/> - <set field="parameters.plannedHours" value="${groovy:return workEffort.estimatedMilliSeconds/1000/60/60;}" type="Double"/> <set field="parameters.workEffortTypeId" value="SCRUM_TASK_IMPL"/> + <set field="parameters.workEffortPurposeTypeId" value="SCRUM_DEFAULT_TASK"/> <set field="parameters.currentStatusId" value="STS_CREATED"/> <call-simple-method method-name="createDefaultTask" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml" /> </simple-method> - <simple-method method-name="testCreateProductBacklogCategory" short-description="Test Create Product Backlog Category" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testCreateProductBacklogCategory" short-description="Test Create Product Backlog Category" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> @@ -259,7 +170,7 @@ under the License. <call-simple-method method-name="createProductBacklogCategory" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testUpdateProductBacklogCategory" short-description="Test Update Product Backlog Category" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testUpdateProductBacklogCategory" short-description="Test Update Product Backlog Category" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> @@ -270,7 +181,7 @@ under the License. <call-simple-method method-name="updateProductBacklogCategory" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testNewProductBacklogEmail" short-description="Test New Product Backlog Email" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testNewProductBacklogEmail" short-description="Test New Product Backlog Email" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> @@ -284,69 +195,83 @@ under the License. <call-service service-name="createCommunicationEvent" in-map-name="parameters"></call-service> </simple-method> - <simple-method method-name="testUpdateProductBacklogEmail" short-description="Test Update Product Backlog Email" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testNewProductBacklogEmail" short-description="Test New Product Backlog Email" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> + <field-map field-name="userLoginId" value="system"/> </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.communicationEventId" value="DEMO-COM-PRODUCT-1"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestId" value="TEST10"/> - <set field="parameters.communicationEventTypeId" value="EMAIL_COMMUNICATION" /> - <set field="parameters.subject" value="Test New Product Backlog Email"/> - <call-service service-name="updateCommunicationEvent" in-map-name="parameters"></call-service> - </simple-method> - - <simple-method method-name="testUpdateSprintBacklogseqDown" short-description="Test Update Sprint Backlog Sequence on Down" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.mode" value="DWN"/> - <set field="parameters.custRequestId" value="TEST9"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestItemSeqId" value="TESTSEQ9"/> - <set field="parameters.statusId" value="CRQ_ACCEPTED"/> - <set field="parameters.searchOption_statusId" value="CRQ_ACCEPTED"/> - <call-simple-method method-name="updateSprintBacklogseq" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml"/> - </simple-method> - <simple-method method-name="testUpdateSprintBacklogseqUP" short-description="Test Update Sprint Backlog Sequence on UP" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.mode" value="UP"/> - <set field="parameters.custRequestId" value="TEST9"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestItemSeqId" value="TESTSEQ9"/> - <set field="parameters.statusId" value="CRQ_ACCEPTED"/> - <set field="parameters.searchOption_statusId" value="CRQ_ACCEPTED"/> - <call-simple-method method-name="updateSprintBacklogseq" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml"/> - </simple-method> - <simple-method method-name="testUpdateSprintBacklogseqBotton" short-description="Test Update Sprint Backlog Sequence on Botton" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.mode" value="BOT"/> - <set field="parameters.custRequestId" value="TEST9"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestItemSeqId" value="TESTSEQ9"/> - <set field="parameters.statusId" value="CRQ_ACCEPTED"/> - <set field="parameters.searchOption_statusId" value="CRQ_ACCEPTED"/> - <call-simple-method method-name="updateSprintBacklogseq" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml"/> - </simple-method> - <simple-method method-name="testUpdateSprintBacklogseqTOP" short-description="Test Update Sprint Backlog Sequence on TOP" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.mode" value="TOP"/> - <set field="parameters.custRequestId" value="TEST9"/> - <set field="parameters.productId" value="DEMO-PRODUCT-1"/> - <set field="parameters.custRequestItemSeqId" value="TESTSEQ9"/> - <set field="parameters.statusId" value="CRQ_ACCEPTED"/> - <set field="parameters.searchOption_statusId" value="CRQ_ACCEPTED"/> - <call-simple-method method-name="updateSprintBacklogseq" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumServices.xml"/> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestId" value="TEST10"/> + <set field="serviceCtx.communicationEventTypeId" value="EMAIL_COMMUNICATION" /> + <set field="serviceCtx.partyIdFrom" value="DemoCustomer-1"/> + <set field="serviceCtx.partyIdTo" value="SCRUMASTER"/> + <set field="serviceCtx.subject" value="Test New Product Backlog Email"/> + <call-service service-name="createCommunicationEvent" in-map-name="serviceCtx"/> + </simple-method> + + <simple-method method-name="testUpdateProductBacklogEmail" short-description="Test Update Product Backlog Email" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.communicationEventId" value="DEMO-COM-PRODUCT-1"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestId" value="TEST10"/> + <set field="serviceCtx.communicationEventTypeId" value="EMAIL_COMMUNICATION" /> + <set field="serviceCtx.subject" value="Test New Product Backlog Email"/> + <call-service service-name="updateCommunicationEvent" in-map-name="serviceCtx"/> + </simple-method> + + <simple-method method-name="testUpdateSprintBacklogseqDown" short-description="Test Update Sprint Backlog Sequence on Down" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.mode" value="DWN"/> + <set field="serviceCtx.custRequestId" value="TEST9"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestItemSeqId" value="TESTSEQ9"/> + <set field="serviceCtx.statusId" value="CRQ_ACCEPTED"/> + <set field="serviceCtx.searchOption_statusId" value="CRQ_ACCEPTED"/> + <call-service service-name="updateSprintBacklogseq" in-map-name="serviceCtx"/> + </simple-method> + <simple-method method-name="testUpdateSprintBacklogseqUP" short-description="Test Update Sprint Backlog Sequence on UP" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.mode" value="UP"/> + <set field="serviceCtx.custRequestId" value="TEST9"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestItemSeqId" value="TESTSEQ9"/> + <set field="serviceCtx.statusId" value="CRQ_ACCEPTED"/> + <set field="serviceCtx.searchOption_statusId" value="CRQ_ACCEPTED"/> + <call-service service-name="updateSprintBacklogseq" in-map-name="serviceCtx"/> + </simple-method> + <simple-method method-name="testUpdateSprintBacklogseqBotton" short-description="Test Update Sprint Backlog Sequence on Botton" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.mode" value="BOT"/> + <set field="serviceCtx.custRequestId" value="TEST9"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestItemSeqId" value="TESTSEQ9"/> + <set field="serviceCtx.statusId" value="CRQ_ACCEPTED"/> + <set field="serviceCtx.searchOption_statusId" value="CRQ_ACCEPTED"/> + <call-service service-name="updateSprintBacklogseq" in-map-name="serviceCtx"/> + </simple-method> + <simple-method method-name="testUpdateSprintBacklogseqTOP" short-description="Test Update Sprint Backlog Sequence on TOP" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <set field="serviceCtx.mode" value="TOP"/> + <set field="serviceCtx.custRequestId" value="TEST9"/> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.custRequestItemSeqId" value="TESTSEQ9"/> + <set field="serviceCtx.statusId" value="CRQ_ACCEPTED"/> + <set field="serviceCtx.searchOption_statusId" value="CRQ_ACCEPTED"/> + <call-service service-name="updateSprintBacklogseq" in-map-name="serviceCtx"/> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml Thu Jul 7 03:50:28 2011 @@ -29,159 +29,27 @@ under the License. <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.internalName" value="Demo Product 1"/> <set field="parameters.longDescription" value="Demo-Create-Description"/> + <set field="parameters.productTypeId" value="SCRUM_ITEM"/> + <set field="parameters.statusId" value="PRODUCT_ACTIVE"/> <set field="parameters.partyId" value="DemoCustomer-1"/> - <set field="parameters.partyCompany" value="TesCreste[DemoScrumCompany]."/> + <set field="parameters.partyCompany" value="Demo Scrum Company[DemoScrumCompany] - Scrum Product Owner (DemoCustomer-1)"/> <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateProductByStakeholder" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.internalName" value="Demo Product 1"/> - <set field="parameters.longDescription" value="Demo-Create-Description"/> - <set field="parameters.partyId" value="DemoCustomer-1"/> - <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testCreateProductByProductOwner" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.internalName" value="Demo Product 1"/> - <set field="parameters.longDescription" value="Demo-Create-Description"/> - <set field="parameters.partyId" value="DemoCustomer-1"/> - <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testCreateProductByScrumMaster" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrummaster"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.internalName" value="Demo Product 1"/> - <set field="parameters.longDescription" value="Demo-Create-Description"/> - <set field="parameters.partyId" value="DemoCustomer-1"/> - <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testCreateProductByScrumTeam" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.internalName" value="Demo Product 1"/> - <set field="parameters.longDescription" value="Demo-Create-Description"/> - <set field="parameters.partyId" value="DemoCustomer-1"/> - <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <!--<simple-method method-name="testCreateProductByScrumUser" short-description="" login-required="false" user-login-name="userLogin"> + <simple-method method-name="testUpdateProductByAdmin" short-description="" login-required="false" user-login-name="userLogin"> <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> + <field-map field-name="userLoginId" value="admin"/> </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.userLogin" from-field="userLogin"/> <set field="parameters.internalName" value="Demo Product 1"/> <set field="parameters.longDescription" value="Demo-Create-Description"/> + <set field="parameters.productTypeId" value="SCRUM_ITEM"/> + <set field="parameters.statusId" value="PRODUCT_ACTIVE"/> <set field="parameters.partyId" value="DemoCustomer-1"/> - <call-simple-method method-name="createProductAndRole" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method>--> - - <simple-method method-name="testUpdateProductByAdmin" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> - </simple-method> - - <simple-method method-name="testUpdateProductByStakeholer" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> - </simple-method> - - <simple-method method-name="testUpdateProductByProductOwner" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> - </simple-method> - <simple-method method-name="testUpdateProductByScrumMaster" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrummaster"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> - </simple-method> - <simple-method method-name="testUpdateProductByScrumTeam" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> - </simple-method> - <simple-method method-name="testUpdateProductByScrumUser" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumuser"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="update.userLogin" from-field="userLogin"/> - <set field="update.productId" value="DEMO-PRODUCT-1"/> - <if-has-permission permission="PRODUCT" action="_UPDATE"> - <call-service service-name="updateProduct" in-map-name="update"></call-service> - <else> - <set field="_error_message_" value="You are has no permission to perform this action."/> - <return response-code="error"/> - </else> - </if-has-permission> + <set field="parameters.partyCompany" value="Demo Scrum Company[DemoScrumCompany] - Scrum Product Owner (DemoCustomer-1)"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> + <call-simple-method method-name="updateProduct" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> <!-- Billing --> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml Thu Jul 7 03:50:28 2011 @@ -39,4 +39,4 @@ under the License. <set field="formInput.formInput.partyId" value="SCRUMTEAM-1"/> <call-simple-method method-name="createTestTask" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml Thu Jul 7 03:50:28 2011 @@ -27,6 +27,7 @@ under the License. </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.workEffortId" value="TEST_WE_006"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> <set field="parameters.workEffortName" value="TEST_WEN06"/> <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> @@ -41,6 +42,7 @@ under the License. </entity-one> <set-current-user-login value-field="userLogin"/> <set field="parameters.workEffortId" value="TEST_WE_006"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> <set field="parameters.workEffortName" value="TEST_WEN06_UPDATE"/> <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> @@ -49,53 +51,12 @@ under the License. <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateScrumProjectByStakeholder" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_007"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN07"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="DemoStakeholder"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="createScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateScrumProjectByStakeholder" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_006"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN07_UPDATE"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="DemoStakeholder"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testCreateScrumProjectByScrumMaster" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_008"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN08"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="SCRUMASTER"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="createScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testUpdateScrumProjectByScrumMaster" short-description="Test Create Scrum Project" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="productowner"/> </entity-one> <set-current-user-login value-field="userLogin"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> <set field="parameters.workEffortId" value="TEST_WE_006"/> <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> <set field="parameters.workEffortName" value="TEST_WEN08_UPDATE"/> @@ -105,60 +66,15 @@ under the License. <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testCreateScrumProjectByScrumTeam" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_009"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN09"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="SCRUMTEAM-1"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="createScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateScrumProjectByScrumTeam" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_006"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN09_UPDATE"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="SCRUMTEAM-1"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testCreateScrumProjectByScrumUser" short-description="Test Create Scrum Project" login-required="false"> + <simple-method method-name="testCloseScrumProject" short-description="Test Close Scrum Project " login-required="false" user-login-name="userLogin"> <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="DemoStakeholder"/> + <field-map field-name="userLoginId" value="admin"/> </entity-one> <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_010"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN10"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="SCRUM_USER"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="createScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> + <set field="parameters.workEffortId" value="DEMO-PROJECT-1"/> + <set field="parameters.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.currentStatusId" value="SPJ_CLOSED" /> + <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml" /> </simple-method> - <simple-method method-name="testUpdateScrumProjectByScrumUser" short-description="Test Create Scrum Project" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="TEST_WE_006"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> - <set field="parameters.workEffortName" value="TEST_WEN10_UPDATE"/> - <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> - <set field="parameters.partyId" value="SCRUM_USER"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml Thu Jul 7 03:50:28 2011 @@ -42,55 +42,12 @@ under the License. <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - <simple-method method-name="testcreateSprintBacklogByScrumTeam" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testcreateSprintBacklogByProductOwner" short-description="" login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testdeleteSprintBacklogByAdmin" short-description="" login-required="false"> <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="admin"/> </entity-one> <set-current-user-login value-field="userLogin"/> - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - <set field="parameters.custRequestId" from-field="custRequestList[0].custRequestId"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="deleteSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testdeleteSprintBacklogByProductOwner" short-description="" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - <set field="parameters.custRequestId" from-field="custRequestList[0].custRequestId"/> + <set field="parameters.custRequestId" value="TEST1"/> <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> <call-simple-method method-name="deleteSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> @@ -100,63 +57,8 @@ under the License. <field-map field-name="userLoginId" value="scrummaster"/> </entity-one> <set-current-user-login value-field="userLogin"/> - - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - <set field="parameters.custRequestId" from-field="custRequestList[0].custRequestId"/> + <set field="parameters.custRequestId" value="TEST2"/> <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> <call-simple-method method-name="deleteSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> - - <simple-method method-name="testdeleteSprintBacklogByScurmTeam" short-description="" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - - <set field="parameters.custRequestId" from-field="custRequestList[0].custRequestId"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="deleteSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - <simple-method method-name="testcreateSprintBacklogSetStatus" short-description="Test Set Status Create Sprint Backlog" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrummaster"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.sprintBacklogs" value="1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintId" value="DEMO-SPRINT-1"/> - <call-simple-method method-name="createSprintBacklog" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateScrumProject" short-description="Test Update Scrum Project " login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="DEMO-PROJECT-1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.currentStatusId" value="SPJ_ACTIVE" /> - <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml" /> - </simple-method> - - <simple-method method-name="testCloseScrumProject" short-description="Test Close Scrum Project " login-required="false" user-login-name="userLogin"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="admin"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.workEffortId" value="DEMO-PROJECT-1"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.currentStatusId" value="SPJ_CLOSED" /> - <call-simple-method method-name="updateScrumProject" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml" /> - </simple-method> - -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintTests.xml Thu Jul 7 03:50:28 2011 @@ -25,7 +25,7 @@ under the License. <entity-one value-field="userLogin" entity-name="UserLogin"> <field-map field-name="userLoginId" value="system"/> </entity-one> - <set field="parameters.custRequestId" value="DEMO-PRODBACKLOG-1"/> + <set field="parameters.custRequestId" value="TEST9"/> <set field="parameters.estimatedMilliSeconds" value="36000000"/> <set field="parameters.userLogin" from-field="userLogin"/> <set-service-fields service-name="updateCustRequest" to-map="inMap" map="parameters"/> @@ -41,11 +41,12 @@ under the License. <set field="parameters.maxNum" value="20"/> <set field="parameters.projectId" value="DEMO-PROJECT-1"/> <set field="parameters.sprintName" value="SprintTest"/> - <set field="parameters.sprintDescription" value="SprintDescription"/> + <set field="parameters.sprintDescription" value="Test Create Sprint"/> <set field="parameters.sprintEstimatedStart" value="2010-07-23 11:44:08.418" type="Timestamp"/> <set field="parameters.sprintEstimatedEnd" value="2010-08-23 11:44:08.418" type="Timestamp"/> <set field="parameters.sprintBacklogs" value="1"/> <set field="parameters.custRequestName" value="TestSprint"/> + <set field="parameters.sprintDuration" value="1"/> <call-simple-method method-name="createSprint" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> @@ -54,57 +55,8 @@ under the License. <call-simple-method method-name="testCreateSprintByScrummaster" xml-resource="component://scrum/script/org/ofbiz/scrum/test/SprintTests.xml"/> <set field="parameters.workEffortId" from-field="parameters.sprintId"/> - <set field="parameters.currentStatusId" value="SPRINT_ACTIVE"/> - <call-simple-method method-name="updateSprintInfo" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testCreateSprintByScrumTeam" short-description="Test Create Sprint By ScrumTeam" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="scrumteam1"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.maxNum" value="20"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintName" value="SprintTest"/> - <set field="parameters.sprintDescription" value="SprintDescription"/> - <set field="parameters.sprintEstimatedStart" value="2010-07-23 11:44:08.418" type="Timestamp"/> - <set field="parameters.sprintEstimatedEnd" value="2010-08-23 11:44:08.418" type="Timestamp"/> - <set field="parameters.sprintBacklogs" value="1"/> - <call-simple-method method-name="createSprint" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateSprintByScrumTeam" short-description="Test Update Sprint By ScrumTeam" login-required="false"> - - <call-simple-method method-name="testCreateSprintByScrumTeam" xml-resource="component://scrum/script/org/ofbiz/scrum/test/SprintTests.xml"/> - - <set field="parameters.workEffortId" from-field="parameters.sprintId"/> - <set field="parameters.currentStatusId" value="SPRINT_ACTIVE"/> - <call-simple-method method-name="updateSprintInfo" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testCreateSprintByProductOwner" short-description="Test Create Sprint By ProductOwner" login-required="false"> - <entity-one value-field="userLogin" entity-name="UserLogin"> - <field-map field-name="userLoginId" value="productowner"/> - </entity-one> - <set-current-user-login value-field="userLogin"/> - <set field="parameters.userLogin" from-field="userLogin"/> - <set field="parameters.maxNum" value="20"/> - <set field="parameters.projectId" value="DEMO-PROJECT-1"/> - <set field="parameters.sprintName" value="SprintTest"/> - <set field="parameters.sprintDescription" value="SprintDescription"/> - <set field="parameters.sprintEstimatedStart" value="2010-07-23 11:44:08.418" type="Timestamp"/> - <set field="parameters.sprintEstimatedEnd" value="2010-08-23 11:44:08.418" type="Timestamp"/> - <set field="parameters.sprintBacklogs" value="2"/> - <set field="parameters.custRequestName" value="TestSprint"/> - <call-simple-method method-name="createSprint" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> - </simple-method> - - <simple-method method-name="testUpdateSprintByProductOwner" short-description="Test Update Sprint By ProductOwner" login-required="false"> - - <call-simple-method method-name="testCreateSprintByProductOwner" xml-resource="component://scrum/script/org/ofbiz/scrum/test/SprintTests.xml"/> - - <set field="parameters.workEffortId" from-field="parameters.sprintId"/> + <set field="parameters.workEffortName" value="SprintTest"/> + <set field="parameters.actualStartDate" value="2010-07-23 11:44:08.418" type="Timestamp"/> <set field="parameters.currentStatusId" value="SPRINT_ACTIVE"/> <call-simple-method method-name="updateSprintInfo" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> @@ -123,6 +75,7 @@ under the License. <set field="parameters.sprintEstimatedEnd" value="2010-08-23 11:44:08.418" type="Timestamp"/> <set field="parameters.sprintBacklogs" value="2"/> <set field="parameters.custRequestName" value="TestSprint"/> + <set field="parameters.sprintDuration" value="1"/> <call-simple-method method-name="createSprint" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> @@ -131,6 +84,8 @@ under the License. <call-simple-method method-name="testCreateSprintByAdmin" xml-resource="component://scrum/script/org/ofbiz/scrum/test/SprintTests.xml"/> <set field="parameters.workEffortId" from-field="parameters.sprintId"/> + <set field="parameters.workEffortName" value="SprintTest"/> + <set field="parameters.actualStartDate" value="2010-07-23 11:44:08.418" type="Timestamp"/> <set field="parameters.currentStatusId" value="SPRINT_ACTIVE"/> <call-simple-method method-name="updateSprintInfo" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> </simple-method> @@ -159,4 +114,4 @@ under the License. <set field="parameters.userLogin" from-field="userLogin"/> <call-service service-name="unassignPartyFromWorkEffort" in-map-name="parameters"/> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/TimesheetTests.xml Thu Jul 7 03:50:28 2011 @@ -38,4 +38,4 @@ under the License. <set field="inMap.timesheetId" value="DEMO-TIMESHEET1"/> <call-service service-name="updateTimesheetToInProcess" in-map-name="inMap"></call-service> </simple-method> -</simple-methods> \ No newline at end of file +</simple-methods> Modified: ofbiz/trunk/specialpurpose/scrum/testdef/scrumTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/testdef/scrumTests.xml?rev=1143644&r1=1143643&r2=1143644&view=diff ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/testdef/scrumTests.xml (original) +++ ofbiz/trunk/specialpurpose/scrum/testdef/scrumTests.xml Thu Jul 7 03:50:28 2011 @@ -11,9 +11,6 @@ <test-case case-name="scrumProject-tests"> <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml"/> </test-case> - <test-case case-name="project-tests"> - <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/ProjectTests.xml"/> - </test-case> <test-case case-name="sprint-tests"> <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/SprintTests.xml"/> </test-case> @@ -26,9 +23,9 @@ <test-case case-name="product-tests"> <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/ProductTest.xml"/> </test-case> - <test-case case-name="task-test"> + <!--<test-case case-name="task-test"> <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/TaskTests.xml"/> - </test-case> + </test-case>--> <test-case case-name="myWork-test"> <simple-method-test location="component://scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml"/> </test-case> |
Free forum by Nabble | Edit this page |