<div dir="ltr"><font size="1">I am trying to write tests for Read activity and am facing a 'GError : timeout from dbind' while writing the test for it. The test that I am trying to write is to open a file in Read Activity. After, searching on the error, I found out that as soom as Read starts, it has some dbus settings but as soon as I open the objectchooser to open the files, it takes the dbus settings of the journal and hence leading to atspi to assume that the read activity has stuck and thus giving the above error.</font><div>
<font size="1"><br></font></div><div><font size="1">I have attached the test that I have written for Read till now. In order to run it, please follow the given steps-</font></div><div><br></div><div><font size="1">1. cd sugar-build/activities/Read.activity</font></div>
<div><font size="1">2. mkdir -p tests/integration</font></div><div><font size="1">3. cd tests/integration</font></div><div><font size="1">4. cp <Downloads-directory>/test_operations.py ./</font></div><div><font size="1"> </font><span style="font-size:x-small">cp <Downloads-directory>/test.txt ./</span></div>
<div><font size="1">5. Now run sugar build ./osbuild run</font></div><div><font size="1">6. Open Terminal activity</font></div><div><font size="1">7. cd ~/activities/Read.activity</font></div><div><font size="1">8. ./setup.py check integration #this runs the test</font></div>
<div><font size="1">9. If everything runs fine, then you can see a tree like structure showing the heirarchial arrangement of the activity as seen by atspi.</font></div><div><font size="1">10. If you stumbled with GError, then you see "EEEEEEEEE : Error" in the terminal activity.</font></div>
<div><font size="1"><br></font></div><div><font size="1">I am attaching the test_operations.py (test file) , test.txt(sample file that has to be opened in Read activity), screenshot of my Terminal after running the test.</font></div>
<div><font size="1"><br></font></div><div><font size="1">If anyone has been able to resolve this problem, then it would be a great help to know on how to solve it. Thanks. </font></div></div>