@punamdahiya
Sorry for the late reply.

For the question 1, sure, we could do that.
For the question 2, we better do not depend on any code(logic) in any app as possible for writing ui test.