Hi, I am attaching the patch file for review. I am also attaching the selenium recorded script for testing in this mail. In the selenium test , I have created minimum dataset required for testing.This is tested in relation to revision number 12311. Please verify and let me know once done.
Thanks and Kind Regards Biren Patnaik Lead Software Developer IBM Technology Campus Damestown Industrial Park,Mulhuddart Dublin 15 Internal Tel: 511211 External Tel : (+353) - 1 - 815-1211 Email: [EMAIL PROTECTED]Title: Issue1621
| Issue1621 | ||
| open | /mifos/loginAction.do?method=load | |
| type | userName | mifos |
| type | password | testmifos |
| clickAndWait | //[EMAIL PROTECTED]'Login'] | |
| clickAndWait | link=Admin | |
| clickAndWait | link=Define Lookup Options | |
| clickAndWait | btnAddCollateralType | |
| type | lookupValue | Type 3 |
| clickAndWait | submitButton | |
| clickAndWait | link=Admin | |
| clickAndWait | link=Define a new office | |
| type | officeName | BranchOffice1 |
| type | shortName | BO1 |
| selectAndWait | officeLevel | label=Branch Office |
| select | parentOfficeId | label=Head Office(Mifos HO ) |
| clickAndWait | //[EMAIL PROTECTED]'Preview'] | |
| clickAndWait | //[EMAIL PROTECTED]'Submit'] | |
| clickAndWait | link=Admin | |
| clickAndWait | link=Define new system user | |
| clickAndWait | link=BranchOffice1 | |
| type | firstName | Loan |
| type | lastName | Officer |
| type | dobDD | 01 |
| type | dobMM | 01 |
| type | dobYY | 2001 |
| select | gender | label=Male |
| select | level | label=Loan Officer |
| type | loginName | tester |
| type | userPassword | tester |
| type | passwordRepeat | tester |
| clickAndWait | //[EMAIL PROTECTED]'Preview'] | |
| clickAndWait | submitBtn | |
| clickAndWait | link=Admin | |
| clickAndWait | //a[contains(text(),'Define new Loan product')] |
|
| type | prdOfferingName | LoanProduct1 |
| type | prdOfferingShortName | LP1 |
| select | prdCategory | label=Other |
| select | prdApplicableMaster | label=Clients |
| type | minLoanAmount | 0 |
| type | maxLoanAmount | 10 |
| type | defaultLoanAmount | 10 |
| select | interestTypes | label=Flat |
| type | maxInterestRate | 5 |
| type | minInterestRate | 0 |
| type | defInterestRate | 5 |
| click | freqOfInstallments | |
| type | maxNoInstallments | 5 |
| type | defNoInstallments | 5 |
| select | interestGLCode | label=5001 |
| select | principalGLCode | label=1503 |
| clickAndWait | //[EMAIL PROTECTED]'Preview'] | |
| clickAndWait | submitBut | |
| clickAndWait | link=Clients & Accounts | |
| clickAndWait | link=Create new Client | |
| clickAndWait | link=Click here to continue if Group membership is not required for your Client. | |
| clickAndWait | link=BranchOffice1 | |
| select | clientName.salutation | label=Mr |
| type | clientName.firstName | Client |
| type | clientName.lastName | Client1 |
| type | dateOfBirthDD | 01 |
| type | dateOfBirthMM | 01 |
| type | dateOfBirthYY | 2001 |
| select | clientDetailView.gender | label=Male |
| select | clientDetailView.povertyStatus | label=Non-poor |
| select | spouseName.nameType | label=Father |
| type | spouseName.firstName | Father |
| type | spouseName.lastName | Client1 |
| clickAndWait | //[EMAIL PROTECTED]'Continue'] | |
| select | loanOfficerId | label=Loan Officer |
| clickAndWait | link=Schedule Meeting | |
| type | recurWeek | 1 |
| select | weekDay | label=Monday |
| type | meetingPlace | MeetingLocation |
| clickAndWait | //[EMAIL PROTECTED]'Save'] | |
| clickAndWait | //[EMAIL PROTECTED]'Preview'] | |
| clickAndWait | submitButton | |
| clickAndWait | link=View Client details now | |
| clickAndWait | //a[contains(text(),'Edit Client status')] |
|
| click | document.editCustomerStatusActionForm.newStatusId[1] | |
| type | notes | Activated |
| clickAndWait | //[EMAIL PROTECTED]'Preview'] | |
| clickAndWait | btn | |
| clickAndWait | link=Create Loan Account | |
| type | 111 | c |
| clickAndWait | searchButton | |
| clickAndWait | link=Client Client1:ID0002-000000001 | |
| select | prdOfferingId | label=LoanProduct1 |
| clickAndWait | continueBtn | |
| select | businessActivityId | label=0000-Animal Husbandry |
| select | collateralTypeId | label=Type 3 |
| clickAndWait | continueButton | |
| clickAndWait | previewBtn | |
| verifyTextPresent | Type 3 | |
| clickAndWait | submitForApprovalButton | |
| clickAndWait | //a[contains(text(),'View Loan account details now')] |
|
| verifyTextPresent | Type 3 | |
| clickAndWait | link=Logout | |
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/actionform/HiddenMandatoryConfigurationActionForm.java
(working copy)
@@ -26,6 +26,8 @@
private String hideSystemCitizenShip;
private String mandatorySystemCitizenShip;
+
+ private String mandatorySystemPurposeOfLoan;
private String hideSystemHandicapped;
@@ -381,7 +383,13 @@
public void setMandatorySystemCitizenShip(String
mandatorySystemCitizenShip) {
this.mandatorySystemCitizenShip = mandatorySystemCitizenShip;
}
+ public String getMandatorySystemPurposeOfLoan() {
+ return mandatorySystemPurposeOfLoan;
+ }
+ public void setMandatorySystemPurposeOfLoan(String
mandatorySystemPurposeOfLoan) {
+ this.mandatorySystemPurposeOfLoan =
mandatorySystemPurposeOfLoan;
+ }
public String getMandatorySystemEducationLevel() {
return mandatorySystemEducationLevel;
}
@@ -456,6 +464,7 @@
this.mandatorySystemEthnicity = "0";
this.hideSystemCitizenShip = "0";
this.mandatorySystemCitizenShip = "0";
+ this.mandatorySystemPurposeOfLoan = "0";
this.hideSystemHandicapped = "0";
this.mandatorySystemHandicapped = "0";
this.hideSystemEducationLevel = "0";
Index:
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/struts/action/HiddenMandatoryConfigurationAction.java
(working copy)
@@ -198,6 +198,13 @@
getShortValue(actionForm.getHideSystemReceiptIdDate()));
}
else if (fieldConfiguration.getFieldName().equals(
+
HiddenMandatoryFieldNamesConstants.PURPOSE_OF_LOAN)) {
+ fieldConfiguration.update(getShortValue(actionForm
+ .getMandatorySystemPurposeOfLoan()),
fieldConfiguration
+ .getHiddenFlag());
+ }
+
+ else if (fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_TYPE)
|| fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_NOTES)) {
@@ -677,6 +684,13 @@
.getHiddenFlag()));
}
else if (fieldConfiguration.getFieldName().equals(
+
HiddenMandatoryFieldNamesConstants.PURPOSE_OF_LOAN)) {
+ actionForm
+
.setMandatorySystemPurposeOfLoan(getStringValue(fieldConfiguration.getMandatoryFlag()));
+ }
+
+
+ else if (fieldConfiguration.getFieldName().equals(
HiddenMandatoryFieldNamesConstants.COLLATERAL_TYPE)) {
actionForm
.setHideSystemCollateralTypeNotes(getStringValue(fieldConfiguration
Index:
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/application/configuration/util/helpers/HiddenMandatoryFieldNamesConstants.java
(working copy)
@@ -19,6 +19,8 @@
public static final String RECEIPT_ID = "ReceiptId";
public static final String COLLATERAL_TYPE = "CollateralType";
+
+ public static final String PURPOSE_OF_LOAN = "PurposeOfLoan";
public static final String COLLATERAL_NOTES = "CollateralNotes";
Index:
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
===================================================================
---
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
(revision 12311)
+++
C:/project/MifosBug/mifos/src/org/mifos/doc-root/application/configuration/jsp/definehiddenmandatoryfields.jsp
(working copy)
@@ -254,6 +254,19 @@
</td>
</tr>
+
+ <tr>
+ <td
class="drawtablerow">
+
<mifos:mifoslabel name="configuration.purposeofloan" />
+ </td>
+ <td
class="drawtablerow">
+
+ </td>
+ <td
class="drawtablerow">
+
<html-el:checkbox property="mandatorySystemPurposeOfLoan" value="1"/>
+ </td>
+ </tr>
+
</table>
<span class="heading"></span>
<table width="96%" border="0"
cellpadding="3" cellspacing="0">------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
