Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml
------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/ScrumServices.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testDailyMinute" short-description="Daily Meeting Minute Test" 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.workEffortId" value="TEST_WE_006"/> + <set field="noteData.noteId" value="NOTE-1"/> + <set field="noteData.noteName" value="NOTE-1-Name"/> + <set field="noteData.noteInfo" value="NoteInfo"/> + <set field="noteData.noteParty" from-field="userLogin"/> + <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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/DailyMeetingMinuteTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,95 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testUpdateTimesheetEntryByWorkeffortNotComplete" short-description="Test update timesheet entry by workeffort" 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="inMap.timesheetId" value="DEMO-TIMESHEET1" /> + <set field="inMap.workEffortId" value="DEMO-TASK-1"/> + <set field="inMap.planHours_o_0" value="2.0" type="Double"/> + <set field="inMap.hoursDay0_o_0" value="1.0" type="Double"/> + <set field="inMap.checkComplete" value="N"/> + <call-service service-name="updateTimesheetEntryByWorkeffort" in-map-name="inMap"></call-service> + </simple-method> + + <simple-method method-name="testUpdateTimesheetEntryByWorkeffortComplete" short-description="Test update timesheet entry by workeffort" 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="inMap.timesheetId" value="DEMO-TIMESHEET1" /> + <set field="inMap.workEffortId" value="DEMO-TASK-1"/> + <set field="inMap.planHours_o_0" value="2.0" type="Double"/> + <set field="inMap.hoursDay0_o_0" value="1.0" type="Double"/> + <set field="inMap.checkComplete" value="Y"/> + <call-service service-name="updateTimesheetEntryByWorkeffort" in-map-name="inMap"></call-service> + </simple-method> + <simple-method method-name="testUpdateTask" short-description="Test update tasks" login-required="false" user-login-name="userLogin"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrumteam2"/> + </entity-one> + <set-current-user-login value-field="userLogin"/> + <set field="parameters.planHours" value="1.0" type="Double"/> + <set field="parameters.workEffortId" value="DEMO-SPRINT-1"/> + <set field="parameters.taskId" value="DEMO-TASK-2"/> + <set field="parameters.partyId" value="SCRUMTEAM-2"/> + <call-simple-method method-name="updateTask" xml-resource="component://scrum/script/org/ofbiz/scrum/ScrumEvents.xml"/> + </simple-method> + + <simple-method method-name="testRemoveTaskAssignToMe" short-description="Test remove task assign to me" login-required="false" user-login-name="userLogin"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrumteam2"/> + </entity-one> + <entity-and entity-name="WorkEffortPartyAssignment" list="listWorkAssignment"> + <field-map field-name="workEffortId" value="DEMO-TASK-2" /> + <field-map field-name="partyId" value="SCRUMTEAM-2"/> + </entity-and> + <set-current-user-login value-field="userLogin"/> + <set field="parameters.workEffortId" value="DEMO-TASK-2"/> + <set field="parameters.partyId" value="SCRUMTEAM-2"/> + <set field="parameters.roleTypeId" from-field="listWorkAssignment[0].roleTypeId"/> + <set field="parameters.fromDate" from-field="listWorkAssignment[0].fromDate"/> + <call-service service-name="unassignPartyFromWorkEffort" in-map-name="parameters"></call-service> + </simple-method> + + <simple-method method-name="testAddNewTimesheet" short-description="Test add a new timesheet" login-required="false" user-login-name="userLogin"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrumteam2"/> + </entity-one> + <set-current-user-login value-field="userLogin"/> + <set field="inMap.partyId" value="SCRUMTEAM-2"/> + <set field="inMap.requiredDate" value="2010-08-23 11:44:08.418" type="Timestamp"/> + <call-service service-name="createTimesheetForThisWeek" in-map-name="inMap" > + </call-service> + </simple-method> + <simple-method method-name="testSetTimeSheetStatusToComplete" short-description="Test set timesheet status to complete" login-required="false" user-login-name="userLogin"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrumteam2"/> + </entity-one> + <set-current-user-login value-field="userLogin"/> + <set field="inMap.timesheetId" value="DEMO-TIMESHEET2"/> + <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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/MyWorkTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,352 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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"> + <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.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="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"> + <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"/> + <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="testCreateProductBacklogByScrumMaster" 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="scrummaster"/> + </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="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"> + <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.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="testUpdateProductBacklogByProductOwner" 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="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.noteData" value="note"/> + <set field="parameters.note" value="note1"/> + <set field="parameters.noteId" value="NOTE-1"/> + <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="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"> + <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"/> + <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"> + <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"/> + <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="testDeleteProductBacklogByScrumMaster" 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="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"/> + <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"> + <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"/> + <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="testCreateDefaultBacklogs" short-description="Test Create DefaultBacklogs" 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"/> + <entity-one value-field="workEffort" entity-name="WorkEffort"> + <field-map field-name="workEffortId" value="DEMO-PROJECT-1"/> + </entity-one> + <set field="parameters.workEffortName" value="Test Default Task"/> + <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.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"> + <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.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.custRequestId" value="TEST11"/> + <set field="parameters.custRequestName" value="Backlog"/> + <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"> + <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.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.custRequestId" value="TEST10"/> + <set field="parameters.custRequestName" value="Backlog"/> + <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"> + <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.productId" value="DEMO-PRODUCT-1"/> + <set field="parameters.custRequestId" value="TEST10"/> + <set field="parameters.communicationEventTypeId" value="EMAIL_COMMUNICATION" /> + <set field="parameters.partyIdFrom" value="DemoCustomer-1"/> + <set field="parameters.partyIdTo" value="SCRUMASTER"/> + <set field="parameters.subject" value="Test New Product Backlog Email"/> + <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"> + <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.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"/> + </simple-method> +</simple-methods> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductBacklogTest.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,218 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testCreateProductByAdmin" 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="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"/> + <set field="parameters.partyCompany" value="TesCreste[DemoScrumCompany]."/> + <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"> + <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.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="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> + </simple-method> + + <!-- Billing --> + <simple-method method-name="testAddProductTimeToNewInvoice" short-description="Test Add Product Time To New Invoice" login-required="false" user-login-name="userLogin"> + <entity-one entity-name="UserLogin" value-field="userLogin"> + <field-map field-name="userLoginId" value="system"/> + </entity-one> + <set field="serviceCtx.productId" value="DEMO-PRODUCT-1"/> + <set field="serviceCtx.partyIdFrom" value="Company"/> + <set field="serviceCtx.partyId" value="DemoScrumCompany"/> + <set field="serviceCtx.fromDate" value="2010-10-01 00:00:00.000" type="Timestamp"/> + <set field="serviceCtx.thruDate" value="2010-11-01 00:00:00.000" type="Timestamp"/> + <set field="serviceCtx.reCreate" value="N"/> + <set field="serviceCtx.userLogin" from-field="userLogin"/> + <call-service service-name="addProductTimeToNewInvoice" in-map-name="serviceCtx"> + <result-to-field result-name="invoiceId"/> + </call-service> + + <entity-one entity-name="Invoice" value-field="invoiceMap"> + <field-map field-name="invoiceId" from-field="invoiceId"/> + </entity-one> + <log level="info" message="invoiceId ============= >>> ${invoiceMap.invoiceId}"></log> + <log level="info" message="partyIdFrom ============= >>> ${invoiceMap.partyIdFrom}"></log> + <log level="info" message="partyId ============= >>> ${invoiceMap.partyId}"></log> + <assert> + <not><if-empty field="invoiceId"/></not> + <not><if-empty field="invoiceMap"/></not> + <if-compare field="invoiceMap.invoiceTypeId" operator="equals" value="SALES_INVOICE" /> + <if-compare-field field="invoiceMap.partyIdFrom" operator="equals" to-field="serviceCtx.partyIdFrom" /> + <if-compare-field field="invoiceMap.partyId" operator="equals" to-field="serviceCtx.partyId" /> + </assert> + <check-errors/> + </simple-method> +</simple-methods> Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProductTest.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml?rev=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,48 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testAddProjectMember" short-description="Test add project member" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrummaster"/> + </entity-one> + <set field="parameters.workEffortId" value="DEMO-PROJECT-1"/> + <set field="parameters.roleTypeId" value="SCRUM_TEAM"/> + <set field="parameters.statusId" value="PRTYASGN_ASSIGNED"/> + <set field="parameters.partyId" value="DemoCustomer-1"/> + <set field="parameters.fromDate" value="2010-07-30 00:00:00.000"/> + <set field="parameters.userLogin" from-field="userLogin"/> + <call-service service-name="assignPartyToWorkEffort" in-map-name="parameters"/> + </simple-method> + <simple-method method-name="testRemoveProjectMember" short-description="Test remove project member" login-required="false"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="scrummaster"/> + </entity-one> + <set field="parameters.workEffortId" value="DEMO-PROJECT-1"/> + <set field="parameters.roleTypeId" value="SCRUM_TEAM"/> + <set field="parameters.partyId" value="DemoCustomer-1"/> + <set field="parameters.fromDate" value="2010-07-30 00:00:00.000"/> + <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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ProjectTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testCreateTestTask" short-description="" login-required="false" user-login-name="userLogin"> + <entity-one value-field="userLogin" entity-name="UserLogin"> + <field-map field-name="userLoginId" value="testadmin"/> + </entity-one> + <set-current-user-login value-field="userLogin"/> + <set field="formInput.formInput.userLogin" from-field="userLogin"/> + <set field="formInput.formInput.workEffortTypeId" value="SCRUM_TASK_ERROR"/> + <set field="formInput.formInput.currentStatusId" value="STS_CREATED"/> + <set field="formInput.formInput.roleTypeId" value="SCRUM_TEAM"/> + <set field="formInput.formInput.statusId" value="SCAS_ASSIGNED"/> + <set field="formInput.formInput.priority" value="1"/> + <set field="formInput.formInput.description" value=""/> + <set field="formInput.formInput.uploadedFile" value=""/> + <set field="formInput.formInput.contentTypeId" value="DOCUMENT"/> + <set field="formInput.formInput.resourceStatusId" value="CTNT_PUBLISHED"/> + <set field="formInput.formInput.workEffortContentTypeId" value="CREATED_MEDIA"/> + <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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/QATests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,164 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testCreateScrumProjectByProductOwner" 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_WEN06"/> + <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> + <set field="parameters.partyId" value="DemoCustomer-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="testUpdateScrumProjectByProductOwner" 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_WEN06_UPDATE"/> + <set field="parameters.workEffortTypeId" value="SCRUM_PROJECT"/> + <set field="parameters.partyId" value="DemoCustomer-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="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.workEffortId" value="TEST_WE_006"/> + <set field="parameters.currentStatusId" value="SPJ_ACTIVE"/> + <set field="parameters.workEffortName" value="TEST_WEN08_UPDATE"/> + <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="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"> + <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_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"/> + </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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumProjectTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml URL: http://svn.apache.org/viewvc/ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml?rev=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testFindProjectWithSearchParameters" short-description="Test find project service on certain search parameters" login-required="false"> + <set field="searchParameters.workEffortTypeId" value="SCRUM_PROJECT"/> + <entity-and list="workEffortList" entity-name="WorkEffort"> + <field-map field-name="workEffortTypeId" from-field="searchParameters.workEffortTypeId"/> + </entity-and> + </simple-method> + +</simple-methods> \ No newline at end of file Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/ScrumTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml Added: 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=1142915&view=auto ============================================================================== --- ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml (added) +++ ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml Tue Jul 5 08:15:32 2011 @@ -0,0 +1,162 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Licensed to the Apache Software Foundation (ASF) under one +or more contributor license agreements. See the NOTICE file +distributed with this work for additional information +regarding copyright ownership. The ASF licenses this file +to you under the Apache License, Version 2.0 (the +"License"); you may not use this file except in compliance +with the License. You may obtain a copy of the License at + +http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, +software distributed under the License is distributed on an +"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +KIND, either express or implied. See the License for the +specific language governing permissions and limitations +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="testcreateSprintBacklogByAdmin" 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="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="testcreateSprintBacklogByScrummaster" 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.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="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.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="testdeleteSprintBacklogByScurmmaster" short-description="" 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"/> + + <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="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 Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml ------------------------------------------------------------------------------ svn:eol-style = native Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml ------------------------------------------------------------------------------ svn:keywords = "Date Rev Author URL Id" Propchange: ofbiz/trunk/specialpurpose/scrum/script/org/ofbiz/scrum/test/SprintBacklogTests.xml ------------------------------------------------------------------------------ svn:mime-type = text/xml |
Free forum by Nabble | Edit this page |