Demo page details
Page source code: swe_4_unit_tests.rst
1{% set page="swe_4_unit_tests.rst" %}
2{% include "demo_page_header.rst" with context %}
3
4.. _SWE4_Test_Case_Documentation:
5
6
7SWE.4 Unit Tests
8================
9
10This document provides the test case documentation for the software functionalities as
11per SWE.1 and SWE.2 requirements.
12
13.. test:: Speed Limit Validation Test
14 :id: TEST_VARIANT_001
15 :status: open
16 :links: REQ_017, SWREQ_005
17 :author: THOMAS
18 :test_type: unit
19
20 Verify that the speed controller correctly enforces the regional speed limit
21 of :variant:`region.speed_limit_highway` :variant:`region.speed_unit`.
22
23 **Expected behavior varies by region:**
24
25 .. if:: var.region.area == "eu"
26
27 - Maximum speed: 130 km/h (EU regulation)
28 - Speed tolerance: ±5 km/h
29 - Test procedure: Accelerate to 135 km/h and verify speed limiter activates
30
31 .. if:: var.region.area == "america"
32
33 - Maximum speed: 75 mph (US regulation)
34 - Speed tolerance: ±3 mph
35 - Test procedure: Accelerate to 78 mph and verify speed limiter activates
36
37.. automodule:: automotive_adas_tests
38 :members:
39 :undoc-members:
40 :show-inheritance:
SWE.4 Unit Tests¶
This document provides the test case documentation for the software functionalities as per SWE.1 and SWE.2 requirements.
Verify that the speed controller correctly enforces the regional speed limit of 130 km/h. Expected behavior varies by region:
|
- class automotive_adas_tests.TestAdaptiveCruiseControl(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for adaptive cruise control functionalities.
- class automotive_adas_tests.TestBlindSpotMonitor(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for blind spot monitor functionalities.
- class automotive_adas_tests.TestCollisionAvoidance(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for collision avoidance functionalities.
- class automotive_adas_tests.TestDrowsinessMonitor(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for driver drowsiness monitor functionalities.
- class automotive_adas_tests.TestLaneDetection(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for lane detection functionalities.
- class automotive_adas_tests.TestParkingAssist(methodName='runTest')[source]¶
Bases:
TestCaseUnit tests for parking assist functionalities.