Use Case Testing

Use instance testing is basically a Test Designing technique. Use instance contains the steps, this steps explains how the instrumentalist (which may live on anything similar user, customer or other devices or system.) interacts betwixt the applications. So this work instance comprehend all the functional requirement of the application. It has ii parts i is primary scenario in addition to other is particular scenario.

We volition hash out around examples.

Use Case Name: Bike driving
So the work instance cite is Bike driving

Actors in addition to System: Driver (user) in addition to Bike
The instrumentalist are user in addition to cycle who are going to interact betwixt each other.

Prerequisite:

  1. Bike should lead maintain fuel.
  2. Driver should know the driving.
  3. Driver should lead maintain the Bike Key.

These are the listing of prerequisite, cycle should lead maintain fuel, in addition to without these cycle won’t run in addition to other prerequisite is user should know the driving otherwise he volition collide or crash on something.

How user instance is exhibit the interaction betwixt the driver in addition to the cycle below are the normal menstruum in addition to alternate way or alternate piece of work flow. The divergence betwixt these ii flows are inward normal piece of work menstruum zip volition cash inward one's chips wrong, everything volition hap every bit per the menstruum it’s something similar the testing the application alongside the positive flow. And inward alternate menstruum something tin cash inward one's chips wrong.

Normal Flow:

  1. The driver volition sit down on the bike.
  2. The driver take the stand.
  3. The driver pose the keys.
  4. The driver spin the key.
  5. The user volition press showtime push clitoris to showtime bike
  6. The cycle volition start.
  7. The speedo meter volition start.
  8. The driver trace the clutch.
  9. The driver volition press the gear yesteryear foot.
  10. The driver volition showtime releasing the clutch like shooting fish in a barrel slowly.
  11. The cycle volition showtime going frontwards like shooting fish in a barrel slowly.
  12. The driver volition liberate whole clutch.
  13. The driver puts second.
  14. The cycle volition showtime gaining the speed.
  15. The driver volition pose third gear cycle volition accept to a greater extent than speed.
  16. The driver increate accelerator.
  17. The driver volition pose fourth gear cycle volition accept to a greater extent than in addition to to a greater extent than speed.
  18. The driver volition decrease the gear fourth third 2nd 1st neutral.
  19. The cycle volition showtime reducing the speed.
  20. The cycle speed volition cash inward one's chips zero.
  21. The driver spin the key.
  22. The cycle volition halt in addition to nigh down.
  23. The work instance ends alongside success.

This is the normal menstruum in addition to steps of interaction betwixt the driver in addition to the bike. Here matter is correct. But inward alternate piece of work flow, something goes wrong, come across below are the alternate piece of work flows.

Alternate Work Flow (Negative flow):

When at that topographic point is non fuel inward bike : the afterward measurement five the measurement six volition live on every bit follow
Alternates steps:
Step 6.  Bike volition non start.
Step 7. User instance volition ends alongside failure.

When user enters incorrect key : in addition to therefore cycle volition non showtime in addition to keys volition non spin
Alternates steps:
Step 4. The Driver enters incorrect key.
Step 5. The Driver tries to spin the key.
Step 6. The cycle volition non start.
Step 7. Use instance volition ends alongside failure.

When at that topographic point is no battery backup : therefore afterward pressing the starter the cycle volition non start
Alternate Steps:
Step 6.The driver volition press the showtime button.
Step 7.The Bike volition non start.
Step 8.The Use instance volition ends alongside failure.

There may live on the to a greater extent than alternate ways, this is how work instance await like. After creation of work instance tester has to write the examine cases for this work case. Mostly preferable is that write i examine instance for each flow, agency i examine instance for normal menstruum in addition to i examine instance for each alternate flows. That would live on plenty the comprehend all the requirements.

More interesting articles here :Generation Enggelmundus Internet Marketing Tool here :Zeageat IM http://www.software-testing-tutorials-automation.com/
Post a Comment (0)
Previous Post Next Post