In: Computer Science
I will be creating a simulation of the reception of a bank in C++ (based off the requirements listed below). I plan to develop a test plan that I will use to make sure the key requirements are all covered by a test case.
*I just need help defining how each of the requirements below can be tested. I can use a numbering system to map each requirement to the appropriate test case(s). High level information would be appreciated. I can elaborate on the details. I just need assistance identifying how I can test the requirements below.
Requirements for my simulation are as follows:
Ans) If there is no customer all teller should be down.
let cust_no = number of customer at the time( integer )
if 4>=cust_no > 0 get first teller.
since they are taking random amount of service time the code written in c++ shoud take ram and execution time of each part of code should be less and the interface should be interactive with customer , the c++ codes should be distributted in classes and packages based on different functionalities so that on time running code will be less. there should be a fixed time for a customer if he takes more than that refix the teller and call next. to test this we can take a integer map with different values if value is less than fixed amount of time wait or process the teller for that much time and by completion action of customer refix the teller for next person.
for getting up and down the tellers we again take the integer list or map with different values as cust_no
if list[i] > 4 get teller second
if list[i] > 8 get teller third
if list[i] <= 8 and third teller is up then down the teller third
if list[i] <= 4 and second teller is up then down the teller third
create an object which contain the following attributes aduring customer using teller
add this objects in list for testing this we can create attributes related with
and sort accrdingly..
since customer comming at random time the first customer can up the first teller
switch main controller of teller at 10 am and with recording the sorted values down the teller at 1pm