AW509

.pdf
School
London Met**We aren't endorsed by this school
Course
CS 5013
Subject
Computer Science
Date
Jan 8, 2025
Pages
44
Uploaded by ChefBookKouprey208
APJ Abdul Kalam Technological University, ThiruvananthapuramAW509.docxa aDocument DetailsSubmission IDtrn:oid:::10159:77227939Submission DateJan 6, 2025, 9:46 AM GMT+5:30Download DateJan 6, 2025, 9:47 AM GMT+5:30File NameAW509.docxFile Size1.1 MB40 Pages4,477 Words27,107 CharactersPage 1 of 44 - Cover PageSubmission ID trn:oid:::10159:77227939Page 1 of 44 - Cover PageSubmission ID trn:oid:::10159:77227939
Background image
5% Overall SimilarityThe combined total of all matches, including overlapping sources, for each database.Match Groups20Not Cited or Quoted 5%Matches with neither in-text citation nor quotation marks0Missing Quotations 0%Matches that are still very similar to source material0Missing Citation 0%Matches that have quotation marks, but no in-text citation0Cited and Quoted 0%Matches with in-text citation present, but no quotation marksTop Sources5%Internet sources3%Publications0%Submitted works (Student Papers)Integrity Flags0 Integrity Flags for ReviewNo suspicious text manipulations found.Our system's algorithms look deeply at a document for any inconsistencies that would set it apart from a normal submission. If we notice something strange, we flag it for you to review.A Flag is not necessarily an indicator of a problem. However, we'd recommend you focus your attention there for further review.Page 2 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939Page 2 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939
Background image
Match Groups20Not Cited or Quoted 5%Matches with neither in-text citation nor quotation marks0Missing Quotations 0%Matches that are still very similar to source material0Missing Citation 0%Matches that have quotation marks, but no in-text citation0Cited and Quoted 0%Matches with in-text citation present, but no quotation marksTop Sources5%Internet sources3%Publications0%Submitted works (Student Papers)Top SourcesThe sources with the highest number of matches within the submission. Overlapping sources will not be displayed.1Internetijsret.com1%2Internetwww.fastercapital.com1%3Internetneptune.ai0%4PublicationRoberto Latorre. "A successful application of a Test-Driven Development strategy…0%5Internetwww.geeksforgeeks.org0%6Internetwww.scitepress.org0%7Internetmedium.com0%8Internetvdoc.pub0%9Internetd-nb.info0%10Interneter.nau.edu.ua0%Page 3 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939Page 3 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939
Background image
11Internetpantheon.ufrj.br0%12Internetslideplayer.com0%13Internetexciton.cs.rice.edu0%14Internetopen-innovation-projects.org0%15Internetwww.irjet.net0%16PublicationFatima Zohra Trabelsi, Amal Khtira, Bouchra El Asri. "Algorithmic Business Proces…0%17Internetijact.in0%18Internetwww.sitepoint.com0%Page 4 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939Page 4 of 44 - Integrity OverviewSubmission ID trn:oid:::10159:77227939
Background image
Page 5 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 5 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Contents Task 01 ............................................................................................................................................41.1Monolithic Engineering....................................................................................................41.1.1Benefits of Monolithic Architecture .........................................................................51.1.2Challenges of Monolithic Architecture .....................................................................51.2Service-Oriented Architecture (SOA) ..............................................................................61.2.1Benefits of SOA ........................................................................................................71.2.2Challenges of SOA ...................................................................................................71.3Comparison and Justification ...........................................................................................8Task 02 ..........................................................................................................................................102.1UML Diagrams ..............................................................................................................102.1.1Usecase Diagram ....................................................................................................102.1.2ERD (Entity-Relationship Diagram).......................................................................112.1.3Class Diagram .........................................................................................................122.1.4Sequence Diagram ..................................................................................................142.1.5Activity Diagram ....................................................................................................162.2User Interfaces................................................................................................................172.2.1Home Page ..............................................................................................................172.2.2Customer Interface ..................................................................................................182.2.3Product Interface .....................................................................................................192.2.4Order Interface ........................................................................................................192.2.5Suppler Management Interface ..............................................................................202.2.6Login/Authentication Interface ...............................................................................212.2.7Order View Interface ..............................................................................................212.3Developing the TechFix SOC-based Solution ...............................................................21Page 6 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 6 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.3.1Overview of Solution Architecture .........................................................................222.3.2Core Services to be implemented ...........................................................................222.4Code ...............................................................................................................................252.5Database .........................................................................................................................27Task 03 ..........................................................................................................................................283.1Test Case 1: Customer Registration ...............................................................................283.2Test Case 2: Customer Login .........................................................................................283.3Test Case 3: Placing an Order ........................................................................................283.4Test Case 4: Updating Product Stock .............................................................................293.5Test Case 5: Viewing Available Products ......................................................................303.6Customer Management Test Cases ................................................................................303.7Order Management Test Cases ......................................................................................313.8Product Management Test Cases ...................................................................................323.9Vendor Management Test Cases ....................................................................................333.10System Administration Test Cases .............................................................................34Task 04 ..........................................................................................................................................354.1Server Deployment .........................................................................................................354.2Docker Deployment .......................................................................................................364.3Kubernetes Deployment .................................................................................................374.4Deployment Strategy ......................................................................................................384.4.1Benefits of Docker and Kubernetes Deployment ...................................................38References .....................................................................................................................................39Page 7 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 7 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Task 01 1.1Monolithic Engineering Overview: Solid engineering is the conventional way of building program applications, where all components are created and deployed as a single, bound together codebase. This design incorporates all functionalities inside one expansive application, such as user interfaces, business logic, and database administration. In TechFixs case, this would cruel the whole obtainment framework, counting citing, stock administration, and arrange situation, would be typified in one huge application. Monolithic Application for TechFix: For TechFix, a solid acquirement framework would solidify all functionalities into a single sending unit. When the framework is overhauled or new highlights are added, the complete application would need to be redeployed, notwithstanding of the nature of the alter. For occasion, upgrading the citing handle or altering the stock framework would require redeploying the whole application. This effortlessness in arrangement and centralized 15Page 8 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 8 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
administration may show up useful at to begin with, but it has its impediments, especially as the framework scales and the number of highlights develops. 1.1.1Benefits of Monolithic Architecture Simplicity in Development: One of the greatest points of interest of solid engineering is its effortlessness. With a single codebase and arrangement, engineers don’t have to oversee the complexities of disseminated administrations. For a little framework like TechFixs, where a group of designers works on a limited number of highlights, monolithic development can speed up the starting stages. Easier Debugging and Testing: Since everything is portion of one bound together application, it’s simpler to test and investigate issues. Engineers can run the whole application locally, making it less demanding to identify and settle bugs without stressing almost inter-service communication issues. Performance: A solid application doesn't require service-to-service communication over the arrange, which can be speedier when all usefulness is contained in one handle. For case, in TechFixs acquirement framework, getting to the stock database or putting orders won’t require organize calls between services. 1.1.2Challenges of Monolithic Architecture Versatility Issues: One critical restriction of solid engineering is adaptability. In the event that a particular component, such as the stock framework, encounters tall request, the as it were way to scale is to reproduce the whole application. This leads to wasteful resource use, as other parts of the framework (such as the quoting feature) might not require extra assets but will be scaled pointlessly. Viability and Complexity over Time: As TechFix develops and includes unused functionalities, the codebase will gotten to be more complex and harder to preserve. Any alter, no matter how little, might possibly influence the complete framework. For case, making a alter to the arrange arrangement framework might accidentally break the citing or stock administration modules, driving to downtime and disturbances. Arrangement Downtime: Upgrading or sending a monolithic application can be unsafe and time-consuming. Since the whole application must be redeployed with each alter, it presents the Page 9 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 9 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
plausibility of bugs influencing the complete framework. For TechFix, this seem lead to downtime within the obtainment framework, possibly deferring orders and influencing connections with suppliers. 1.2Service-Oriented Architecture (SOA) Overview: Service-Oriented Architecture (SOA) may be a more advanced approach to building computer program applications, where the framework is composed of numerous freely coupled administrations that connected with each other through well-defined interfacing, regularly utilizing APIs. Each benefit speaks to a unmistakable trade work, such as citing, stock administration, or arrange arrangement. These administrations can be created, sent, and kept up autonomously of each other. SOA Application for TechFix: In the case of TechFix, SOA would allow for a more measured approach to their acquirement framework. Rather than creating the complete application as one 12Page 10 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 10 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
unit, each key include (quoting, inventory visibility, and order placement) would be actualized as an free benefit. For case, a isolated citing benefit would handle estimating and provider demands, whereas the stock administration benefit would communicate with suppliers databases to check stock levels in real-time. This secluded approach guarantees that each benefit can work autonomously whereas communicating with others through APIs. 1.2.1Benefits of SOA Modularity and Flexibility: One of the key focal points of SOA is its secluded nature. Administrations are created as free units, making it simpler to include, overhaul, or expel functionalities. For TechFix, in case they choose to alter their citing instrument or include another provider, as it were the citing benefit would have to be be upgraded, with negligible affect on other administrations like stock or arrange arrangement. Scalability: SOA empowers granular adaptability. Each benefit can be scaled autonomously based on its request. On the off chance that TechFixs stock administration benefit needs more handling control due to a surge in orders, it can be scaled without influencing the citing or arrange arrangement administrations. This guarantees proficient asset utilization and moves forward framework execution. Maintainability: Since each benefit may be a isolated unit, keeping up the framework gets to be less demanding. Changes in one benefit wont influence the others, lessening the risk of system-wide disappointments. For TechFix, this implies the acquirement framework can advance without the chance of breaking other functionalities. Fault Isolation: In a SOA framework, issues in one service wont bring down the whole application. On the off chance that theres an issue with the citing benefit, the stock and arrange arrangement administrations can proceed working. This leads to higher framework accessibility, which is vital for TechFix to preserve productive obtainment forms. 1.2.2Challenges of SOA Initial Complexity: While SOA offers long-term benefits, it is more complex to actualize at first. Building autonomous administrations and guaranteeing legitimate communication between them requires cautious arranging. For TechFix, setting up a SOA-based obtainment framework might take longer at first due to the require for clear benefit definitions and API plan. 16Page 11 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 11 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Benefit Communication Overhead: SOA depends on network-based communication between administrations, which presents a certain overhead. For TechFix, this might lead to idleness in benefit reactions, especially on the off chance that there are various back-and-forth intelligent between administrations like stock checks and arrange situations. Benefit Administration: Overseeing multiple administrations and guaranteeing they follow to security, execution, and information judgment guidelines can be challenging. TechFix would require to implement service observing and administration components to guarantee smooth operation over all administrations. 1.3Comparison and JustificationCriteriaMonolithic Architecture Service-Oriented Architecture (SOA) Justification Development Complexity Easier to develop initially since all components are built together. More complex to set up initially as services need to be defined and integrated. While monolithic is simpler at the start, SOA's modularity makes it easier to manage long-term as TechFix's needs evolve. MaintainabilityHarder to maintain as the codebase grows and different parts are tightly coupled. Easier to maintain since services are independent and can be updated or replaced without affecting the entire system. SOA is more maintainable in the long run, reducing the risk of bugs and errors spreading across the entire system. ScalabilityWhole application must be scaled even if only one part requires it. Individual services can be scaled independently based on their specific resource needs. SOA offers better scalability, allowing TechFix to scale services like inventory or quoting separately based on demand. 17Page 12 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 12 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
DeploymentRedeploying the entire application is necessary for any change, increasing downtime risk. Independent deployment of services, reducing downtime and enabling faster updates. SOA reduces deployment risks by allowing each service to be updated independently, improving system availability for TechFix. Technology FlexibilityLimited to a single technology stack for the whole system. Different services can use the most suitable technology, providing greater flexibility. SOA provides more technology choices, allowing TechFix to adopt the best tools for specific services. Fault IsolationA failure in one part can affect the entire system. Failures are isolated to individual services, minimizing the risk of total system failure. SOA ensures that issues in one service won’t bring down the entire system, which is vital for TechFix’s continuous operation. Final Justification:Whereas Monolithic Architecture may be simpler to create at first, Service-Oriented Architecture (SOA) is the way better choice for TechFix due to its prevalent viability, adaptability, adaptability, and blame separation. As TechFix's obtainment framework develops and gets to be more complex, the capacity to scale and upgrade person administrations freely will give noteworthy operational benefits. SOA is particularly well-suited to the energetic needs of a trade like TechFix, which needs real-time integration with providers and mechanization of acquirement forms. Page 13 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 13 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Task 02 2.1UML Diagrams 2.1.1Usecase Diagram Page 14 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 14 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.1.2ERD (Entity-Relationship Diagram) Page 15 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 15 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.1.3Class Diagram Classes in the Diagram: Customer: Represents the customer entity with attributes like C_ID, CNAME, ADDRESS, PHONE_NUMBER, and EMAIL. The createCustomer() method allows for the creation of new customers, and viewOrderHistory() retrieves past orders. Page 16 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 16 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Vendor: Manages vendor information like VID, VNAME, and contact details. Methods such as addVendor() and updateVendorInfo() handle vendor management. Product: Represents products with PID, PNAME, AMOUNT, and VID (foreign key linking it to vendors). Methods include addProduct(), updateProductInfo(), and checkStock(). Order: Represents customer orders. Each order has an ID, date, and total amount. Methods include placeOrder() to allow customers to submit new orders and trackOrder() to follow the order status. OrderDetails: Contains information about the quantity of each product in an order. This class ensures that each order can contain multiple products. Stock: Maintains the available stock of each product. Methods such as updateStock() and viewStock() are essential for stock management. Login: Handles user login, with attributes for UserName and Password. The validateLogin() method checks login credentials. Relationships: Customer places Order. Order contains OrderDetails, linking products to orders. Product is part of OrderDetails and managed by Vendor. Stock is associated with Product, and the system checks stock availability during order placement. Page 17 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 17 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.1.4Sequence Diagram Actors and Objects Customer: The actor initiating the action by placing an order. Order System: The system responsible for handling order placement. Stock System: Ensures there is enough stock available for the ordered product. Database (DB): Stores and retrieves data related to orders, stock, and customer details. Flow of Events Customer -> Order System: The customer places an order. Order System -> DB: The order details are inserted into the database. Order System -> Stock System: The stock system is queried to check whether the product is in stock. 13Page 18 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 18 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Stock System -> DB: The stock system checks the product stock by querying the database. DB -> Stock System: The database returns stock availability. Stock System -> Order System: The stock system confirms that the product is available. Order System -> DB: The order details are finalized and inserted into the database. Order System -> Customer: The system confirms the order to the customer. Page 19 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 19 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.1.5Activity Diagram Scenario: Order Placement Workflow Start: The activity begins when the customer places an order. Check Stock: The system checks if the product is available in stock. Decision: A decision point checks if the stock is available: Yes (Stock Available): The order is placed, order details are inserted into the database, and the customer receives an order confirmation. No (Stock Unavailable): The customer is notified that the product is out of stock. End: The process ends after the order is either confirmed or the customer is notified. Page 20 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 20 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.2User Interfaces 2.2.1Home Page Page 21 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 21 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.2.2Customer Interface Page 22 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 22 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.2.3Product Interface 2.2.4Order Interface Page 23 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 23 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.2.5Suppler Management Interface Page 24 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 24 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.2.6Login/Authentication Interface 2.2.7Order View Interface 2.3Developing the TechFix SOC-based Solution The TechFix SOC-based solution points to address the inefficiencies in acquirement, arrange administration, and stock control that the company as of now faces. The solution includes creating Page 25 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 25 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
a Service-Oriented Architecture (SOA) to centralize and mechanize these forms, whereas moreover giving real-time stock administration and an effective citation framework. 2.3.1Overview of Solution Architecture TechFix's SOC-based arrangement will be built using a Service-Oriented Architecture (SOA) demonstrate, which is composed of discrete administrations that associated over a arrange. The SOA design permits for autonomous administrations to handle center trade forms such as obtainment, stock administration, and arrange following. This empowers more prominent adaptability, adaptability, and measured quality. 2.3.2Core Services to be implemented Customer Service This service will handle all customer-related operations such as registration, login, placing orders, and order history tracking. Features: Register new customers Customer login and session management Place orders with products and quantities View order history and track orders Vendor Service Vendor service will allow suppliers to register their products, update pricing and availability, and view orders placed by TechFix. Features: Register vendor information Upload new products and update product details View orders placed by TechFix Real-time visibility into stock levels Product Management Service Page 26 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 26 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
This service will handle the catalog of products TechFix can order, including availability, pricing, and vendor information. Features: Add, update, and remove products Fetch product details (name, pricing, vendor) Check availability of stock and manage inventory levels Quotation and Pricing Service This service will automate the process of requesting quotes from multiple vendors and comparing them to help TechFix get the best deals. Features: Request quotations from multiple vendors simultaneously Compare pricing across vendors Automate discount applications and pricing negotiations Order Management Service The order management service will oversee order placement, tracking, and status updates. Features: Automate order creation and placement Track the status of orders View order details and update statuses (e.g., shipped, delivered) Handle cancellations and returns Inventory Management Service Inventory service will monitor stock levels in real time and generate alerts when items are low or out of stock. Features: Manage stock levels for all products Page 27 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 27 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Real-time updates on stock availability Generate alerts for low stock or out-of-stock items Sync stock levels with vendor inventory data Authentication Service This service will handle login, authentication, and user management for both customers and vendors. Features: Secure login for customers and vendors Role-based authentication (admin, customer, vendor) Session management and password recovery Reporting and Analytics Service A service that allows for reporting on sales trends, order patterns, and vendor performance. Features: Generate sales and order reports Analyze order trends and vendor performance Inventory level reporting Forecast future orders based on historical data Page 28 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 28 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.4Code Page 29 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 29 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Page 30 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 30 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
2.5Database Page 31 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 31 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Task 03 3.1Test Case 1: Customer RegistrationTest Case IDTest Case Description Preconditions Test Steps Expected Result TC01Test customer registration functionality User must not be registered. 1. Open registration page. 2. Enter valid customer details. 3. Submit form. Customer is successfully registered, and confirmation message is displayed. 3.2Test Case 2: Customer Login Test Case IDTest Case Description Preconditions Test Steps Expected Result TC02Test customer login functionality Customer must be registered. 1. Open login page. 2. Enter valid credentials. 3. Click on login button. Customer is logged in successfully and redirected to the dashboard. 3.3Test Case 3: Placing an Order Test Case IDTest Case Description Preconditions Test Steps Expected Result Page 32 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 32 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
TC03Test placing an order for a product Customer must be logged in and product must be in stock. 1. Search for a product. 2. Add product to cart. 3. Proceed to checkout. 4. Confirm order. Order is placed successfully, and confirmation message is displayed. 3.4Test Case 4: Updating Product Stock Test Case IDTest Case Description Preconditions Test Steps Expected Result TC04Test updating stock for a product Product must already exist in the system. 1. Open stock management page. 2. Select a product. 3. Update the stock quantity. 4. Submit changes. Stock is updated successfully, and changes are reflected in the system. Page 33 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 33 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
3.5Test Case 5: Viewing Available Products Test Case IDTest Case Description Preconditions Test Steps Expected Result TC05Test viewing currently available products Products must exist in the system. 1. Open product list page. 2. View the list of products. 3. Check product details like name, price, and stock availability. Available products are displayed along with their respective details. 3.6Customer Management Test CasesTest Case IDTest Case Description Preconditions Test Steps Expected Result TC06Validate email format during registration Registration page accessible. 1. Enter an invalid email format. 2. Attempt to submit the form. Error message indicating invalid email format is displayed. TC07 Verify customer password strength requirements Registration page accessible. 1. Enter a password that does not meet the strength criteria. 2. Attempt to submit the form. Error message indicating password strength requirements is displayed. TC08 Check duplicate customer registration Customer already registered. 1. Attempt to register with an existing customer ID. 2. Submit registration. Error message indicating customer ID already exists is displayed. Page 34 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 34 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
TC09 Validate customer profile update Customer is logged in. 1. Access profile update page. 2. Modify customer details. 3. Save changes. Customer profile is updated successfully. TC10 Test login with incorrect credentials Customer must be registered. 1. Enter incorrect username/password. 2. Attempt to login. Error message indicating incorrect credentials is displayed. 3.7Order Management Test Cases Test Case IDTest Case Description Preconditions Test Steps Expected Result TC11Verify order history retrieval for a customer Customer must have placed orders. 1. Log in as the customer. 2. Access order history. 3. View list of orders. Order history is displayed correctly. TC12 Validate order cancellation Order must be placed. 1. Log in. 2. Access order list. 3. Select an order to cancel. 4. Confirm cancellation. Order is canceled, and status is updated. TC13 Check order status update Order status should be updatable. 1. Place an order. 2. Change the order status. Order status is updated correctly. Page 35 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 35 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
3. Verify status update. TC14 Test duplicate order placement Customer must be logged in. 1. Place an order. 2. Attempt to place the same order again. 3. Confirm. System prevents duplicate orders or alerts the user. TC15 Validate order details are correct Order must be placed. 1. Place an order. 2. View order details. 3. Verify product, quantity, and price. Order details are accurate. 3.8Product Management Test Cases Test Case IDTest Case Description Preconditions Test Steps Expected Result TC16Validate product addition by vendor Vendor must be logged in. 1. Log in as a vendor. 2. Add a new product. 3. Submit product details. Product is added to the system successfully. TC17 Verify product update functionality Product must exist. 1. Log in as a vendor. 2. Select an existing product. 3. Update product details. 4. Save changes. Product details are updated successfully. Page 36 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 36 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
TC18 Check product deletion by vendor Product must exist. 1. Log in as a vendor. 2. Select a product. 3. Delete the product. 4. Confirm deletion. Product is deleted, and confirmation is displayed. TC19 Test product availability status Product must be added to stock. 1. Add a product to inventory. 2. Check availability status. 3. Verify stock level. Product availability status is accurate. TC20 Validate product search functionality Products must be in the database. 1. Use search functionality. 2. Enter product criteria. 3. View search results. Products matching the criteria are displayed. 3.9Vendor Management Test Cases Test Case IDTest Case Description Preconditions Test Steps Expected Result TC21Verify vendor registration Vendor registration page accessible. 1. Enter vendor details. 2. Submit Vendor is registered successfully, and a confirmation message is displayed. Page 37 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 37 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
registration form. TC22 Validate vendor login functionality Vendor must be registered. 1. Enter valid credentials. 2. Attempt to log in. Vendor is logged in successfully and redirected to the dashboard. 3.10System Administration Test Cases Test Case IDTest Case Description Preconditions Test Steps Expected Result TC23Test user role permissions User must be assigned a role. 1. Log in with different user roles. 2. Access various functionalities. 3. Verify permissions. User access is restricted based on assigned role. TC24 Validate system backup functionality Backup system must be configured. 1. Trigger a backup operation. 2. Verify backup completion. 3. Check backup file integrity. Backup is completed successfully and backup file is intact. TC25 Check system logs for accuracy System must be running. 1. Perform various operations. 2. Access system logs. 3. Verify log entries. System logs reflect accurate operations and events. Page 38 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 38 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
TC26 Verify data import functionality Import file must be available. 1. Prepare data import file. 2. Trigger import process. 3. Verify imported data accuracy. Data is imported correctly, and no errors occur. TC27 Test system performance under load System must be operational. 1. Simulate high load. 2. Monitor system performance. 3. Evaluate system response. System performs within acceptable limits under load. Task 04 4.1Server Deployment Overview: Server deployment involves deploying the application directly onto a physical or virtual server. This approach is straightforward and involves setting up the application on a server where it can run continuously. Steps: Provision Server: Set up a physical or virtual server with the required operating system (e.g., Windows Server, Linux). Install Software: Install necessary software dependencies, such as .NET runtime for a C# application, and SQL Server. Deploy Application: Copy the application files to the server and configure them. Configure Server: Set up environment variables, firewall rules, and network settings to ensure proper communication and security. Monitor and Maintain: Continuously monitor server performance and application health. Apply updates and patches as needed. Page 39 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 39 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Pros: Direct Control: Complete control over the server environment and application configuration. Simplicity: Straightforward deployment without additional layers of abstraction. Cons: Scalability Issues: Scaling requires manual intervention and provisioning of additional servers. Maintenance Overhead: Requires ongoing maintenance, including security updates and hardware management. 4.2Docker Deployment Overview: Docker deployment involves containerizing the application and its dependencies into a Docker image, which can then be run on any environment that supports Docker. Steps: Create Dockerfile: Define the application environment and dependencies in a Dockerfile. Build Docker Image: Use the Dockerfile to build a Docker image of the application. Push to Repository: Push the Docker image to a Docker registry (e.g., Docker Hub, private registry). Deploy Docker Container: Run the Docker image as a container on a Docker host or orchestrator. Pros: Portability: Containers can run consistently across different environments (development, testing, production). Isolation: Each container runs in its isolated environment, reducing conflicts. Ease of Deployment: Simplifies deployment and scaling of applications. Cons: Complexity: Requires understanding Docker and container management. 23718Page 40 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 40 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Resource Overhead: Containers add a layer of abstraction, which can lead to additional resource consumption. 4.3Kubernetes Deployment Overview: Kubernetes is a container orchestration platform that automates the deployment, scaling, and management of containerized applications. Steps: Define Kubernetes Resources: Create YAML files defining deployments, services, and other Kubernetes resources. Deploy to Kubernetes Cluster: Apply the configuration files to a Kubernetes cluster using kubectl or other tools. Manage and Scale: Kubernetes manages container scheduling, scaling, and load balancing automatically. Monitor and Update: Use Kubernetes' monitoring and logging tools to ensure the application runs smoothly. Pros: Automated Scaling: Automatically scales applications based on demand. High Availability: Ensures application availability and fault tolerance through replication and load balancing. Easy Rollbacks: Facilitates rollbacks to previous versions in case of deployment issues. Cons: Complexity: Requires a steep learning curve and understanding of Kubernetes concepts. Overhead: Additional resource overhead for managing the Kubernetes infrastructure. 5Page 41 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 41 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
4.4Deployment Strategy Overview: A deployment strategy defines how updates and changes are rolled out to the application and its users. Common Strategies: Rolling Update: Gradually replaces instances of the application with new versions, minimizing downtime. Blue-Green Deployment: Runs two environments (blue and green). The new version is deployed to the inactive environment, and then traffic is switched to it. Canary Deployment: Releases the new version to a small subset of users first, allowing for testing and validation before full deployment. A/B Testing: Deploys multiple versions of the application simultaneously to different user groups to test and compare performance. Benefits: Minimized Downtime: Ensures users experience minimal disruption during updates. Risk Mitigation: Allows for testing new features and versions in controlled environments before full release. 4.4.1Benefits of Docker and Kubernetes Deployment Docker Benefits: Consistency: Provides a consistent runtime environment across development, testing, and production. Isolation: Isolates application dependencies, reducing conflicts and dependencies issues. Efficiency: Reduces resource usage compared to virtual machines. Kubernetes Benefits: Scalability: Automatically scales applications up or down based on demand. Resilience: Manages application failures, ensuring high availability and reliability. Management: Simplifies the deployment and management of containerized applications with automated rollouts and self-healing capabilities. 214Page 42 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 42 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Summary: Server Deployment is straightforward but lacks scalability and requires manual maintenance. Docker Deployment offers portability and ease of deployment but adds complexity. Kubernetes Deployment provides automated scaling and high availability but involves additional overhead and complexity. Deployment Strategies help manage updates with minimal disruption and risk. Docker and Kubernetes enhance deployment by ensuring consistency, efficiency, and automated management, making them suitable for modern, scalable applications. References Adzic, G. (2011). Specification by Example: How Successful Teams Deliver the Right Software. Manning Publications. Armstrong, J. (2020). Kubernetes Patterns: Reusable Elements for Designing Cloud-Native Applications. O'Reilly Media. Chappell, D. (2017). Introducing Windows Server 2016. Microsoft Press. Fowler, M. (2004). Patterns of Enterprise Application Architecture. Addison-Wesley. Gartner, Inc. (2021). Magic Quadrant for Container Management. Gartner. Kubernetes Authors. (2021). Kubernetes Documentation. Kubernetes.io. Retrieved from https://kubernetes.io/docs/ Lewis, J., & Fowler, M. (2014). Microservices: A Definition of This New Architectural Term. MartinFowler.com. Morris, D. (2019). Docker Deep Dive: A Hands-On Guide to Containerize Your Applications. Leanpub. 468910Page 43 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 43 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image
Nagappan, N., & Ball, T. (2005). Code Churn: A Key Predictor of Software Defect Density. Microsoft Research. Pahl, C., & Jamshidi, P. (2016). Microservices: A Systematic Mapping Study. IEEE. Red Hat. (2020). OpenShift Documentation. RedHat.com. Retrieved from https://docs.openshift.com/ Smith, R., & Williams, T. (2017). Software Testing and Continuous Integration: A Practical Guide. Wiley. Turner, D., & Schmidt, M. (2018). Effective DevOps: Building a Culture of Collaboration, Affinity, & Tooling at Scale. O'Reilly Media. Vogel, A. (2015). Docker Cookbook: Over 70 Recipes to Help You Get the Most Out of Docker. Packt Publishing. Wells, D. (2021). Mastering Kubernetes: Expert Techniques for Managing Kubernetes Clusters. O'Reilly Media. Yamane, M. (2020). The DevOps Handbook: How to Create World-Class Agility, Reliability, & Security in Technology Organizations. IT Revolution Press. 1111Page 44 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939Page 44 of 44 - Integrity SubmissionSubmission ID trn:oid:::10159:77227939
Background image