Added a new TestAppContext class to store all the test app information, and it could act as the context for a test run. Also leverage the APK-parser and PkgUtil and dom to get app component information, serving as the test coverage compute base.
Besides:
fix many warnings in PkgUtil regarding IO closing and redundant value init.
Linked GitHub issue ID:
Pull Request Checklist
[x] Tests for the changes have been added (for bug fixes / features)
[x] Code compiles correctly with all tests are passed.
[x] I've read the contributing guide and followed the recommended practices.
[ ] Wikis or README have been reviewed and added / updated if needed (for bug fixes / features)
Does this introduce a breaking change?
If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.
[ ] Yes
[x] No
How you tested it
Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.
Please check the type of change your PR introduces:
[ ] Bugfix
[ ] Feature
[ ] Technical design
[ ] Build related changes
[ ] Refactoring (no functional changes, no api changes)
Feature UI screenshots or Technical design diagrams
If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...
Description
Added a new TestAppContext class to store all the test app information, and it could act as the context for a test run. Also leverage the APK-parser and PkgUtil and dom to get app component information, serving as the test coverage compute base.
Besides:
Linked GitHub issue ID:
Pull Request Checklist
Does this introduce a breaking change?
If this introduces a breaking change for Hydra Lab users, please describe the impact and migration path.
How you tested it
Please make sure the change is tested, you can test it by adding UTs, do local test and share the screenshots, etc.
Please check the type of change your PR introduces:
Feature UI screenshots or Technical design diagrams
If this is a relatively large or complex change, kick it off by drawing the tech design with PlantUML and explaining why you chose the solution you did and what alternatives you considered, etc...