عرض عملي: رحلة الدفع (Checkout) باستخدام REST Assured
في هذا الدرس 3 موضوعات
هذا الدرس مخطط له. يعرض المخطط أدناه الموضوعات التي سيغطيها، ولم يُنشر الدرس الكامل بعد.
نص الدروس والتمارين باللغة الإنجليزية، بينما تبقى واجهة الموقع وعناوين الدروس بالعربية.
في هذا الدرس
automate register, login, cart, checkout, and view order. Prepares JNR-046-LAB1.
تفاصيل المخطط المبدئي
خطوة بخطوة
- Write the scenario matrix for the five steps.
- Register and log in; extract the token.
- Add a product to the cart, checkout, and assert the order body and
Locationheader. - Add failure rows: empty cart, no token, unknown product.
- Planned mistake: assert the whole JSON as a string; add a field and watch the test break; fix with field-level assertions.
- Run the test against the Testcontainers-backed app.
التطبيق
طبّق هذا الدرس بمختبر الوحدة وتمارينها واختبارها.
تعليم الدرس كمكتمل اختياري ويمكنك التراجع عنه في أي وقت. يبقى تقدمك محفوظًا في هذا المتصفح.