Use cases for user classes

profileraghu ram
1stattemptwithcomments.docx

1

Use Cases.

Student Name:

Institution Name:

Course Name: Requirements and project management

Due Date: 29/11/2021

Faculty Name: Professor Richard Lamb

Use Case Table one.

It is not clear what this product is or does. You jump around between Consumers as actors and developers and testers. A Use Case should be a clear example of an actor using your product to achieve a specific result.

ID and Name

Requesting information about food ingredients and the nutrients value.

Primary/Secondary Actor

Consumers

Description

The consumer selects specific kind of food from the system, for which the consumer wants to check the ingredients.

Trigger

Consumer clicks on the food ingredients Why?

Precondition

Consumer is logged into the system.

The Consumer has at least one count with personal authentication credentials.

The system has listed various kinds of food.

Post condition

The type of food selected has been dispensed. This does not match the Normal Flow

Normal Flow

The system shows the accounts for different users.

The account owner picks the desired account.

The account owner chooses the kind of food to see the result.

What does this accomplish\?

Assumptions

The system displays the type of food not selected.

Use Case Table two

ID and Name

Inquiring about the expiry date of food.

Primary/Secondary Actor

Consumers

Description

The consumer chooses a given type of food, for which he/she is interested in knowing the expiry date.

Trigger

Consumer clicks on point indicated for the information about until the date the food will be safe for human consumption.

Precondition

Consumer is allowed the access into the system. After filling the correct personal information, such as username and password.

The Consumer has at least one count with personal authentication credentials.

The system has listed information about various kinds of food.

Post condition

The specified type of information that the customer is inquiring about is displayed.

Normal Flow

The system shows the accounts for different users.

The account owner picks the desired account.

The system asks about the food to display.

The customer selects the kind of food he/ she is interested in.

The system displays the food item selected by the customer.

The owner of the account selects the expiry date of the selected

food. What is the state of the system when this terminates?

Alternate Flow

The system shows the accounts for different users. How is this different?

The account owner picks the desired account.

The system asks about the food to display.

The customer selects the kind of food he/ she is interested in.

The system displays the food item selected by the customer.

The owner of the account selects the manufacturing date of the food.

The customers check the longest time the food can stay while fit for human consumption.

Assumptions

The expiry date provided by the manufacturer is a genuine date.

Use Case table three

ID and Name

Testing the system.

Primary/Secondary Actor

Software team.

Description

The testing engineers who are part of the software team, test the functionality of the system.

Trigger

The testing engineers operates the system.

Precondition

The case for testing is set, the guidelines detailing on how to perform the testing are well outlined. the program setting, testing environment and the requirements necessary for conducting the test.

Post condition

This includes the information describing the outcome of the test, and how the system would after the test.

The testing outcome is generated.

Normal Flow

The engineers create the testing environment for the better-quality testing.

Creation of test cases for the testing process as well as setting the standard for which the system must meet for it to be considered of the right quality.

Choosing the data to be used during the testing process.

Performing the of test.

Identification and Reporting of any kind of defects in the system.

Regression testing, to identify the side effects that results from the testing process.

Log defects, which involves the fixing of system defects.

Retest, this is where the testing engineers retests the system, or performs the test afresh if in case the first testing was not successful.

Assumptions

The modules of the system being tested has been coded to completion.

The testing is done before the system is released for use by other users.

Use Case table four.

ID and Name

Designing and developing the system.

Primary/Secondary Actor

Software team

Description

The team of developers who are part of the software team, builds and implements the system as well as responding to feedback and making the necessary adjustments for the system to function as desired.

Trigger

The developer codes the system.

Precondition

The necessary resource for implementing the system is identified and acquired.

Computers to be used are prepared for the task.

The right platform of coding as well as the compiler.

The language to be used in coding is determined.

Post condition

By using the right compiler, the system the modules are tried as

units and then integrated to come up with the system.

Normal Flow

The developers prepare computers, obtain the Integrated

