mirror of
https://github.com/openharmony/ability_ability_runtime.git
synced 2026-08-24 22:21:36 -04:00
64979c5869
Add test coverage for the three new branches added with userId support: 1. Test -u option without argument (branch in option error handling) 2. Test -u option with invalid userId (non-numeric or negative) 3. Test -u option with valid userId (100 and 0) Test cases: - Aa_Command_Start_5100: Verify "aa start -a <ability> -b <bundle> -u" without argument - Aa_Command_Start_5200: Verify "aa start -a <ability> -b <bundle> -u xxx" (non-numeric) - Aa_Command_Start_5300: Verify "aa start -a <ability> -b <bundle> -u -1" (negative) - Aa_Command_Start_5400: Verify "aa start -a <ability> -b <bundle> -u 100" (valid) - Aa_Command_Start_5500: Verify "aa start -a <ability> -b <bundle> -u 0" (valid) Note: The -W option conflict warning is covered implicitly as it only logs a warning and doesn't affect command execution result. Signed-off-by: Luobniz21 <luoyicong@h-partners.com> Co-Authored-By: Agent