Details

    • Type: Bug Bug
    • Status: Ready for QA
    • Priority: Critical Critical
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Core Services
    • Labels:
      None
    • Environment:

      Dev

      Description

      Failure cases

      1 taxHeadMasterCode value should present in MDMS and belong to That Bussiness Service. [Fail]
      : Created with TL tax head and Response was 200 for PT business Service.

      2. If there are two Demand d1 and d2, [Fail]
      I can set the value of d2's DemandId at demandId of a object of demandDetails of d1. (So internally that object of demandDetails is linked with d2)

      3. Tried To Update a demand's consumer code with an Existing consumer code/new consumer code, Getting error but getting
      It should be user-friendly error. [PASS][Fail]

      4. Able to change demandDetails'tenantId and also can update with an Invalid Tenant ID. :[Fail]

      5.Not able to set the value of collectionAmount more than the taxAmount but and i can set value in -ve value. [Fail]

      6. In _update call demandDetails's createdTime is getting changed to lastModifiedTime. [Fail]

      7. I shouldn't able to update demandDetails's createdTime. [Fail]

      8. lastModifiedTime should be system generated, it shouldn't take it from the Request body. [Fail]

      < Demand/_create >

      1. (consumerCode,businessService,Period) This 3 combination should be unique. [PASS]
      :Tried with unique values : Response 200

      1.1 (consumerCode,businessService,Period) This 3 combination should be unique. [PASS]
      : Tried with dublicate values : getting error ("Demand already exists in the same period with the same businessService for the given consumercodes : PT-local-Abhilash-seth1")

      2. Try to create with a Wrong Bussiness Services, It should throw Error : [PASS]
      : Getting error ("No Business Service masters found for codes PT1") [PASS]

      3. taxPeriodFrom & taxPeriodTo values should present MDMS.
      : Tried with valid "taxPeriod" : Response 200 OK [PASS]

      3.1 taxPeriodFrom & taxPeriodTo values should present MDMS.
      : Tried with Invalid "taxPeriod" : Getting error ("No Tax Periods Found for the given demand with fromDate : 1522540800000 and toDate : 1554076799001") [PASS]

      4. Try to create with a wrong Payer UUID, It should throw Error : [PASS]
      : Getting error ("No users found for following uuids 4446312c-f21b-4cc3-9572-caca4e37225") [PASS]

      5. taxHeadMasterCode value should present in MDMS.
      :Created with a valid taxHeadMasterCode [PASS]

      5.1 taxHeadMasterCode value should present in MDMS.
      : created with a invlid taxHeadMasterCode :Getting error ("No TaxHead masters found for give codes PT_TAX1") [PASS]

      6. collectionAmount should always be less or equal to taxAmount for a given TaxHead. [PASS]
      : Created with response status 200 OK

      6.1 Try to create collectionAmount with ( 0> value).

      "taxHeadMasterCode": "PT_TAX",
      "taxAmount": 100,
      "collectionAmount": -50

      : created 200 OK [Fail]

      6.2 Try to create with greater collectionAmount than taxAmount, It should throw Error
      : Getting error ("Invalid demand details found with following Values : collection amount : 120, should not be greater than taxAmount : 100"") [PASS]

      7. Check if auditDetails is correct [PASS]

      </ Demand/_create >

      < Demand/_Update >

      3. Tried to Update Demand with Invalid taxPeriod. [PASS]
      : Getting error : "No Tax Periods Found for the given demand with fromDate : 1491004800000 and toDate : 1522540798001"

      5. Tried to Update the businessService Getting error [PASS]:
      No TaxHead masters found for give codes PT_TIME_REBATE, PT_TAX

      6. updated with an Invalid Payer UUID : got error [PASS]

      7. Updated the User Name : in Update, no user name has no change.

      8. Not able to update the Demands'Tenant Id [PASS]

      </ Demand/_Update >

      < Demand/_search >
      Search is working fine With param

      1. tenantId
      2. businessService
      3. consumerCode
      4. demandId
      5. email
      6. mobileNumber

      </ Demand/_search >

        Expenses

          Activity

          Hide
          Kaviyarasan P added a comment -

          All the 8 issues resolved, please verify. demand response will not have the expected data. please search the demands to verify the updated data.

          Show
          Kaviyarasan P added a comment - All the 8 issues resolved, please verify. demand response will not have the expected data. please search the demands to verify the updated data.

            People

            • Assignee:
              Kaviyarasan P
              Reporter:
              Abhilash Seth
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Potential Duplicates