Skip to content

Lab 9 Report

İbrahim Kayan edited this page Apr 30, 2026 · 32 revisions

Lab 9 Report

Date: April 30, 2026 Attendees: Amin Abu-Hilga, Övgü Su Afşar, Muhammet Sami Çakmak, Beratcan Doğan, İbrahim Kayan, Mehmet Bora Sarıoğlu, Burak Ögüt


Requirements Review

Methodology

We revisited every wiki requirement and tagged each as DONE, PARTIAL, or MISSING against the current code. All wiki requirements are committed to Final Delivery — none are deferred.

Scoping meeting for Blog, Community, and Profile-content requirements. Before implementing the Blog (1.1.6), Community (1.1.7–1.1.12 and 1.2.4), and Profile-content (1.2.2) clusters, we will hold a dedicated meeting with the instructor and a project stakeholder to confirm priorities, refine user-facing surfaces, and lock acceptance criteria. The meetings are scheduled this fridayand the second one in the final week of the project, after the smaller well-bounded features (mentorship lifecycle, meetings, tasks, advanced recommendation, notifications, admin) have shipped, so the community-style features are implemented against confirmed scope.

Status by Area

1.1.1.1 Mentees (13)

# Status Plan
1, 2, 3, 4, 5, 9, 10 DONE Profile CRUD, recommendation list, mentorship requests, in-app messaging (#245), single-active-mentor enforcement, and keyword search are live
6 MISSING Build Task entity with deadlines + a TaskSubmission upload endpoint (#248)
7 MISSING Add feedback field on TaskSubmission plus a GET endpoint so the mentee can view it
8 MISSING Build a Meeting entity (separate from AvailabilitySlot) with concrete dates, plus GET /api/meetings for the mentee (#284)
11 MISSING Add POST /api/mentorships/{id}/rating, available only after the relationship reaches COMPLETED/TERMINATED
12 MISSING Add POST /api/mentorships/{id}/cancel with cancel-reason tracking; trigger escalating auto-ban based on Mentee.cancelCount
13 MISSING Build a unified Report entity (also reused for community reporting) with an admin review queue

1.1.1.2 Mentors (15)

# Status Plan
1–3, 5–7, 11, 12 DONE Profile editing, candidate browsing, accept/reject, messaging, multi-mentee capacity, and predefined 1/3/6-month durations are all in production
4 PARTIAL Match-found notification fires on every browse — fix per bug #273 to fire only when the top match actually changes
8 PARTIAL Only weekly recurring availability slots exist; need an explicit Meeting entity with concrete dates to satisfy this requirement
9, 10 MISSING Both unblocked by the Task entity work (#248) — assign weekly tasks with deadlines, review submissions, and provide structured feedback
13, 14 MISSING Add POST /api/mentorships/{id}/extend and POST /api/mentorships/{id}/end with the appropriate state transitions and notifications
15 MISSING Build the Blog feature (post + comment + like) — final scope confirmed in the stakeholder meeting

1.1.1.3 Admins (3) — All MISSING

AdminController is currently a stub (only the /me endpoint exists). For Final Delivery we will build admin endpoints to ban/unban users, list flagged accounts, and walk through the report review queue. All three requirements depend on the unified Report entity that is also used by 1.1.1.1.13 and 1.1.12.

1.1.2 Recommendation (8)

# Status Plan
6, 7 DONE Surname and profile photo are hidden at the recommendation stage (to be re-verified by acceptance test); mentees cannot search or discover other mentees because no such endpoint exists
1, 2, 8 PARTIAL (1) Background fields are not yet weighted into the matching score; (2) the match-found notification over-fires on every browse (bug #273); (8) the capacity check has a race condition (bug #270) — add a DB-level optimistic lock
3 MISSING Add city (and optional lat/lng) to User, include a proximity bucket in the score, and expose a distance filter
4 MISSING Add a "diverse pick" branch in rankMentors that surfaces ~10% out-of-primary-goal mentors via shared interests/skills
5 MISSING Return a per-recommendation factor breakdown on MentorMatchResponse (e.g. "shared interest: ML; same major; 3 km away") to power the explanation card UI

1.1.3 Messaging (5)

# Status Plan
1–4 DONE STOMP + REST messaging, paginated history, and document/link attachments via AttachmentController (#245)
5 PARTIAL ConversationKind enum already supports mentor-to-mentor conversations; need to wire the entry point on web and mobile and confirm it works without an active mentorship requirement (#284)

1.1.4 Scheduling (6)

# Status Plan
1 DONE Mentor weekly availability is fully managed via AvailabilityController
2 PARTIAL Recurring meetings need a dedicated Meeting entity with concrete dates — the current AvailabilitySlot models only the weekly template, not actual scheduled meetings
3, 4 MISSING Send a confirmation notification on meeting create/accept and a reminder via a @Scheduled job (the MEETING_REMINDER enum value already exists)
5 MISSING Add a mentee reschedule-request flow: POST /api/meetings/{id}/reschedule with mentor approval
6 MISSING Add a daily @Scheduled sweep that auto-terminates active mentorships once endDate < now

1.1.5 Tasks & Progress (8)

# Status Plan
6 DONE Shared-goal field on Mentorship plus PUT /api/mentorships/{id}/goal for both parties
1–5 MISSING Build Task entity with deadlines, submission upload (reusing AttachmentStorageService), structured feedback fields, per-mentorship task history, and a progress aggregation endpoint (#248)
7 MISSING Build a Milestone entity tied to the mentorship with progress calculation across completed milestones
8 MISSING Add a deadline + milestone reminder scheduler with per-user opt-in preference

1.1.6 Blog (4) — All MISSING

Build BlogPost, BlogComment, and BlogLike entities; expose /api/blogs CRUD with mentor-author authorization; integrate the published-posts list into the mentor public profile (#283). Final scope confirmed in the stakeholder meeting.

1.1.7–1.1.12 Communities (~60) — All MISSING

Final scope to be confirmed in the stakeholder meeting before last-week implementation. High-level plan, by subsection:

Subsection Reqs Plan
1.1.7 Creation & Membership 16 Community entity (immutable name, slug, visibility enum), Moderator + MembershipRequest entities, join/leave/approve endpoints
1.1.8 Posts & Comments 19 Post (TEXT/IMAGE/VIDEO/LINK/POLL via type enum + Poll sub-entity), Comment with parentId, Bookmark, Award; CRUD with author/mod checks
1.1.9 Voting & Reputation 6 PostVote/CommentVote (unique per user-target), cached postReputation/commentReputation on User, hot-score ranking
1.1.10 Feed & Discovery 5 /api/feed/home, /api/feed/popular, community feed; sort modes hot/new/top/rising/controversial
1.1.11 Moderation 14 mod management endpoints, CommunityBan/CommunityMute, AutomodRule (spam, keyword, flair, suspicious-activity flagging), admin override endpoints
1.1.12 Reporting 5 unified Report entity (polymorphic target) + ReportRoutingService (mod-first vs. admin-direct based on violation type)

1.2.1 Notifications (7)

# Status Plan
4, 5 DONE Notifications are scoped to relevant users only; mentees receive a REQUEST_ACCEPTED notification when a mentor accepts their request
1, 2 PARTIAL In-app delivery via the notification event bus is in place; FCM (mobile) push dispatch is missing — the User.deviceToken field exists but no FCM SDK or send path
3 MISSING Add meeting confirmation/reminder dispatch alongside the new Meeting entity
6 MISSING Add the REQUEST_SUBMITTED enum value and dispatch on mentorship-request creation
7 MISSING Add TASK_DEADLINE_REMINDER and MILESTONE_REMINDER enum values plus the @Scheduled reminder job

1.2.2 Profiles (5)

Final scope confirmed in the stakeholder meeting (profile-content cluster).

# Status Plan
1, 2 DONE Background, goals, skills, interests, and mentoring preferences are all stored on the Mentor/Mentee entities and rendered on profile pages
3 PARTIAL Mentee.profileVisibility already exists; add an equivalent flag on Mentor and respect it in profile read endpoints
4 MISSING Once Blog ships, embed the mentor's published posts in the public profile response
5 MISSING Add city (and optional lat/lng) to User; surface it on profile cards and feed it into the recommendation proximity score

1.2.3 Sign-Up & Authentication (8) — All DONE

Registration with real name/email/password, unique-email enforcement, password strength via PasswordValidator, email verification via VerificationToken, JWT-based login, error response on bad credentials, and stateless logout via JWT discard are all live.

1.2.4 Community API (5) — All MISSING

Build public read endpoints for posts and comments (e.g. /api/v1/public/communities/{slug}/posts), scoped API tokens that moderators can issue for automated tooling, an API-key issuance flow for third-party integrations subject to platform terms, and apply the rate-limiting middleware from #252. Final scope confirmed in the stakeholder meeting.

2.1 Availability (2)

24/7 availability is PARTIAL — Docker Compose is in place for local/staging environments, but the production deployment plus monitoring (Prometheus/Grafana) are still planned by DevOps. Web + mobile access is DONE with both platforms in active development.

2.2 Security (8)

# Status Plan
1 DONE Passwords are stored as BCrypt hashes
2 PARTIAL HTTPS termination at the deployment layer is planned; messages-at-rest are not encrypted in the database (acceptable per stakeholder discussion)
3 MISSING Add data-export and account-delete endpoints plus a consent flow at registration to comply with GDPR/KVKK
4 MISSING Mentee.cancelCount is already tracked; add a bannedUntil field and escalating-ban logic on cancel events
5 MISSING Apply rate limiting (#252), add a signup CAPTCHA, and run heuristic content checks (duplicate text, link density) on new posts
6 MISSING Per-user/IP vote rate limiting, rapid-sequential-vote detection, and a sockpuppet similarity check across newly-created accounts
7 MISSING Device-fingerprint, IP, and email-domain checks at registration cross-referenced against the active-bans table
8 MISSING Time-window graph clustering on vote/post patterns; flag clusters above a threshold for admin review

2.3 Performance (5)

# Status Plan
1, 3 DONE Notifications are dispatched event-driven well within the 5s budget; the recommendation pipeline analyzes user profiles and produces ranked suggestions
2, 4, 5 UNVERIFIED Concurrent session capacity, near-real-time feed updates, and high-volume content handling will be validated by DevOps load tests prior to Final Delivery

Pre-existing Bug Fixes (Lab 8 Backlog)

Five backend bugs identified in Lab 8 must be closed before final delivery:

  • #270 Mentor capacity race in MentorshipService.acceptRequest — add DB-level optimistic lock
  • #271 NPE risk when JWT lacks userId/role claims — null-safe JwtAuthenticationFilter
  • #272 Inconsistent timezone handling — standardize on Clock + UTC OffsetDateTime
  • #273 Match-found notification fires on every browse — fire only on new top-match change
  • #274 Missing per-resource authorization on GET /api/availability/{mentorId}

Plan to Address Unimplemented Requirements

The Final Milestone plan (wiki) is being expanded to cover every wiki requirement — none are deferred. Priority order for the remaining sprints:

  1. Core mentorship lifecycle — end/extend/cancel/auto-terminate/auto-ban/rate
  2. Meetings — Meeting entity + reminders + reschedule flow
  3. Tasks & milestones — Task/Milestone entities, submissions, feedback, progress aggregation
  4. Recommendation overhaul — location, diversity, explanation
  5. Blog — full CRUD + mentor profile integration (#283)
  6. Notifications — FCM dispatch, new types, reminder schedulers
  7. Admin & moderation — admin endpoints (ban/list/reports), unified Report entity (shared with community reporting)
  8. Communities — Phase A Community + membership + visibility + moderator role (1.1.7)
  9. Communities — Phase B Posts (text/image/video/link/poll), edit/delete, share/save, mod approval, pin (1.1.8 posts)
  10. Communities — Phase C Comments, replies, comment voting, awards (1.1.8 comments)
  11. Communities — Phase D Voting + reputation scoring (1.1.9)
  12. Communities — Phase E Feeds (home / popular / community-specific) + sort modes (1.1.10)
  13. Communities — Phase F Moderation + automoderation rules + admin oversight (1.1.11)
  14. Communities — Phase G Reporting flow (extends shared Report) (1.1.12)
  15. Public Community API + integrations with rate-limiting middleware (1.2.4)
  16. Anti-abuse hardening — spam-bot, vote-manipulation, ban-evasion, coordinated-abuse detectors (2.2.5–2.2.8)
  17. GDPR/KVKK compliance — data-export + delete endpoints + consent UI
  18. Lab 8 bug closures — five fixes (#270–#274)
  19. DevOps hardening — production deploy, monitoring (Prometheus + Grafana), load testing for performance requirements 2.3.2 and 2.3.5---

As part of executing this plan, we will update the deadlines and descriptions of the relevant GitHub issues (#137, #243, #248–#292) to reflect the expanded final scope and the new phase sequencing, and we will open new issues for the community phases (1.1.7–1.1.12), the public Community API (1.2.4), the anti-abuse detectors (2.2.5–2.2.8), and GDPR/KVKK compliance work so that every wiki requirement is tracked against a concrete issue with an owner and a target date.

--

Acceptance Testing Strategy

Acceptance Testing Strategy

  1. How will you structure your acceptance tests?
  • We will structure our acceptance tests around specific user journeys (e.g., "Mentee registers -> verifies email -> logs in") and categorize them based on system roles (Mentee, Mentor, Admin).
  • Following the structured test document format introduced in the lectures, each test will include specific fields such as a unique Test Case ID, Test Title, Pre-conditions, sequential Test Steps, Test Data, and Expected Results.
  • To ensure complete traceability, every test case will be directly linked to a specific requirement ID or user story.
  • For every critical workflow, we will design at least one "happy path" (normal operation) and 1-2 high-risk negative scenarios. We will utilize extreme or invalid data (e.g., full mentor capacity, unauthorized access attempts, invalid tokens) to expose potential defects.
  • We will implement a seed or reset mechanism for test data isolation to ensure each test runs in a clean, predictable state.
  1. What is your acceptance testing strategy?
  • Our core strategy relies on requirements-based black-box testing, focusing on validating the system's functionality and performance from the user's perspective without needing to know the internal code structure.
  • We will utilize Playwright for automated End-to-End (E2E) testing to verify realistic user flows within actual browser environments.
  • System testing will be executed in an integrated environment (frontend combined with backend, such as local Docker or a staging server) to ensure all components interact correctly and transfer the right data across interfaces.
  • We will prioritize critical workflows, business rules enforcement, and user-visible feedback mechanisms.
  • Our coverage goal is 90-95% for critical paths. The primary success condition is that all critical flows pass seamlessly without yielding any significant UX degradation or regressions in previously working code.
  1. What acceptance criteria will you use to validate that you are building "the right thing" from a stakeholder/user perspective?
  • Core Goal Completion: Users must be able to successfully complete their primary objectives: registration, verification, login, mentor/mentee discovery, sending/answering requests, messaging, and receiving notifications.
  • Business Rule Enforcement: The system must strictly apply and handle all defined business constraints, such as mentor capacity limits, role-based access restrictions, and accurate request status transitions.
  • Clear User Feedback: The system must provide clear, understandable, and consistent user feedback (success or failure messages) for all inputs, particularly for borderline or incorrect input attempts.
  • State Persistence and Integrity: System data must be persistent and accurate; the correct data must be displayed consistently across page reloads and different user sessions without data corruption.
  • Zero Critical Regression: New updates or features must not break previously accepted and working workflows, which will be verified continuously.
  • Stakeholder Meetings: We will conduct meetings with stakeholders to demonstrate the implemented features, gather direct feedback, and verify whether the delivered system truly aligns with their initial expectations and desired goals.

Data Strategy

Our data strategy is based on synthetic and scenario-based test data. Because the system handles personal profile information, we will not use real user data; instead, we will generate realistic mentor, mentee, community, and messaging data that reflects the two stakeholder personas the project targets — campus students and neighborhood professionals or retirees. The strategy extends the existing seed infrastructure in our repository (seed.sql and scripts/seed_mentors.py) rather than replacing it, and is organized into four layers: bulk synthetic generation, scenario fixtures, validation, and reproducibility.

Bulk Synthetic Generation

For high-volume data we will introduce a scripts/test-data/ package containing per-domain generators driven by a shared taxonomy.json (skills, majors, Istanbul districts and Anatolian cities, community topics) and a personas.json archetype file. The generators rely on the following tools, chosen so that data feels authentic rather than mechanically synthesized:

  • Faker (Python, tr_TR locale) for names, emails, lorem text, and dates that match the Turkish character of the project and stay consistent with the style of the existing seed.sql.
  • factory_boy for declarative factories with relationships, so a single MentorshipFactory can produce a coherent Mentor + Mentee + MentorshipRequest graph in one call.
  • ESCO (European Skills, Competences, Qualifications and Occupations) REST API for standardized skill and occupation labels, reused from our Use of Standards page so that interests, expertise, and preferredMenteeSkills are anchored in a recognized taxonomy.
  • Wikidata SPARQL for real Turkish university and tech-company names used in the affiliation field.
  • NetworkX to generate community follower graphs and vote graphs with realistic power-law and preferential-attachment distributions, which we then sample to produce (user, post) and (user, comment) vote edges.
  • Stack Exchange Data Dump (CC-BY-SA 4.0) as the source for community posts and threaded comments. We map Stack Exchange tags to our community topics (e.g. tag java → "Backend" community, tag react → "Frontend") and preserve native threading. This avoids the Reddit data-licensing constraints introduced in 2023.
  • Wikipedia article extracts (wikipedia Python package) for blog post seed text.
  • Templated conversation arcs for messaging — eight predefined arcs (introduction, weekly check-in, task feedback, schedule discussion, milestone celebration, blocker, off-topic chat, end-of-mentorship) slot-filled with Faker for fully deterministic generation. For higher-fidelity demo data we may use the Anthropic Claude Haiku API to generate roughly one hundred mentor–mentee dialogues conditioned on persona pairs and an arc, at a cost below one US dollar.
  • bcrypt for password hashing prior to bulk SQL insertion, matching the format already used by seed.sql.

Scenario-Based Fixtures

In addition to bulk data, we will hand-craft a small set of named test accounts that drive acceptance-test scenarios: a verified mentor, a verified mentee, an unverified user, a mentor at full capacity, a mentee with an active mentorship, an admin, a banned mentee, and a mentor with published blog posts. We will also seed realistic recurring weekly availability entries for the scheduling features and a small set of curated communities (Backend, Frontend, ML, Mobile, Internship-Hunt, Career-Switch) populated with hand-picked posts so that the demo flow is predictable. These fixtures live as overlays on top of the bulk layer, following the pattern already established by scripts/seed_mentors.py.

Validation

To validate that the test data reflects realistic usage patterns we will:

  1. Implement an audit script (scripts/test-data/audit.py) that enforces hard distribution thresholds — for example, at least five mentors at full capacity, ten mentees with an active mentorship, three expired or auto-terminated mentorships, fifty pending requests, one hundred posts in each curated community, and one banned account. The audit fails CI if any threshold drops.
  2. Conduct a manual stakeholder walkthrough on the seeded staging environment before each milestone, confirming that profiles, capacities, interests, schedules, community discussions, and mentor–mentee conversations are coherent and that the system's matching and request results are meaningful from a user perspective. This continues the practice already used successfully for the Lab 7 MVP demo.
  3. Produce distribution histograms (interests, majors, capacity utilization, mentorship state, vote counts, community sizes) as part of the audit output and flag drift greater than ten percent against target distributions.

Reproducibility

To keep test runs deterministic and cheap, the bulk generators use a fixed Faker.seed(42) in CI and a different seed in staging so that manual QA sees varied data. Generators are idempotent (INSERT ... ON CONFLICT DO NOTHING) so they can be re-run safely. After seeding, a pg_dump snapshot is committed as seed-snapshot.sql; CI restores from this snapshot in seconds rather than regenerating from scratch on each run.


Example Acceptance Tests

AT-01: New user onboards, configures profile, and authenticates securely

Author: Muhammet Sami Çakmak

Covers

  • User registration with real name, email, and password
  • Email-uniqueness enforcement
  • Password strength criteria
  • Email verification before account activation
  • Login with email and password
  • Credential verification on login
  • Error displayed when invalid credentials are submitted
  • Logout
  • Password reset / forgot-password recovery flow
  • Mentee profile creation and editing
  • Mentee specifies goals, interests, and background information
  • Mentor profile creation and editing
  • Mentor defines mentoring goals and preferred mentee criteria
  • Profile fields populated: background, goals, skills, interests
  • Profile mentoring preferences
  • Profile visibility control
  • Profile location field

Covered requirement meaning

A new user (mentor or mentee) must be able to register, verify their email, log in, recover access through the password-reset flow, configure their full role-appropriate profile (including location and visibility), and log out securely.

Requirement IDs covered

1.1.1.1.1, 1.1.1.1.2, 1.1.1.2.1, 1.1.1.2.2, 1.2.2.1, 1.2.2.2, 1.2.2.3, 1.2.2.5, 1.2.3.1, 1.2.3.2, 1.2.3.3, 1.2.3.4, 1.2.3.5, 1.2.3.6, 1.2.3.7, 1.2.3.8

Total: 16 requirements


Test 1 — User Onboarding & Authentication

Prerequisite: The system is running, and the user has access to a valid, unregistered email address.

# Instruction Expectation Result Notes
1 Attempt to register a new account using a real name, a new email, and a password that meets the system's strength criteria Account is created in a pending state; a verification email is sent to the user
2 Attempt to register a second account using the exact same email address Registration is blocked; the system enforces email uniqueness and displays an error
3 Attempt to register with a password that fails the strength criteria (e.g., too short, missing numbers) Registration is blocked; the system displays a password strength criteria error
4 Click the verification link in the received email, navigate to the login page, and enter the valid credentials Login is successful (credential verification passes); user is directed to the initial profile configuration
5 Attempt to log in using an incorrect password for the verified account Login fails; the system displays an "Invalid credentials" error message
6 Navigate to the "Forgot Password" flow, request a reset link, set a new valid password via email, and log in Password reset is successful; user can log in with the new password
7 As a Mentee, navigate to the profile configuration screen; fill out background information, goals, interests, location, and set profile visibility; save Mentee profile is successfully created/edited with all specified fields populated correctly
8 As a Mentor, navigate to the profile configuration screen; define mentoring goals, preferred mentee criteria, background, skills, interests, mentoring preferences, location, and set visibility; save Mentor profile is successfully created/edited with all specified fields and preferences populated correctly
9 Click the "Logout" button from the main navigation menu User session is securely terminated; the user is redirected to the login or landing page

Beratcan Doğan — Example Acceptance Test (Test 2)

Author: Beratcan Doğan Feature: Mentorship Lifecycle & Blog Name: Mentor runs a complete mentorship lifecycle and publishes blog content Id: AT-02 Description: Verifies that a mentor can run the full mentorship lifecycle (availability, request handling, scheduling, goal/task management, feedback, termination) and publish blog content visible to other users.

Prerequisite:

  • A verified mentor account with completed profile exists.
  • The mentor is logged in.
  • Seeded mentee candidate data is available in the system.

Test Steps

# Instruction Expectation Result Note
1 Open the mentor dashboard and define weekly availability slots. The availability calendar accepts the entries and saves the mentor's weekly schedule successfully.
2 Open the candidate mentee profile from the recommendation notification. The mentor receives a candidate recommendation notification and the mentee's full profile is displayed.
3 Accept the mentorship request and select a duration of 1, 3, or 6 months. The request is accepted, the duration is recorded, and the mentee is notified of the acceptance.
4 Schedule recurring weekly meetings with the mentee using concrete dates. The recurring meetings are saved and a confirmation notification is sent to both parties.
5 Define a shared goal jointly with the mentee and add milestones under it. The shared goal and its milestones are saved and visible on both mentor and mentee mentorship pages.
6 Assign a weekly task with a deadline, then review the mentee's submission and provide structured feedback. The task is delivered to the mentee with the correct deadline, the submission is reviewed, and feedback is recorded against the task.
7 Open the progress tracking view of the mentorship. The system displays task history and progress over time across tasks and milestones with accurate completion indicators.
8 End the mentorship early after marking the goal as reached. The mentorship is closed, the final status is recorded, and both users are notified.
9 Publish a new blog post from the mentor account, then edit it. The blog post is published and visible to all authenticated users; edits are saved and reflected on the post.
10 Switch to another authenticated user, like and comment on the post, then open the mentor's public profile. The like count and comment appear on the post, and the mentor's public profile lists their published blog posts.

Note: Covers mentorship lifecycle (availability, requests, scheduling, goal/task/milestone management, feedback, progress, termination) and blog publishing/engagement on the mentor's public profile.

Test 3

Author: Övgü Su Afşar

Feature: Authentication & Profile Management

Name: User registration, login, logout, and profile management

ID: AT-03

Description: Verifies that a new user can register with valid information, log in with the created account, update profile information according to the selected role, log out successfully, and receive an error when attempting to log in with incorrect credentials.

Prerequisite: The application is running, and the user does not already have an account with the same email address.

Test Data:

  • Name: Ayşe Demir
  • Email: ayse.demir@test.com
  • Password: ValidPass123
  • Role: Mentee
  • Interests: Data Science, Career Planning
  • Background: Industrial Engineering student
  • Location: Istanbul
# Instruction Expectation Result Notes
1 Navigate to the registration page The registration screen is displayed with fields for name, email, password, role, and profile-related information
2 Enter a real name, unique email, valid password, role, interests, goals, background, and location The system accepts all valid input values without validation errors
3 Submit the registration form The user account is created successfully, and the system stores the new user with a unique email address Covers requirement 1.1.1.1.1 and 1.1.1.1.2
4 Navigate to the login page and log in using the registered email and password Login is successful, and the user is redirected to the authenticated area of the application Covers requirement 1.1.1.2.1
5 Open the profile page The profile screen is displayed with the current user information Covers requirement 1.2.2.1
6 Edit profile fields such as bio, goals, skills, interests, visibility, and location The system allows the user to modify the editable profile fields Covers requirements 1.2.2.2, 1.2.2.3, 1.2.2.5, and 1.2.3.1–1.2.3.8
7 Save the updated profile information The profile changes are stored successfully and remain visible after refresh or revisit Covers persistence of profile management features
8 Log out from the application The current session is terminated successfully, and the user is redirected out of the authenticated area Covers requirement 2.2.1
9 Attempt to log in again using the same correct credentials Login is successful, confirming that the account remains active after logout Confirms account continuity after logout
10 Attempt to log in using the correct email but an incorrect password Login fails, and the system displays an invalid credentials error message Covers requirement 1.1.1.2.2; passwords should not be stored as plain text in the database

Test 5

Author: İbrahim Kayan
Feature: Platform Moderation, Abuse Reporting, and Admin Oversight
Name: End-to-End Abuse Mitigation: Automated Detection, User Reporting, and Escalated Admin Resolution
Id: AT-05
Description: Verify the complete lifecycle of abuse mitigation. The test ensures that an abusive user is flagged by automated keyword filters, reported by community members, handled locally by Community Moderators (post removal, muting), and finally escalated to Platform Admins for a permanent ban.
Requirements Covered:

  • 1.1.11.2.3, 1.1.11.2.5 (Automated filters detect prohibited words and flag suspicious activity)
  • 1.1.12.1, 1.1.12.2 (Users can report community posts and comments)
  • 1.1.11.1.2, 1.1.11.1.3, 1.1.11.1.5 (Community Mods can remove posts/comments and mute users)
  • 2.2.8 (System detects coordinated abuse and surfaces clusters to Admins)
  • 1.1.1.3.1, 1.1.1.3.2, 1.1.1.3.3, 1.1.11.3.4 (Admins investigate, review reports, ban users, and maintain ultimate authority)

Prerequisite:

  • User "Spammer A" is registered.
  • User "Member B" is registered and belongs to the "Tech Community".
  • User "Mod C" is a Community Moderator for the "Tech Community".
  • User "Admin D" is a Platform Administrator.
  • The "Tech Community" has an automated moderation filter configured to block the word "HackTool".

Test Steps

# Instruction Expectation Result Note
1 Enter Spammer A's credentials on the Login Page and click "Login". Spammer A is authenticated.
2 Navigate to the "Tech Community" page and click "Create Post". The post creation form appears.
3 Enter the word "HackTool" in the post body and click "Submit". The system accepts the post but automatically flags it. It does not appear on the public community feed.
4 Navigate to an existing post from another user and write an offensive comment, then click "Post". The comment is successfully posted and visible on the thread.
5 Click the "Logout" button. Spammer A is logged out.
6 Enter Member B's credentials on the Login Page and click "Login". Member B is authenticated.
7 Navigate to the thread containing Spammer A's offensive comment. The comment is visible.
8 Click the "Report" button next to Spammer A's comment, select "Abusive", and click "Submit". A success message confirms the report was sent.
9 Click the "Logout" button. Member B is logged out.
10 Enter Mod C's credentials on the Login Page and click "Login". Mod C is authenticated.
11 Navigate to the "Community Moderation Queue". The auto-flagged "HackTool" post and Member B's reported comment are both visible in the queue.
12 Click "Remove" on the flagged post, and "Remove" on the reported comment. Both items are permanently deleted from the community.
13 Navigate to Spammer A's profile and click the "Mute User" button. Spammer A is restricted from interacting in the Tech Community.
14 System Background Check: Wait 5 seconds for the system to process the multiple moderation actions against Spammer A. The system generates a "Coordinated Abuse Cluster" ticket and escalates it to the Platform Admin queue.
15 Click the "Logout" button. Mod C is logged out.
16 Enter Admin D's credentials on the Login Page and click "Login". Admin D is authenticated.
17 Navigate to the "Platform Admin Dashboard" and click on the "Escalated Abuse" tab. The system-generated ticket regarding Spammer A is visible.
18 Click "Review Ticket" for Spammer A. A complete audit trail (removed post, reported comment, mute action) is clearly displayed.
19 Click the "Permanent Ban" button on Spammer A's profile and confirm. A success message appears. Spammer A is banned.
20 Click the "Logout" button. Admin D is logged out.
21 Attempt to log in again using Spammer A's credentials. The login is blocked. The system displays: "Account permanently banned by an Administrator."

Test 6 — Cross-Platform Real-Time Messaging, Scheduling Reminders, and Notifications

Author: Burak Ögüt (2021400168)

Feature: Messaging, Notifications, and Scheduling Reminders

Name: Cross-platform real-time messaging, scheduling reminders, and notifications operate consistently

ID: AT-06

Description: Verifies that the in-app messaging system, push notification delivery, and scheduling reminder subsystems operate correctly and consistently across web and mobile. Covers mentor–mentee messaging, mentor–mentor messaging, message history pagination, file/link attachments, push notifications for new messages and recommendations, meeting reminder notifications, notification targeting (only relevant users), and the 5-second delivery performance budget.

Prerequisite:

  • Mentor A has an active mentorship with Mentee X; both accounts are verified and can log in on mobile and web
  • Mentor B exists with a complete public profile and is reachable for mentor–mentor messaging
  • A third user (Unrelated User) exists with no connection to Mentor A, Mentee X, or the events being triggered — used to verify notification targeting
  • A scheduled meeting between Mentor A and Mentee X is set up with a reminder configured (e.g., 5 minutes before the meeting time)
  • Expo push notification tokens are registered for Mentor A and Mentee X on their mobile devices
  • The backend messaging API is deployed and reachable at the production server
# Instruction Expectation Result Notes
1 Log in as Mentee X on the mobile app; remain on the Home screen Mentee X receives a push notification: "A new mentor recommendation is available for you"
2 Log in as Mentor A on the mobile app; navigate to the Messages tab; start a new conversation with Mentee X and send: "Welcome! Let's start with your goals." Message is sent; conversation thread with Mentee X appears in the Messages tab with the correct timestamp
3 On Mentee X's device, verify push notification delivery Mentee X receives a push notification: "New message from Mentor A" within 5 seconds of the message being sent
4 Mentee X opens the notification and views the conversation The conversation thread opens; Mentor A's message is visible; Mentee X can type and send a reply
5 Mentee X replies: "Hello! My goal is to improve my backend development skills." and sends Message appears in the thread; Mentor A receives a push notification: "New message from Mentee X" within 5 seconds
6 Mentee X attaches a document (PDF or image) to a new message and sends The attachment is uploaded and displayed in the conversation; Mentor A can open or preview the attachment
7 Mentee X sends a message containing a URL link The link is displayed as tappable in the conversation thread; tapping it opens the URL in an in-app browser or the device browser
8 Scroll up in the conversation thread to load older messages Older messages load correctly (paginated); the interface does not crash or show duplicates; a loading indicator is shown while fetching
9 Log in as Mentor A on the web platform and open the same conversation thread with Mentee X All messages including the attachment and the link sent on mobile are visible on web; timestamps and read status are consistent across platforms
10 Log in as Mentor A on mobile; navigate to Mentor B's public profile; tap "Send Message" and send: "Hi, I'd like to discuss a shared mentoring strategy." Message is sent; conversation thread with Mentor B appears in Mentor A's Messages tab
11 Log in as Mentor B on mobile and check for the push notification Mentor B receives a push notification: "New message from Mentor A" within 5 seconds
12 Log in as Unrelated User on mobile and verify their notification inbox Unrelated User has received no notifications related to the messages or recommendations triggered in previous steps
13 Wait until the scheduled meeting reminder time is reached (or simulate it); check Mentor A's and Mentee X's devices Both Mentor A and Mentee X receive a push notification reminding them of the upcoming meeting (e.g., "Your meeting starts in 5 minutes"); Unrelated User receives no such notification
14 Verify all push notifications were delivered within 5 seconds of their triggering events (steps 3, 5, 11, 13) Each notification timestamp is within 5 seconds of the event that triggered it; no notifications were delayed beyond the performance budget

Note:



Individual Contributions

Name Task Linked Issue
Mehmet Bora Sarıoğlu to be filled to be filled
to be filled to be filled
Amin Abu-Hilga to be filled to be filled
to be filled to be filled
Övgü Su Afşar Scenario 1 — User Registration, Login, Logout, and Profile Management**. This contribution includes defining the test purpose, selecting the covered requirements, specifying preconditions and test data, and writing the step-by-step acceptance test case in the required format. -
to be filled to be filled
Muhammet Sami Çakmak Authored AT-01 (User Onboarding & Authentication) — a 9-step acceptance test covering registration, email uniqueness, password recovery, login/logout workflows, and role-specific profile configuration (covering 16 requirements).
Contributed to the Acceptance Testing Strategy section, defining the test structure, E2E testing approach using Playwright, and core acceptance criteria.
Beratcan Doğan Wrote Acceptance Test AT-04 (Mentor Discovery and Matching), covering the mentee discovery flow: browsing mentors, keyword search, filtering, matching, ranked results, and profile viewing. to be filled
to be filled to be filled
İbrahim Kayan Designed an end-to-end acceptance test validating the platform's complete abuse mitigation lifecycle, including automated moderation, user reporting, and admin escalation.
to be filled to be filled
Burak Ögüt Reviewed all requirements against the current mobile implementation and categorized their status as Completed, In Progress, or Not Yet Implemented
Authored AT-06 (Cross-Platform Messaging, Scheduling Reminders, and Notifications) — 14-step end-to-end acceptance test covering mentor–mentee messaging, mentor–mentor messaging, message history pagination, file/link attachments, push notifications, meeting reminder notifications, notification targeting, and 5-second delivery budget
Contributed to the Acceptance Testing Strategy and Data Strategy sections
Team Members

Lab Reports


Weekly Meetings


Customer Meetings


Stakeholder Meetings


Project Requirements


🎦 Scenarios and Mock-ups

Use Case Diagrams

Class Diagram

Sequence Diagrams

Test Plan and Coverage


Project Standards


Final Milestone and MVP Plan

MVP Report


Final Milestone Report

Per-Member Prompt Logs


Future Work

Clone this wiki locally