Files
ability_ability_runtime/tools
Luobniz21 64979c5869 aa start: add TDD test cases for -u option
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
2026-03-25 09:25:31 +08:00
..
2026-03-24 22:14:23 +08:00
2022-12-26 16:17:14 +08:00