Kulcare Docs
Test plansCross app

Test Plan: Cross-App Integration

Module: Cross-App Integration Status: 🔄 Pending


Overview

Cross-app integration testing validates the complete flow between Patient App and Clinic App.

Test Flow

Patient App                          Clinic App
    │                                    │
    │  1. Search Doctor                 │
    │──────────────────────────────────►│
    │                                    │
    │  2. Get Time Slots                 │
    │──────────────────────────────────►│
    │                                    │
    │  3. Book Appointment               │
    │──────────────────────────────────►│
    │                                    │
    │◄──── 4. Appointment Created ────────│
    │                                    │
    │  5. View Appointment               │
    │──────────────────────────────────►│
    │                                    │
    │  6. Clinic Updates Status           │
    │◄──────────────────────────────────│
    │                                    │
    │  7. Patient Sees Update            │
    │──────────────────────────────────►│

Test Cases

End-to-End Booking Flow

#Test CasePriorityStepsExpectedStatus
INT-01Patient searches doctorP0Search by name/specialtyDoctor appearsPending
INT-02Patient views doctor profileP0Click doctorProfile with facilitiesPending
INT-03Patient gets time slotsP0Select dateAvailable slots shownPending
INT-04Patient books appointmentP0Select slot → OTP → ConfirmAppointment createdPending
INT-05Clinic sees appointmentP0Go to queueNew appointment shownPending
INT-06Clinic starts encounterP0Click StartEncounter startedPending
INT-07Clinic completes appointmentP0Mark completeStatus updatedPending
INT-08Patient sees status updateP0View appointmentsStatus shows "Completed"Pending

Unauthenticated Booking Flow

#Test CasePriorityStepsExpectedStatus
INT-09Send OTP for bookingP0Enter phone → SendOTP sentPending
INT-10Verify OTPP0Enter correct OTPVerifiedPending
INT-11Complete bookingP0Fill details → SubmitAppointment createdPending
INT-12Receive confirmationP0After bookingConfirmation shownPending

Authenticated Booking Flow

#Test CasePriorityStepsExpectedStatus
INT-13Login as patientP0Enter credentialsLogged inPending
INT-14Book appointmentP0Select slot → ConfirmAppointment createdPending
INT-15First-time consentP0First clinic visitConsent promptPending
INT-16Return visitP1Visit same clinicNo consent promptPending

Appointment Management

#Test CasePriorityStepsExpectedStatus
INT-17Patient cancelsP0Cancel appointmentStatus = CancelledPending
INT-18Clinic marks no-showP0Mark as no-showStatus = No-showPending
INT-19Patient reschedulesP1Select new slotNew time bookedPending

Data Synchronization

#Test CasePriorityStepsExpectedStatus
INT-20Patient created in clinicP0Patient books first timePatient record createdPending
INT-21Patient historyP0View patientShows all visitsPending
INT-22Real-time updatesP1Change statusReflects immediatelyPending

Edge Cases

#Test CasePriorityStepsExpectedStatus
INT-23Slot booked by anotherP0Select slot → BookError: "Slot taken"Pending
INT-24Doctor unavailableP1Doctor deactivatesError shownPending
INT-25Cross-clinic bookingP1Book with Doctor A at Clinic BCorrect clinicPending

API Integration Points

Patient → Clinic

APIDirectionPurpose
/identity/practitioners/searchPatient → BackendSearch doctors
/patient/public_appointments/time_slotsPatient → BackendGet slots
/patient/public_appointments/send_codePatient → BackendOTP verification
/patient/public_appointments/{id}Patient → BackendCreate appointment

Clinic → Patient

APIDirectionPurpose
/clinical/appointmentsClinic → BackendView/manage appointments
/clinical/appointments/{id}Clinic → BackendUpdate appointment
/clinical/facilities/{id}/queueClinic → BackendQueue management

Test Data Requirements

TypeDataPurpose
Patient APatient app accountAuthenticated booking
Patient BNew (via OTP)Unauthenticated booking
Doctor AClinic app, activeComplete flow
Doctor BNo availabilityError scenario
AppointmentBooked, pendingStatus update testing

Test Execution Checklist

Pre-Flight

  • Test accounts ready (Patient A, Patient B, Doctor A)
  • Doctor A has availability set
  • Staging environment accessible
  • API tools ready

End-to-End Flow

  • INT-01 to INT-08

Unauthenticated Flow

  • INT-09 to INT-12

Authenticated Flow

  • INT-13 to INT-16

Appointment Management

  • INT-17 to INT-19

Data Synchronization

  • INT-20 to INT-22

Edge Cases

  • INT-23 to INT-25

Test Plan Status: 🔄 Pending Total Test Cases: 25

On this page