What this template isما هذا القالب
The SRS is the complete, testable specification of WHAT the system shall do — functional requirements, interfaces, data and non-functional requirements — structured on IEEE 830. It is the reference the developers build from and QC tests against.مواصفات متطلبات البرمجيات هي المواصفة الكاملة القابلة للاختبار لما سيفعله النظام — المتطلبات الوظيفية والواجهات والبيانات والمتطلبات غير الوظيفية — مهيكلة على IEEE 830. وهي المرجع الذي يبني منه المطورون وتختبر عليه الجودة.
When to use itمتى تستخدمه
- Fixed-scope or contractual deliveries where the spec is the agreementالتسليمات ثابتة النطاق أو التعاقدية حيث المواصفة هي الاتفاق
- Government and enterprise projects that mandate a formal SRSالمشاريع الحكومية والمؤسسية التي تفرض SRS رسمية
- When multiple vendors or teams build against one specificationحين يبني عدة مورّدين أو فرق على مواصفة واحدة
Document structureهيكل الوثيقة
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- State the system's purpose, the BRD it derives from, and the intended readers.اذكر غرض النظام والوثيقة BRD التي اشتُق منها والقرّاء المستهدفين.
- Define every acronym and domain term in a glossary from day one.عرّف كل اختصار ومصطلح مجالي في مسرد منذ اليوم الأول.
- List the referenced documents with their exact versions.اذكر الوثائق المرجعية بأرقام إصداراتها الدقيقة.
- Don't restate the business case here — reference the BRD instead.لا تُعد سرد مبررات العمل هنا — أحِل إلى وثيقة BRD.
- Don't leave "scope" as prose only; bound it with explicit in/out lists.لا تترك النطاق نثراً فقط؛ قيّده بقائمتي داخل/خارج صريحتين.
- Don't reference documents without versions — "the BRD" is ambiguous after v1.1.لا تُحِل إلى وثائق بلا إصدار — «وثيقة BRD» تصبح ملتبسة بعد v1.1.
"This SRS specifies the Unified Collections Gateway, derived from BRD-COL-001 v1.0. Readers: development vendor, QA, finance SMEs. Glossary defines MT940, SADAD, allocation."«تحدد هذه الوثيقة بوابة التحصيل الموحدة، المشتقة من BRD-COL-001 v1.0. القرّاء: مورّد التطوير والجودة وخبراء المالية. والمسرد يعرّف MT940 وسداد والتخصيص.»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Describe the system's context: neighbouring systems, users and their classes, environment.صِف سياق النظام: الأنظمة المجاورة والمستخدمين وفئاتهم وبيئة التشغيل.
- Draw one context diagram — a box for the system and every external interface around it.ارسم مخطط سياق واحداً — صندوق للنظام وحوله كل واجهة خارجية.
- List the user classes with their frequency of use and expertise level.اذكر فئات المستخدمين مع تكرار استخدامهم ومستوى خبرتهم.
- Don't put detailed requirements here — this section is orientation only.لا تضع متطلبات تفصيلية هنا — هذا القسم للتهيئة فقط.
- Don't ignore constraints inherited from the enterprise (SSO, hosting policy, ERP version).لا تتجاهل القيود الموروثة من المنشأة (الدخول الموحد وسياسة الاستضافة وإصدار نظام الموارد).
- Don't describe features that are out of scope without labelling them so.لا تصف خصائص خارج النطاق دون وسمها بذلك.
"The gateway sits between three bank channels + SADAD on one side and the ERP AR module on the other. User classes: 9 reconciliation officers (daily), 2 treasury supervisors (weekly approvals), auditors (read-only)."«تتوسط البوابة بين ثلاث قنوات بنكية وسداد من جهة ووحدة الذمم في نظام الموارد من جهة أخرى. فئات المستخدمين: 9 موظفي مطابقة (يومياً)، ومشرفا خزينة (اعتمادات أسبوعية)، ومدققون (قراءة فقط).»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Number every requirement (FR-xx) and trace each back to a BR in the RTM.رقّم كل متطلب (FR-xx) وتتبّعه رجوعاً إلى متطلب أعمال في مصفوفة التتبع.
- Write each FR as one testable sentence: actor + shall + behaviour + condition.اكتب كل متطلب جملة واحدة قابلة للاختبار: الفاعل + يجب أن + السلوك + الشرط.
- Group FRs by feature/module so a reviewer can read one capability end-to-end.جمّع المتطلبات حسب الخاصية/الوحدة ليقرأ المراجع القدرة كاملة من طرف لطرف.
- Don't write compound requirements joined by "and/or" — split them.لا تكتب متطلبات مركبة موصولة بـ«و/أو» — افصلها.
- Don't specify UI layout inside an FR — reference the UI section.لا تحدد تخطيط الشاشة داخل المتطلب الوظيفي — أحِل إلى قسم الواجهات.
- Don't leave any FR without a priority and a source.لا تترك متطلباً وظيفياً بلا أولوية ومصدر.
"FR-012 (Must, from BR-04): The system shall auto-match an incoming SADAD receipt to an open invoice by invoice number and amount within 5 minutes of file receipt."«FR-012 (أساسي، من BR-04): يجب أن يطابق النظام مقبوض سداد الوارد تلقائياً مع فاتورة مفتوحة برقم الفاتورة والمبلغ خلال 5 دقائق من استلام الملف.»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Specify each interface: direction, format, protocol, frequency, owner on the other side.حدد كل واجهة: الاتجاه والصيغة والبروتوكول والتكرار والمالك في الطرف الآخر.
- Reference the authoritative spec (bank file layout, ERP API version) with its version.أحِل إلى المواصفة المرجعية (تنسيق ملف البنك، إصدار واجهة نظام الموارد) بإصدارها.
- Define error handling per interface: retries, duplicates, out-of-order files.عرّف معالجة الأخطاء لكل واجهة: الإعادة والتكرارات والملفات خارج الترتيب.
- Don't assume the other system's team has agreed — record the agreement evidence.لا تفترض موافقة فريق النظام الآخر — سجّل دليل الاتفاق.
- Don't leave file/field mappings "to be detailed in design".لا تترك مواءمة الملفات والحقول «للتفصيل في التصميم».
- Don't ignore non-happy paths: empty files, late files, schema changes.لا تتجاهل المسارات غير السعيدة: الملفات الفارغة والمتأخرة وتغيّر البنية.
"IF-02: Bank B MT940, inbound SFTP daily by 07:00, UTF-8, duplicate statement rejected by statement number; contact: Bank B integration desk (agreed 14 Apr)."«IF-02: كشف MT940 من البنك (ب)، وارد عبر SFTP يومياً قبل 07:00 بترميز UTF-8، ويُرفض الكشف المكرر برقمه؛ جهة التواصل: مكتب تكامل البنك (اتفاق 14 أبريل).»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Define the core entities, their key attributes, and identifying keys.عرّف الكيانات الأساسية وخصائصها الرئيسة ومفاتيح تعريفها.
- State data volumes, growth, and retention per entity.اذكر أحجام البيانات ونموها ومدة الاحتفاظ لكل كيان.
- Specify validation rules and allowed values where they are business-fixed.حدد قواعد التحقق والقيم المسموحة حيث يثبّتها العمل.
- Don't design the physical database here — stay at the logical level.لا تصمم قاعدة البيانات الفيزيائية هنا — ابقَ في المستوى المنطقي.
- Don't forget migration: what historical data comes in, from where, cleansed how.لا تنسَ الترحيل: أي بيانات تاريخية ستدخل ومن أين وكيف تُنقّى.
- Don't leave PII unmarked — flag fields with privacy or retention constraints.لا تترك البيانات الشخصية بلا وسم — علّم الحقول ذات قيود الخصوصية أو الاحتفاظ.
"Entity Receipt: id, channel, amount, value date, payer ref, status (unmatched/matched/suspended). ~9,000 receipts/month, retained 10 years; payer name flagged as PII."«كيان المقبوض: المعرف والقناة والمبلغ وتاريخ الاستحقاق ومرجع الدافع والحالة (غير مطابق/مطابق/معلّق). نحو 9,000 مقبوض شهرياً، يُحتفظ به 10 سنوات؛ واسم الدافع موسوم بيانات شخصية.»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Quantify every NFR: response time at load, availability %, concurrent users.قِس كل متطلب غير وظيفي: زمن الاستجابة عند الحمل ونسبة الإتاحة والمستخدمين المتزامنين.
- Cover the standard set: performance, availability, security, auditability, usability, compatibility.غطِّ الطقم القياسي: الأداء والإتاحة والأمن وقابلية التدقيق والاستخدام والتوافق.
- Tie security NFRs to the organisation's actual policies and regulations.اربط متطلبات الأمن بسياسات المنشأة الفعلية واللوائح.
- Don't write "the system shall be fast/secure/user-friendly" without a measure.لا تكتب «يجب أن يكون النظام سريعاً/آمناً/سهلاً» بلا مقياس.
- Don't copy NFR boilerplate that no one will test.لا تنسخ نصوصاً غير وظيفية جاهزة لن يختبرها أحد.
- Don't set targets the infrastructure cannot host — validate with IT first.لا تضع مستهدفات لا تحتملها البنية التحتية — تحقق مع تقنية المعلومات أولاً.
"NFR-03: matching batch of 5,000 receipts completes within 10 minutes; NFR-07: every manual allocation is audit-logged with user, timestamp and before/after values."«NFR-03: تكتمل دفعة مطابقة من 5,000 مقبوض خلال 10 دقائق؛ NFR-07: كل تخصيص يدوي يسجَّل تدقيقياً بالمستخدم والوقت والقيم قبل وبعد.»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Capture what fits nowhere else: legal, localisation, documentation, training, licensing.التقط ما لا مكان له غير هنا: القانوني والتعريب والتوثيق والتدريب والتراخيص.
- State Arabic/English requirements explicitly — UI, reports, notifications.حدد متطلبات العربية/الإنجليزية صراحة — الشاشات والتقارير والإشعارات.
- Record operational needs: backups, archiving, support handover.سجّل الاحتياجات التشغيلية: النسخ الاحتياطي والأرشفة وتسليم الدعم.
- Don't make this a dumping ground for unclassified FRs — reclassify them instead.لا تجعله مكباً لمتطلبات وظيفية غير مصنفة — أعد تصنيفها بدلاً من ذلك.
- Don't skip regulatory reporting requirements because they are "IT-invisible".لا تتجاوز متطلبات التقارير النظامية لأنها «غير مرئية تقنياً».
- Don't leave the section empty just to keep the numbering — delete it consciously.لا تتركه فارغاً حفاظاً على الترقيم — احذفه بوعي إن لم يلزم.
"All user-facing screens and rejection reasons bilingual AR/EN; VAT-relevant allocations exportable in the format the tax team files with ZATCA; admin guide delivered in Arabic."«كل الشاشات وأسباب الرفض ثنائية اللغة؛ والتخصيصات ذات الأثر الضريبي قابلة للتصدير بالصيغة التي يرفعها فريق الضرائب لهيئة الزكاة؛ ودليل المشرف يُسلَّم بالعربية.»
How to write it — do · don’t · exampleكيف تكتبه — افعل · لا تفعل · مثال
- Include the FR↔BR traceability table (or reference the live RTM file).أدرج جدول تتبع FR↔BR (أو أحِل إلى ملف مصفوفة التتبع الحي).
- Attach interface file samples and the agreed field mappings.أرفق عينات ملفات الواجهات ومواءمات الحقول المتفق عليها.
- Keep appendices versioned with the document — they are part of the baseline.أبقِ الملاحق منسّخة مع الوثيقة — فهي جزء من خط الأساس.
- Don't hide normative requirements inside appendices — appendices inform, sections require.لا تُخفِ متطلبات ملزمة داخل الملاحق — الملاحق تُعلم والأقسام تُلزم.
- Don't attach outdated samples "for illustration" — they will be built against.لا ترفق عينات قديمة «للتوضيح» — سيُبنى عليها.
- Don't break the RTM link by renumbering FRs after baseline.لا تكسر روابط مصفوفة التتبع بإعادة ترقيم المتطلبات بعد خط الأساس.
"Appendix B carries a real (anonymised) MT940 sample from Bank B and the 14-field mapping to Receipt; the RTM lives as TPS-BA-RTM v0.4 and is referenced, not embedded."«الملحق (ب) يحمل عينة MT940 حقيقية (مموّهة) من البنك (ب) ومواءمة الحقول الأربعة عشر إلى كيان المقبوض؛ ومصفوفة التتبع ملف حي TPS-BA-RTM v0.4 يُحال إليه ولا يُضمَّن.»
Practitioner tipsنصائح الممارسين
- One requirement per FR number — 'and' inside a requirement usually hides two.متطلب واحد لكل رقم FR — كلمة «و» داخل المتطلب تخفي عادة متطلبين.
- Every NFR gets a number and a measurement method; 'fast' and 'secure' are not requirements.كل متطلب غير وظيفي يحصل على رقم وطريقة قياس؛ «سريع» و«آمن» ليسا متطلبين.
- Keep the traceability appendix current — it is what makes change impact answerable in minutes.أبقِ ملحق التتبع محدّثاً — فهو ما يجعل أثر التغيير قابلاً للإجابة في دقائق.