# 极氪EX1H **Repository Path**: littlefish0708/EX1H ## Basic Information - **Project Name**: 极氪EX1H - **Description**: 极氪EX1H车型 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2025-05-13 - **Last Updated**: 2025-10-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # README # * Radar auto test script * [Git_Repo_info](http://172.16.62.14/software_team/software_test_framework) ### Guide: ### * All settings about Radar in Comon folder Lidar_Config.py file, other place should not ********** * Use pytest frame, if you need add new case ,keep use pytest * log and report files do not upload into git ### Tips: ### 1. Add __init__.py file under current floder, root path will become 'C:\\U******\\scripts', from Common import XXX will not report error 2. allure create report : allure generate report/result -o report/allure_html --clean 3. addopts = XXX --reruns=3 , add rerun, fail case repeat 3 times 4. addopts = XXX -n=auto , add -n=auto, run in Parallel, signle case run time >1s, can consider this method 5. addopts = --clean-alluredir, create new report and clean previous 6. in pytest.ini file addops line ,'--capture=fd' = '--capture=sys' + '--capture=no'(equal -s) * --capture=fd will add 'Captured stdout call' and 'Captured stderr call' logs into report and * in command line will show very less info. * logging module can print logs both into command line and report, need config. ### TODO: ### * Search TODO in script * os.popen function, in windows default timeout time is 20s, too long, in linux, default timeout time is 2s, acceptable * power on/off, insert into test case ### Requirement.txt: ### 1. pip install pytest 2. pip install pytest-html 3. pip install pytest-repeat 4. pip install allure-pytest need intall allture before 5. pip install ordering 6. pip install pytest-rerunfailures 7. pip install pytest-xdist [comment]: <> (8. pip install pytest-sugar,have issue) [comment]: <> (9. pip install pytest-cov,count rate not correct,use method add --cov=./scripts in addopts) 10. pip install -U pyvisa-py pip install PySerial pip install pyusb pip install linux-gpib (Linux) or pip install gpib-ctypes (Windows, Linux) 11. pip install -U pyvisa other VSCode Add may need: 1. autoDocstring 2. DBC Language Syntax 3. Git Graph 4. Jupyter 5. PYQT Integration 6. Python Test Explorer for Visual Studio Code 7. Test Adapter Converter 8. Test Explorer UI 9. TestHelper ### 生成报告:allure generate ..\allure-results\ -o .\report --clean ### ### 打开报告:allure open .\report ###