Development Environment (IDE), the suitable compilers.

Following the system design,

Developers start coding.

The modules are tested.

Integration of the modules is done to generate the system.

Alternate flow

The developers prepare the computers, obtain the right IDE, Why would this alternate take place?

Development Environment (IDE), the suitable compilers.

Without following any design, the developers start coding with the idea of the software in their minds,

Testing the modules

Integration of the modules to form the system.

Assumptions

The right design is followed.

Use Case Table five.

ID and Name

Building the sensor smart labels.

Primary/Secondary Actor

The software team.

Description

The software team will create a software that is necessary for the monitoring and identifying the taste of the food taste, in addition the software will help in determining the quantity of bacteria in the food bacteria quantity in the food.

Trigger

The testing engineers activates the sensor.

Precondition

A sample of food to be tested is dispensed into the software.

Post condition

The software indicates the taste of food to determine whether it is suitable for human consumption

The quantity of bacteria is determined.

Normal Flow

The food sample is prepared.

The Sensor is used to identify the taste of food.

The sensor Is used to determine the quantity of bacteria in the food.

Assumptions

The sensor is not biased.

The sensor is not compromised so that the outcomes can be accurate.

Use Case table six.

ID and Name

Dividing and transporting food.

Primary/Secondary Actor

Retailers

Description

This is the team that acts as the intermediate between the wholesalers and the consumers. They help in dividing the food into small portions and transport the food from the wholesaler’s premises to where the consumers are located.

Trigger

Dividing food into small portions.

Precondition

The food is manufactured appropriately and is of the right quality.

The food has been tested and the bacteria levels are not to the extent of causing harm to the consumer.

Post condition

The food is divided into smaller amounts desired by the consumers and transported to reach he consumers

Normal Flow

The retailers get food from the wholesaler.

They divide the food into small portions

They transport the food to the location of the consumers

The retailers deliver food to the consumer.

.

Assumptions

The food is transported within the right time to avoid the food reaching their expiry dates before delivery.

Use Case table seven.

ID and Name

Controlling the food production and cost.

Primary/Secondary Actor

Government

Description

The team from the government Controls the production of food so as to ensure that the right ingredients are used, and the right procedures are followed in the production process. And lastly ensure that the food is of the right quality. In addition to that the control on the cost of food by the government is to prevent the exploitation of consumers by the retailers and wholesalers by right prices.

Trigger

Setting the price of food ensuring that the consumer is not exploited.

Setting up the standards of quality produced by the food providers.

Precondition

The government is involved in the production of food.

The government participates in the testing of food, to ensure quality standards.

The Consumer has at least one count with personal authentication credentials.

The system has listed various kinds of food.

Post condition

The type of food selected has been dispensed. This does not match your Normal Flow

Normal Flow

The government inspects the food production process.

The government inspects the quality of produced food.

The government makes a follow up on the prices of food.

What is the final state of your system?

Assumptions

The government does not interfere with the stakeholders and its role remains solely that of inspections and ensuring that the government requirements are followed in the production process.

Use Case Table Eight

ID and Name

Updating regulations and guide for food production and sensor detection food quality.

Primary/Secondary Actor

Government

Description

The government performs the role of reviewing and adjusting the regulations that govern the food production process.

Trigger

Updating the regulations

Precondition

Examination of the already existing regulations controlling the food production.

Evaluating the significance of those regulations with relation to the current situation.

Making the decision on how to adjust the regulations. As well implementing new ones.

Post condition

Adjusting the laid down regulations order to make them better and be in line with the current time, so as to ensure that the production of food is done in accordance with the regulations and quality

Generating new regulations that were not there before, to address the emerging issues has affect the food production sector.

Normal Flow

Studying the regulations controlling the food production,

Determining their relevance in the sector.

Designing adjustment to better the regulations and make them more effective.

Planning and putting the regulations into action.

Assumptions

The government performs the process of updating the regulations without favoritism.