I am writing integration tests that make sure tapping on the OSD 'accept' button opens the dialer app (more similar tests as well). The problem is that my tests run fine for the first time, but if try to run the test the second time it fails because it seems that after dialer-app is started I cannot get autopilot interface for unity8.
To reproduce this problem
1. Ensure unity8 is running with the testability driver:
stop unity8 ; initctl set-env QT_LOAD_TESTABILITY=1 ; start unity8
2. Download the attached python script
3. push it to the phone's /home/phablet
4. run it and it will print the unity8' Notification object
5. Now start the dialer-app (keep it open or close it)
6. execute the python script again
The title sounds weird, right ?
I am writing integration tests that make sure tapping on the OSD 'accept' button opens the dialer app (more similar tests as well). The problem is that my tests run fine for the first time, but if try to run the test the second time it fails because it seems that after dialer-app is started I cannot get autopilot interface for unity8.
To reproduce this problem
1. Ensure unity8 is running with the testability driver: TESTABILITY= 1 ; start unity8
stop unity8 ; initctl set-env QT_LOAD_
2. Download the attached python script
3. push it to the phone's /home/phablet
4. run it and it will print the unity8' Notification object
5. Now start the dialer-app (keep it open or close it)
6. execute the python script again