Facebook
From Fahad, 2 Months ago, written in Plain Text.
Embed
Download Paste or View Raw
Hits: 308
  1. [
  2.     {
  3.         "usecase": {
  4.             "name": "Employee Job Search",
  5.             "scenario": "Employee searches for job opportunities on the platform.",
  6.             "actors": "Employee",
  7.             "preconditions": "Employee is registered on the platform.",
  8.             "steps": [
  9.                 "Employee enters search criteria (e.g., job title, location).",
  10.                 "System displays relevant job listings."
  11.             ]
  12.         },
  13.         "testcases": [
  14.             {
  15.                 "name": "Valid Job Search",
  16.                 "description": "Verify that an employee can successfully search for job opportunities.",
  17.                 "input": {
  18.                     "searchCriteria": "Software Engineer"
  19.                 },
  20.                 "expected": {
  21.                     "outcome": "Job listings displayed",
  22.                     "resultsCount": ">0"
  23.                 }
  24.             },
  25.             {
  26.                 "name": "Empty Search Criteria",
  27.                 "description": "Verify that the system handles the case where the employee provides an empty search criteria.",
  28.                 "input": {
  29.                     "searchCriteria": ""
  30.                 },
  31.                 "expected": {
  32.                     "outcome": "All jobs displayed",
  33.                     "resultsCount": ">0"
  34.                 }
  35.             }
  36.         ]
  37.     },
  38.     {
  39.         "usecase": {
  40.             "name": "Filter Job Search",
  41.             "scenario": "Employee narrows down job search results using filters.",
  42.             "actors": "Employee",
  43.             "preconditions": "Employee has performed a job search.",
  44.             "steps": [
  45.                 "Employee applies filters (e.g., industry, salary range).",
  46.                 "System updates job listings based on applied filters."
  47.             ]
  48.         },
  49.         "testcases": [
  50.             {
  51.                 "name": "Valid Filter Application",
  52.                 "description": "Verify that an employee can successfully apply filters to narrow down job search results.",
  53.                 "input": {
  54.                     "filters": {
  55.                         "industry": "Technology",
  56.                         "salaryRange": "$70,000 - $100,000"
  57.                     }
  58.                 },
  59.                 "expected": {
  60.                     "outcome": "Filtered job listings displayed",
  61.                     "resultsCount": ">0"
  62.                 }
  63.             },
  64.             {
  65.                 "name": "No Results with Filters",
  66.                 "description": "Verify that the system handles the case where no jobs match the applied filters.",
  67.                 "input": {
  68.                     "filters": {
  69.                         "industry": "Healthcare",
  70.                         "salaryRange": "$80,000 - $120,000"
  71.                     }
  72.                 },
  73.                 "expected": {
  74.                     "outcome": "No matching jobs found",
  75.                     "resultsCount": "0"
  76.                 }
  77.             }
  78.         ]
  79.     },
  80.     // ... other use cases and test cases
  81. ]
  82.