Issue
Manually launched the application
Code tried: ''' String cmd = 'adb shell dumpsys window | find "microFocus"' Process res = Runtime.getRuntime().exec(cmd) def output = res.text print(output) '''
It is not returning anything.I need to get activity name of the launched application though code. Please do help! Thanks in Advance
Solution
Considering your requirement is to filter an activity name from the output of dumpsys windows command then you probably need to use grep instead of find.
So to sum up, the right set of commands to use is the following:
adb shell dumpsys window | grep -i "microFocus"
You should plug it into the cmd variable.
Answered By - Lino
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.