Get requirements from RequirementFactory object and Tests from TestFactory object. Get the low, medium, high priority counts using filter object with appropriate filter condition.
Refer OTA guide, there are lot of example code.
Refer OTA guide, there are lot of example code.