Se Lab Notes
Se Lab Notes
Use case diagrams are drawn to capture the functional requirements of a system.
After identifying the above items, we have to use the following guidelines to draw an
efficient use case diagram
The name of a use case is very important. The name should be chosen
in such a way so that it can identify the functionalities performed.
Give a suitable name for actors.
Show relationships and dependencies clearly in the diagram.
Do not try to include all types of relationships, as the main purpose of
the diagram is to identify the requirements.
Use notes whenever required to clarify some important points.
In forward engineering, use case diagrams are used to make test cases and in
reverse engineering use cases are used to prepare the requirement details from the
existing application.
Use case diagrams can be used for −
Requirement analysis and high level design.
Model the context of a system.
Reverse engineering.
Forward engineering.
Sample Use Case Diagrams for Practise
ER (Entity Relationship) Diagram in DBMS
For example, Suppose we design a school database. In this database, the student
will be an entity with attributes like address, name, id, age, etc. The address can be
another entity with attributes like city, street name, pin code, etc and there will be a
relationship between them.
Component of ER Diagram
1. Entity:
An entity may be any object, class, person or place. In the ER diagram, an entity can
be represented as rectangles.
a. Weak Entity
An entity that depends on another entity called a weak entity. The weak entity
doesn't contain any key attribute of its own. The weak entity is represented by a
double rectangle.
2. Attribute
For example, id, age, contact number, name, etc. can be attributes of a student.
a. Key Attribute
The key attribute is used to represent the main characteristics of an entity. It
represents a primary key. The key attribute is represented by an ellipse with the text
underlined.
b. Composite Attribute
c. Multivalued Attribute
An attribute can have more than one value. These attributes are known as a
multivalued attribute. The double oval is used to represent multivalued attribute.
For example, a student can have more than one phone number.
d. Derived Attribute
An attribute that can be derived from other attribute is known as a derived attribute.
It can be represented by a dashed ellipse.
For example, A person's age changes over time and can be derived from another
attribute like Date of birth.
3. Relationship
When only one instance of an entity is associated with the relationship, then it is
known as one to one relationship.
For example, A female can marry to one male, and a male can marry to one female.
b. One-to-many relationship
When only one instance of the entity on the left, and more than one instance of an
entity on the right associates with the relationship then this is known as a
one-to-many relationship.
For example, Scientist can invent many inventions, but the invention is done by the
only specific scientist.
c. Many-to-one relationship
When more than one instance of the entity on the left, and only one instance of an
entity on the right associates with the relationship then it is known as a many-to-one
relationship.
For example, Student enrolls for only one course, but a course can have many
students.
d. Many-to-many relationship
When more than one instance of the entity on the left, and more than one instance of
an entity on the right associates with the relationship then it is known as a
many-to-many relationship.
For example, Employee can assign by many projects and project can have many
employees.
Notation of ER diagram
Database can be represented using the notations. In ER diagram, many notations are
used to express the cardinality. These notations are as follows:
TRAVEL AGENCY EXAMPLE
Entity Relationship Diagram Symbols & Notations mainly contains three basic
symbols which are rectangle, oval and diamond to represent relationships between
elements, entities and attributes. There are some sub-elements which are based on
main elements in ERD Diagram. ER Diagram is a visual representation of data that
describes how data is related to each other using different ERD Symbols and
Notations.
Following are the main components and its symbols in ER Diagrams:
● Rectangles: This Entity Relationship Diagram symbol represents entity types
● Ellipses : Symbol represent attributes
● Diamonds: This symbol represents relationship types
● Lines: It links attributes to entity types and entity types with other relationship
types
● Primary key: attributes are underlined
● Double Ellipses: Represent multi-valued attributes
ER Diagram Symbols
Entity Relationship Diagram Symbols & Notations mainly contains three basic
symbols which are rectangle, oval and diamond to represent relationships between
elements, entities and attributes. There are some sub-elements which are based on
main elements in ERD Diagram. ER Diagram is a visual representation of data that
describes how data is related to each other using different ERD Symbols and
Notations.
Following are the main components and its symbols in ER Diagrams:
● Rectangles: This Entity Relationship Diagram symbol represents entity types
● Ellipses : Symbol represent attributes
● Diamonds: This symbol represents relationship types
● Lines: It links attributes to entity types and entity types with other relationship
types
● Primary key: attributes are underlined
● Double Ellipses: Represent multi-valued attributes
ER Diagram Symbols
Example of Entities:
A university may have some departments. All these departments employ various
lecturers and offer several programs.
Some courses make up each program. Students register in a particular program and
enroll in various courses. A lecturer from the specific department takes each course,
and each lecturer teaches a various group of students.
Relationship
Relationship is nothing but an association among two or more entities. E.g., Tom
works in the Chemistry department.
Entities take part in relationships. We can often identify relationships with verbs or
verb phrases.
For example:
● You are attending this lecture
● I am giving the lecture
● Just loke entities, we can classify relationships according to
relationship-types:
● A student attends a lecture
● A lecturer is giving a lecture.
Weak Entities
A weak entity is a type of entity which doesn’t have its key attribute. It can be
identified uniquely by considering the primary key of another entity. For that, weak
entity sets need to have participation.
Strong entity set always has a primary It does not have enough attributes to
key. build a primary key.
The member of a strong entity set is The member of a weak entity set called
called as dominant entity set. as a subordinate entity set.
The connecting line of the strong entity The line connecting the weak entity set
set with the relationship is single. for identifying relationship is double.
Attributes
Defines the numerical attributes of the relationship between two entities or entity
sets.
Different types of cardinal relationships are:
● One-to-One Relationships
● One-to-Many Relationships
● May to One Relationships
● Many-to-Many Relationships
1.One-to-one:
One entity from entity set X can be associated with at most one entity of entity set Y
and vice versa.
Example: One student can register for numerous courses. However, all those courses
have a single line back to that one student.
2.One-to-many:
One entity from entity set X can be associated with multiple entities of entity set Y,
but an entity from entity set Y can be associated with at least one entity.
For example, one class is consisting of multiple students.
3. Many to One
More than one entity from entity set X can be associated with at most one entity of
entity set Y. However, an entity from entity set Y may or may not be associated with
more than one entity from entity set X.
For example, many students belong to the same class.
4. Many to Many:
One entity from X can be associated with more than one entity from Y and vice versa.
For example, Students as a group are associated with multiple faculty members, and
faculty members can be associated with multiple students.
Now in this ERD Diagram Tutorial, we will learn how to create an ER Diagram.
Following are the steps to create an ER Diagram:
You need to study the files, forms, reports, data currently maintained by the
organization to identify attributes. You can also conduct interviews with various
stakeholders to identify entities. Initially, it’s important to identify the attributes
without mapping them to a particular entity.
Once, you have a list of Attributes, you need to map them to the identified entities.
Ensure an attribute is to be paired with exactly one entity. If you think an attribute
should belong to more than one entity, use a modifier to make it unique.
Once the mapping is done, identify the primary Keys. If a unique key is not readily
available, create one.
Entity Primary Key Attribute
Student Student_ID StudentName
For Course Entity, attributes could be Duration, Credits, Assignments, etc. For the
sake of ease we have considered just one attribute.
● To help new testers and devs quickly pick up testing, even if they join in the
middle of an ongoing project.
2.
3. In the Folders panel, click Create Folder, name the folder, then click the check.
4.
5. The new folder is saved.
– OR –
Click an existing folder in which you want to create a new test case.
6. Click New to create a new test case.
7.
8. The Create Test Case screen appears.
9. On the Details tab, add your desired information.
Add and delete options appear when focus is on a step. You can drag-and-drop to reorder
steps, as well.
11. Fill out the information on the remaining tabs.
● On the Traceability tab, use to link an existing issue from Jira to the test case, or use +
to create and link a new issue to the test case. You can also link Web URLs.
● On the Execution tab, you can track previous test-execution results.
● On the Attachments tab, you can attach files to the test case.
12. Click Save.
The test case saves, and a notification appears on the screen.
EXAMPLE TEST CASE SCENARIO
What is GitHub?
GitHub is a Git repository hosting service. GitHub also facilitates with many of its
features, such as access control and collaboration. It provides a Web-based
graphical interface.
GitHub is an American company. It hosts source code of your project in the form of
different programming languages and keeps track of the various changes made by
programmers.
Benefits of GitHub
GitHub can be separated as the Git and the Hub. GitHub service includes access
controls as well as collaboration features like task management, repository hosting,
and team management.
○ You can attract recruiter by showing off your work. If you have a profile on
GitHub, you will have a higher chance of being recruited.