diff --git a/build-0.base.xml b/build-0.base.xml index 1b865f1..ee10c68 100644 --- a/build-0.base.xml +++ b/build-0.base.xml @@ -44,14 +44,8 @@ - - - - - - - + diff --git a/build.properties b/build.properties index d715a24..baaf9ab 100644 --- a/build.properties +++ b/build.properties @@ -1,16 +1,3 @@ -################################################################################ -# Copyright (c) 2007-2016 AREasy Runtime -# -# This library, AREasy Runtime and API for BMC Remedy AR System, is free software ("Licensed Software"); -# you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either version 2.1 of the License, -# or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -# including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -################################################################################ - #Build Number for ANT. Do not edit! -#Thu Feb 25 09:12:13 EET 2016 -build.number=2432 +#Mon May 23 16:49:53 EEST 2016 +build.number=2437 diff --git a/build/profile.s.damian.properties b/build/profile.s.damian.properties index 478a60e..0c4c6cb 100644 --- a/build/profile.s.damian.properties +++ b/build/profile.s.damian.properties @@ -21,5 +21,5 @@ deploy.protocol = local deploy.host.path = C:\\Program Files (x86)\\AREasy Runtime # # Locations for imported projects and libraries -deploy.nsis.path = C:\\Program Files (x86)\\NSIS +location.tool.nsis = C:\\Program Files (x86)\\NSIS ################################################################# diff --git a/build/profile.stefan.damian.properties b/build/profile.stefan.damian.properties deleted file mode 100644 index 62b80f4..0000000 --- a/build/profile.stefan.damian.properties +++ /dev/null @@ -1,25 +0,0 @@ -################################################################################ -# Copyright (c) 2007-2016 AREasy Runtime -# -# This library, AREasy Runtime and API for BMC Remedy AR System, is free software ("Licensed Software"); -# you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either version 2.1 of the License, -# or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -# including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -################################################################################ -publish.host.name = amsd.go.ro -publish.host.path = /volume1/web/areasy/downloads -publish.host.user = root -# -# Host Deployment location details -deploy.protocol = local -#deploy.host.name = 192.168.121.100 -#deploy.host.user = stefan -deploy.host.path = C:\\Tests\\AREasy Runtime -# -# Locations for imported projects and libraries -deploy.nsis.path = C:\\Program Files\\NSIS -################################################################# diff --git a/build/profile.stefan.properties b/build/profile.stefan.properties deleted file mode 100644 index fc0c91a..0000000 --- a/build/profile.stefan.properties +++ /dev/null @@ -1,25 +0,0 @@ -################################################################################ -# Copyright (c) 2007-2016 AREasy Runtime -# -# This library, AREasy Runtime and API for BMC Remedy AR System, is free software ("Licensed Software"); -# you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either version 2.1 of the License, -# or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -# including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -################################################################################ -publish.host.name = amsd.go.ro -publish.host.path = /volume1/web/areasy/downloads -publish.host.user = root -# -# Host Deployment location details -deploy.protocol = local -#deploy.host.name = 192.168.1.100 -#deploy.host.user = stefan -deploy.host.path = /home/stefan/Tests/areasy -# -# Locations for imported projects and libraries -deploy.nsis.path = C:/Program Files (x86)/NSIS -################################################################# diff --git a/src/java/org/areasy/runtime/actions/arserver/admin/SupportGroupRenameAction.java b/src/java/org/areasy/runtime/actions/arserver/admin/SupportGroupRenameAction.java index 1f802a4..b7182bd 100644 --- a/src/java/org/areasy/runtime/actions/arserver/admin/SupportGroupRenameAction.java +++ b/src/java/org/areasy/runtime/actions/arserver/admin/SupportGroupRenameAction.java @@ -37,6 +37,9 @@ */ public class SupportGroupRenameAction extends AbstractAction { + private SupportGroup oldSG = null; + private SupportGroup newSG = null; + public void run() throws AREasyException { boolean allgroupdetails = getConfiguration().getBoolean("allgroupdetails", false); @@ -70,12 +73,12 @@ public void run() throws AREasyException String newOrganisation = getConfiguration().getString("newsgrouporganisation", getConfiguration().getString("newsupportgrouporganisation", null)); String newGroup = getConfiguration().getString("newsgroup", getConfiguration().getString("newsgroupname", getConfiguration().getString("newsupportgroup", getConfiguration().getString("newsupportgroupname", null)))); - SupportGroup oldSG = new SupportGroup(); + oldSG = new SupportGroup(); oldSG.setCompanyName(oldCompany); oldSG.setOrganisationName(oldOrganisation); oldSG.setSupportGroupName(oldGroup); - SupportGroup newSG = new SupportGroup(); + newSG = new SupportGroup(); newSG.setCompanyName(newCompany); newSG.setOrganisationName(newOrganisation); newSG.setSupportGroupName(newGroup); @@ -93,6 +96,7 @@ public void run() throws AREasyException //run new support group creation procedure and to make the old one obsolete updateSupportGroup(oldSG, newSG); + //update/create all related details if (memberships || allgroupdetails) transferMemberships(oldSG, newSG); if(aliases || allgroupdetails) transferGroupAliases(oldSG, newSG); if(approvalmappings || allgroupdetails) transferApprovalMappings(oldSG, newSG); @@ -100,29 +104,52 @@ public void run() throws AREasyException if(oncalls || allgroupdetails) transferOnCallRecords(oldSG, newSG); if(shifts || allgroupdetails) transferShifts(oldSG, newSG); + //make old group obsolete + oldSG.setStatus("Obsolete"); + oldSG.update(getServerConnection()); + RuntimeLogger.info("Support group '" + oldSG.getCompanyName() + "/" + oldSG.getOrganisationName() + "/" + oldSG.getSupportGroupName() + "' has been set as Obsolete"); + + // update incidents and related templates if(incidentTemplates || allrelatedtickets) updateIncidentTemplates(oldSG, newSG); if(incidents || allrelatedtickets) updateIncidents(oldSG, newSG); + //update problems and related templates if(problemTemplates || allrelatedtickets) updateProblemTemplates(oldSG, newSG); if(problems || allrelatedtickets) updateProblems(oldSG, newSG); + //update know errors if(knownerrors || allrelatedtickets) updateKnownErrors(oldSG, newSG); + //update changes and related templates if(changeTemplates || allrelatedtickets) updateChangeTemplates(oldSG, newSG); if(changes || allrelatedtickets) updateChanges(oldSG, newSG); + //update tasks and related templates if(taskTemplates || allrelatedtickets) updateTaskTemplates(oldSG, newSG); if(tasks || allrelatedtickets) updateTasks(oldSG, newSG); + //update workorders and related templates if(workorderTemplates || allrelatedtickets) updateWorkOrderTemplates(oldSG, newSG); if(workorders || allrelatedtickets) updateWorkOrders(oldSG, newSG); + // update CIs and related assets if(assetrelationships || allrelatedtickets) updateAssetRelationships(oldSG, newSG); if(cmdbrelationships || allrelatedtickets) updateCMDBRelationships(oldSG, newSG); + //update KRs if(knowledgerecords || allrelatedtickets) updateKnowledgeRecords(oldSG, newSG); } + protected SupportGroup getOldSupportEntity() + { + return this.oldSG; + } + + protected SupportGroup getNewSupportEntity() + { + return this.newSG; + } + protected void updateSupportGroup(SupportGroup oldSG, SupportGroup newSG) throws AREasyException { boolean create = true; @@ -160,10 +187,6 @@ protected void updateSupportGroup(SupportGroup oldSG, SupportGroup newSG) throws newSG.update(getServerConnection()); RuntimeLogger.info("Support group '" + newSG.getCompanyName() + "/" + newSG.getOrganisationName() + "/" + newSG.getSupportGroupName() + "' has been updated and enabled"); } - - oldSG.setStatus("Obsolete"); - oldSG.update(getServerConnection()); - RuntimeLogger.info("Support group '" + oldSG.getCompanyName() + "/" + oldSG.getOrganisationName() + "/" + oldSG.getSupportGroupName() + "' has been set as Obsolete"); } protected void transferMemberships(SupportGroup fromGroup, SupportGroup toGroup) throws AREasyException diff --git a/src/nsis/installer.nsi b/src/nsis/installer.nsi index ef0c816..42f1c50 100644 --- a/src/nsis/installer.nsi +++ b/src/nsis/installer.nsi @@ -152,7 +152,7 @@ SectionIn 1 WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "UninstallString" "$INSTDIR\bin\uninstall.exe" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "DisplayVersion" "%version%" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "Publisher" "%vendor%" - WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "URLInfoAbout" "http://areasy.snt.ro" + WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "URLInfoAbout" "http://stefandmn.github.io/AREasy" WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\%fullname%" "DisplayIcon" "$INSTDIR\bin\areasy.exe" ;Get estimated size diff --git a/tests/data/ExportSample1.xls b/tests/data/ExportSample1.xls deleted file mode 100644 index 9283284..0000000 Binary files a/tests/data/ExportSample1.xls and /dev/null differ diff --git a/tests/data/ExportSample2.xls b/tests/data/ExportSample2.xls deleted file mode 100644 index 0be7f73..0000000 Binary files a/tests/data/ExportSample2.xls and /dev/null differ diff --git a/tests/data/ImportSample1.bin b/tests/data/ImportSample1.bin deleted file mode 100644 index 20c58fe..0000000 Binary files a/tests/data/ImportSample1.bin and /dev/null differ diff --git a/tests/data/ImportSample1.def b/tests/data/ImportSample1.def deleted file mode 100644 index 757ed9a..0000000 --- a/tests/data/ImportSample1.def +++ /dev/null @@ -1,329 +0,0 @@ -char-set: UTF-8 -# -# File exported Sun Sep 29 12:33:22 2013 -# -begin schema - name : SNT:Test - core-version : 2 - upgrade-version: 0 - num-fields : 15 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - default-vui : Default Administrator View - num-vuis : 1 - export-version : 11 - schema-type : 1 - next-field-id : 536870912 -vui { - id : 536870912 - name : Default Administrator View - label : Default Administrator View - timestamp : 1380368883 - vui-locale : - vui-type : 1 - owner : appadmin - last-changed : appadmin - display-prop : 1\20\4\26\Default Administrator View\ -} -field { - id : 1 - name : Request ID - datatype : 4 - fieldtype : 1 - create-mode : 2 - option : 3 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 15 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 0\1 - permission : 3\1 - permission : 4\1 - display-instance : 536870912\14\3\41\2\6299\2500\29021\4600\4\6\1\7\40\2147483640\20\4\10\Request ID\21\41\2\0\400\6974\2100\27\8\16\28\6\4\29\6\1\60\40\1\65\41\2\0\0\0\0\143\4& - display-instance : 0\4294967295\151\41\2\7536\0\22721\2100\170\40\0\231\6\1\ -} -field { - id : 2 - name : Submitter - datatype : 4 - fieldtype : 1 - create-mode : 1 - option : 1 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 254 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 3\1 - permission : 4\1 - display-instance : 536870912\16\3\41\2\6074\5000\31945\7100\4\6\1\7\40\2147483641\20\4\9\Submitter\21\41\2\0\400\7199\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\30\65\41\2\0\0\0\& - display-instance : 0\66\41\2\23509\0\25871\2100\143\40\4294967295\151\41\2\7761\0\22946\2100\170\40\0\231\6\0\ -} -field { - id : 3 - name : Create Date - datatype : 7 - fieldtype : 1 - create-mode : 2 - option : 3 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - permission : 3\1 - permission : 4\1 - display-instance : 536870912\16\3\41\2\5624\7500\31945\9600\4\6\1\7\40\2147483642\20\4\11\Create Date\21\41\2\0\400\7649\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\23\65\41\2\0\0& - display-instance : \0\0\66\41\2\23959\0\26321\2100\143\40\4294967295\151\41\2\8211\0\23396\2100\170\40\0\231\6\0\ -} -field { - id : 4 - name : Assigned To - datatype : 4 - fieldtype : 1 - create-mode : 2 - option : 2 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 254 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 4\1 - display-instance : 536870912\16\3\41\2\5624\10000\31945\12100\4\6\1\7\40\2147483643\20\4\11\Assigned To\21\41\2\0\400\7649\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\30\65\41\2\0& - display-instance : \0\0\0\66\41\2\23959\0\26321\2100\143\40\4294967295\151\41\2\8211\0\23396\2100\170\40\0\231\6\0\ -} -field { - id : 5 - name : Last Modified By - datatype : 4 - fieldtype : 1 - create-mode : 2 - option : 3 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 254 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 4\1 - display-instance : 536870912\16\3\41\2\2924\12500\31945\14600\4\6\1\7\40\2147483644\20\4\16\Last Modified By\21\41\2\0\400\10348\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\33\65\& - display-instance : 41\2\0\0\0\0\66\41\2\26659\0\29021\2100\143\40\4294967295\151\41\2\10911\0\26096\2100\170\40\0\231\6\0\ -} -field { - id : 6 - name : Modified Date - datatype : 7 - fieldtype : 1 - create-mode : 2 - option : 3 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - permission : 4\1 - display-instance : 536870912\16\3\41\2\4386\15000\31945\17100\4\6\1\7\40\2147483645\20\4\13\Modified Date\21\41\2\0\400\8886\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\23\65\41\2& - display-instance : \0\0\0\0\66\41\2\25196\0\27558\2100\143\40\4294967295\151\41\2\9448\0\24633\2100\170\40\0\231\6\0\ -} -field { - id : 7 - name : Status - datatype : 6 - fieldtype : 1 - create-mode : 2 - option : 1 - timestamp : 1380368892 - owner : appadmin - last-changed : appadmin - enum-value : New - enum-value : Assigned - enum-value : Fixed - enum-value : Rejected - enum-value : Closed - default : 0 - permission : 3\1 - permission : 4\2 - display-instance : 536870912\17\3\41\2\8548\17500\45668\19300\4\6\1\7\40\2147483646\20\4\6\Status\21\41\2\0\400\4724\1800\27\8\16\28\6\4\29\6\1\60\40\1\61\40\0\64\6\1\65\41\2\0& - display-instance : \0\0\0\143\40\4294967295\151\41\2\5286\400\37119\2200\170\40\0\230\4\46\5\0\New\1\Assigned\2\Fixed\3\Rejected\4\Closed\231\6\0\ -} -field { - id : 8 - name : Short Description - datatype : 4 - fieldtype : 1 - create-mode : 1 - option : 1 - timestamp : 1380368923 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 254 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 3\1 - permission : 4\1 - display-instance : 536870912\16\3\41\2\1012\20000\31945\22100\4\6\1\7\40\2147483647\20\4\17\Short Description\21\41\2\0\400\12260\2100\27\8\16\28\6\4\29\6\1\60\40\1\61\40\50\65& - display-instance : \41\2\0\0\0\0\66\41\2\28571\0\30933\2100\143\40\4294967295\151\41\2\12823\0\28008\2100\170\40\0\231\6\0\ -} -field { - id : 15 - name : Status History - datatype : 4 - fieldtype : 1 - create-mode : 2 - option : 3 - timestamp : 1380368879 - owner : appadmin - last-changed : appadmin - permission : 3\1 - permission : 4\1 -} -field { - id : 536870913 - name : Run - datatype : 32 - fieldtype : 0 - create-mode : 2 - option : 4 - timestamp : 1380446703 - owner : appadmin - last-changed : appadmin - permission : 0\1 - display-instance : 536870912\10\2\8\1\3\41\2\33408\22700\39144\24800\4\6\1\5\6\2\7\40\2147483648\21\41\2\0\0\0\0\110\4\6\Button\143\40\4294967295\170\40\0\310\6\0\ -} -field { - id : 536870914 - name : Data01 - datatype : 4 - fieldtype : 1 - create-mode : 1 - option : 2 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - length-units : 0 - maxlength : 255 - clob-store-opt : 0 - menu-style : 2 - qbe-match-op : 1 - fulltext-optns : 0 - permission : 0\2 - display-instance : 536870912\18\3\41\2\3824\22700\31945\24800\4\6\1\5\6\2\7\40\2147483649\14\40\1\20\4\6\Data01\21\41\2\0\400\9448\2100\60\40\1\66\41\2\25759\0\28121\2100\143\4& - display-instance : 0\4294967295\151\41\2\10011\0\25196\2100\170\40\0\231\6\0\288\6\0\289\4\4\0x00\290\4\4\0x00\310\6\0\5116\6\0\ -} -field { - id : 536870915 - name : Data02 - datatype : 2 - fieldtype : 1 - create-mode : 1 - option : 2 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - range-low : -2147483647 - range-high : 2147483647 - permission : 0\2 - display-instance : 536870912\16\3\41\2\48706\2300\73340\4400\4\6\1\5\6\2\7\40\2147483650\14\40\1\20\4\6\Data02\21\41\2\0\400\8886\2100\62\6\1\66\41\2\0\0\0\0\143\40\4294967295\& - display-instance : 151\41\2\9448\0\24633\2100\170\40\0\288\6\0\289\4\4\0x00\290\4\4\0x00\310\6\0\ -} -field { - id : 536870916 - name : Data03 - datatype : 13 - fieldtype : 1 - create-mode : 1 - option : 2 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - permission : 0\2 - display-instance : 536870912\16\3\41\2\48706\4800\76265\6900\4\6\1\5\6\2\7\40\2147483651\14\40\1\20\4\6\Data03\21\41\2\0\400\8886\2100\66\41\2\25196\0\27558\2100\143\40\4294967& - display-instance : 295\151\41\2\9448\0\24633\2100\170\40\0\231\6\0\288\6\0\289\4\4\0x00\290\4\4\0x00\310\6\0\ -} -field { - id : 536870917 - name : Data04 - datatype : 6 - fieldtype : 1 - create-mode : 1 - option : 2 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - enum-value : Default 1 - permission : 0\2 - display-instance : 536870912\16\3\41\2\48706\7300\73340\9400\4\6\1\5\6\2\7\40\2147483652\14\40\1\20\4\6\Data04\21\41\2\0\400\8886\2100\64\6\0\143\40\4294967295\151\41\2\9448\0\& - display-instance : 24633\2100\170\40\0\230\4\13\1\0\Default 1\288\6\0\289\4\4\0x00\290\4\4\0x00\310\6\0\ -} -field { - id : 536870918 - name : Data05 - datatype : 12 - fieldtype : 1 - create-mode : 1 - option : 2 - timestamp : 1380446989 - owner : appadmin - last-changed : appadmin - range-low : 0 - range-high : 1000000000 - precision : 2 - func-codes : 1\EUR\2\ - allow-codes : 0\ - default : 12\14\1\0\3\EUR\0\0\\ - permission : 0\2 - display-instance : 536870912\17\3\41\2\48706\9800\79189\11900\4\6\1\5\6\2\7\40\2147483653\14\40\1\20\4\6\Data05\21\41\2\0\400\7874\2100\65\41\2\25196\0\27558\2100\66\41\2\28121& - display-instance : \0\30483\2100\143\40\4294967295\151\41\2\9448\0\24633\2100\170\40\0\231\6\0\288\6\0\289\4\4\0x00\290\4\4\0x00\310\6\0\ -} -end -begin active link - name : SNT:Test:PushButton - timestamp : 1380369193 - export-version : 11 - owner : appadmin - last-changed : appadmin - actlink-order : 0 - wk-conn-type : 1 - schema-name : SNT:Test - enable : 1 - action { - set-field : 0\536870914\101\4\4\Demo\ - } - object-prop : 1\60016\4\1\0\ - errhandler-opt : 0 - errhandler-name: -end -begin filter - name : SNT:Test:SaveRecordNotification - timestamp : 1380374252 - owner : appadmin - last-changed : appadmin - filter-op : 4 - enable : 1 - filter-order : 500 - wk-conn-type : 1 - schema-name : SNT:Test - export-version : 11 - action { - message-type: 0 - message-num : 10000 - message-text: Record saved!! - } - errhandler-opt : 0 -end diff --git a/tests/data/ImportSample2.bin b/tests/data/ImportSample2.bin deleted file mode 100644 index 4821e28..0000000 Binary files a/tests/data/ImportSample2.bin and /dev/null differ diff --git a/tests/data/OverlaySample.xls b/tests/data/OverlaySample.xls deleted file mode 100644 index a762846..0000000 Binary files a/tests/data/OverlaySample.xls and /dev/null differ diff --git a/tests/data/RemoveSample1.xls b/tests/data/RemoveSample1.xls deleted file mode 100644 index e9c3b2a..0000000 Binary files a/tests/data/RemoveSample1.xls and /dev/null differ diff --git a/tests/data/RemoveSample2.xls b/tests/data/RemoveSample2.xls deleted file mode 100644 index d9adb1c..0000000 Binary files a/tests/data/RemoveSample2.xls and /dev/null differ diff --git a/tests/data/StatusSample1.xls b/tests/data/StatusSample1.xls deleted file mode 100644 index 4d1e7bb..0000000 Binary files a/tests/data/StatusSample1.xls and /dev/null differ diff --git a/tests/data/StatusSample2.xls b/tests/data/StatusSample2.xls deleted file mode 100644 index 0f47fec..0000000 Binary files a/tests/data/StatusSample2.xls and /dev/null differ diff --git a/tests/src/definitions.properties b/tests/src/definitions.properties deleted file mode 100644 index d4dbd91..0000000 --- a/tests/src/definitions.properties +++ /dev/null @@ -1,83 +0,0 @@ -################################################################################ -# Copyright (c) 2007-2016 AREasy Runtime -# -# This library, AREasy Runtime and API for BMC Remedy AR System, is free software ("Licensed Software"); -# you can redistribute it and/or modify it under the terms of the GNU Lesser General Public -# License as published by the Free Software Foundation; either version 2.1 of the License, -# or (at your option) any later version. -# -# This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; -# including but not limited to, the implied warranty of MERCHANTABILITY, NONINFRINGEMENT, -# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. -################################################################################ -definitions.01.name = Classic Definitions Export -definitions.01.details = Export all selected definitions (named in the Excel file) to a single file -definitions.01.action = aar.devpackage -definitions.01.arguments = -export -parserfile "${tests.data}/ExportSample1.xls" -outputfile "${tests.out}/definitions.def" -#---------------------------------------------------------------- -definitions.02.name = Object Type Definitions Export -definitions.02.details = Export all selected definitions (named in the Excel file) to a specific folder, creating a definition file for each object type -definitions.02.action= aar.devpackage -definitions.02.arguments = -export -parserfile "${tests.data}/ExportSample1.xls" -outputfolder "${tests.out}" -#---------------------------------------------------------------- -definitions.03.name = Discrete Definitions Export -definitions.03.details = Export all selected definitions (named in the Excel file) to a specific folder, creating a specific definition file for each developed object -definitions.03.action= aar.devpackage -definitions.03.arguments = -export -parserfile "${tests.data}/ExportSample1.xls" -outputfolder "${tests.out}/" -divided -#---------------------------------------------------------------- -definitions.04.name = Export Inventory -definitions.04.details = Create an inventory file for the specified objects for export and filtered by exclusive inventory directives -definitions.04.action= aar.devpackage -definitions.04.arguments = -export -prefix SNT -inventory -outputfile "${tests.out}/inventory.txt" -only-forms -only-filters -#---------------------------------------------------------------- -definitions.05.name = Definitions Export in XML Format -definitions.05.details = Export all selected definitions (named in the Excel file) to an XML file -definitions.05.action = aar.devpackage -definitions.05.arguments = -export -parserfile "${tests.data}/ExportSample1.xls" -outputfile "${tests.out}/definitions.xml" -#---------------------------------------------------------------- -definitions.06.name = Binary Definitions Export -definitions.06.details = Export all selected definitions (named in the Excel file) in binary format into a single file -definitions.06.action = aar.devpackage -definitions.06.arguments = -export -parserfile "${tests.data}/ExportSample2.xls" -outputfile "${tests.out}/definitions.bin" -#---------------------------------------------------------------- -definitions.07.name = Disable Objects using Excel -definitions.07.details = Disable all objects specified in the input excel file -definitions.07.action = aar.devpackage -definitions.07.arguments = -import -parserfile "${tests.data}/StatusSample1.xls" -#---------------------------------------------------------------- -definitions.08.name = Enable Objects using Excel -definitions.08.details = Enable all objects specified in the input excel file -definitions.08.action = aar.devpackage -definitions.08.arguments = -import -parserfile "${tests.data}/StatusSample2.xls" -#---------------------------------------------------------------- -definitions.09.name = Classic Disable Objects -definitions.09.details = Disable all objects specified to the input command line -definitions.09.action = dev.status -definitions.09.arguments = -disable -activelinks "SNT:Test:PushButton" -filters "SNT:Test:SaveRecordNotification" -#---------------------------------------------------------------- -definitions.10.name = Classic Enable Objects -definitions.10.details = Enable all objects specified to the input command line -definitions.10.action = dev.status -definitions.10.arguments = -enable -activelinks "SNT:Test:PushButton" -filters "SNT:Test:SaveRecordNotification" -#---------------------------------------------------------------- -definitions.11.name = Classic Objects Removal -definitions.11.details = Remove all objects specified in the excel file -definitions.11.action = aar.devpackage -definitions.11.arguments = -import -parserfile "${tests.data}/RemoveSample1.xls" -#---------------------------------------------------------------- -definitions.12.name = Classic Definitions Import -definitions.12.details = Import all selected objects (named in the Excel file) in the ARSystem server -definitions.12.action = aar.devpackage -definitions.12.arguments = -import -parserfile "${tests.data}/ExportSample1.xls" -inputfile "${tests.data}/ImportSample1.def" -overwrite -#---------------------------------------------------------------- -definitions.13.name = Advanced Objects Removal -definitions.13.details = Remove all objects specified in the excel file (an object could be also a view or a field) -definitions.13.action = aar.devpackage -definitions.13.arguments = -import -parserfile "${tests.data}/RemoveSample2.xls" -#---------------------------------------------------------------- -definitions.14.name = Binary Definitions Import -definitions.14.details = Import all selected objects (named in the Excel file) in the ARSystem server from binary format (an object could be also a view or a field) -definitions.14.action = aar.devpackage -definitions.14.arguments = -import -parserfile "${tests.data}/ExportSample2.xls" -inputfile "${tests.data}/ImportSample2.bin" -overwrite -#---------------------------------------------------------------- -################################################################# diff --git a/tests/test.bat b/tests/test.bat deleted file mode 100644 index 5679bd0..0000000 --- a/tests/test.bat +++ /dev/null @@ -1,65 +0,0 @@ -@echo off - -if "%OS%" == "Windows_NT" setlocal -if "%OS%"=="Windows_NT" setlocal -if "%OS%"=="WINNT" setlocal -rem --------------------------------------------------------------------------- -rem AREasy Testing Environment -rem Copyright (c) 2007-2016 AREasy.org. All Rights Reserved. -rem -rem Dedicated Script to run AREasy tests -rem Usage: -rem test.sh -rem --------------------------------------------------------------------------- - - -rem Get path variables -set APP_CUR=%~dp0 -for %%? in ("%_APP_CUR%..") do set APP_HOME=%%~f? - -rem Check JVM home -if "%JAVA_HOME%" == "" -( - echo The "Invalid parameter JAVA_HOME" - goto end -) - -rem Check ANT home -if "%ANT_HOME%" == "" -( - echo The "Invalid parameter ANT_HOME" - goto end -) - -rem Check AREASY home -if "%AREASY_HOME%" == "" -( - echo The "Invalid parameter AREASY_HOME" - goto end -) - -rem Check input parameters -if not "%1" == "" -( - if "%2" == "" - ( - echo The "Please specify the test name and index" - goto end - ) - - goto askRun -) -else -( - echo The "Please specify the test name and index" - goto end -) - - -:askRun -"%ANT_HOME%\bin\ant" -Darg0=$1 -Darg1=$2 -buildfile="$APP_HOME/build.xml" "4.Tests.1.Exec" -goto end - - -:end -rem End program \ No newline at end of file diff --git a/tests/test.sh b/tests/test.sh deleted file mode 100644 index 5a9e275..0000000 --- a/tests/test.sh +++ /dev/null @@ -1,40 +0,0 @@ -#!/bin/sh - -# Get path variables -APP_HOME=`dirname $0` -APP_HOME=$(cd $APP_HOME/../;pwd) - - -# Check JVM home -if [ "$JAVA_HOME" = "" ] - then - echo "Invalid parameter JAVA_HOME" - echo - exit 1 -fi - -# Check ANT home -if [ "$ANT_HOME" = "" ] - then - echo "Invalid parameter ANT_HOME" - echo - exit 1 -fi - -# Check AREASY home -if [ "$AREASY_HOME" = "" ] - then - echo "Invalid parameter AREASY_HOME" - echo - exit 1 -fi - -# Check input parameters -if [ "$1" = "" ] || [ "$2" = "" ] - then - echo "Please specify the test name and index" - echo - exit 1 -fi - -$ANT_HOME/bin/ant -Darg0=$1 -Darg1=$2 -buildfile "$APP_HOME/build.xml" "4.Tests.1.Exec" \ No newline at end of file