CrazyEngineers
  • Test Beds

    Radhika Deshpande

    Radhika Deshpande

    @radhika-o4Adk0
    Updated: Oct 22, 2024
    Views: 893
    Can anyone tell me exact meaning/use of Stubs and Drivers in integration testing???

    With example will be great help 😀
    0
    Replies
Howdy guest!
Dear guest, you must be logged-in to participate on CrazyEngineers. We would love to have you as a member of our community. Consider creating an account or login.
Replies
  • durga ch

    MemberFeb 25, 2010

    umm,, I think stubs refers to different components in different feilds. Nevertheless I will try explaining in telecom terms.

    System: any provisioning/mediation/billing system involved

    as in testing environments, there are instances when some/all of the systems are not available.
    For eg: you have a provisioning system -a and respective mediation system b which talks to a switch c whichis not available. You then intend to replace/interface b with a stub of c , insense a replica of c , but not c ,C(stub) replicates the reposnes of c(switch)

    b send c(switch) a job like say xyz and expects if succesfull a response 00.
    now c(stub) will be programmed to send similar 00 for jobs like xyz...

    i think CEans from various other fields should be able to help us uderstanding usage of stubs in their own feilds.
    Are you sure? This action cannot be undone.
    Cancel
  • MaRo

    MemberFeb 25, 2010

    Durga is right.

    Stubs are methods we add to non finished codes for low level methods of the architecture, they're functions that doesn't depend on other functions results to work, so we write the function definition to return exactly the result that fits the whole test.

    For example:

    bool Foo()
    {
    return true;
    }

    The finished function should have the required procedures to get the same result.


    Drivers:

    Are the same as Stubs but they have lower level functions that depend on it complete.
    Are you sure? This action cannot be undone.
    Cancel
Home Channels Search Login Register