Hey. Well let me tell you that in the original automated test cases done by Rumania there were comments that timeouts happened only with Chrome. To this they added the sleep function on initializing web driver and when they changed views. Obviously this was wrong so, when they created testcases in the Django framework, done by Eliot and some others, they implemented methods like wait_until_visible, is_element_visible etc etc.
The point is, from what I read on the documented code only Firefox seemed to not have timeout issues, this had to do with how this browser handled the selenium web driver. Maybe the problem is around this. But cant be 100% sure. Best Regards Libertad G. ________________________________________ From: Reyna, David [[email protected]] Sent: Wednesday, April 05, 2017 4:48 PM To: Cruz, Libertad Cc: [email protected] Subject: RE: Patches for 9808 Hi Libby, Thank you for the information. 1) I have examined "alimon/toaster_tests" and it appears that the cumulative change is: * Separate out "load_build_environment ()" in "builds/buildtest.py" * Add "functional/functional_helpers.py" * Add "functional/test_functional_basic.py" * Add "functional/__init__.py" I have made those changes to a clean installation, and the test you indicated passed (it was fun to see the browser got though all its moves!) I am going to create a new cumulative patch, include you and AnĂbal as sign offs, and send it upstream. BTW, I did need to source "oe-init-build-env" before running the tests, because they depend on "toaster" being in the path. 2) I also ran the standard test just to see, and I got several timeout errors (see attached). TOASTER_TESTS_BROWSER=phantomjs bitbake/lib/toaster/manage.py test orm toastergui tests.browser I think that this should be unrelated to the new patch, so I will not delay that. Perhaps the errors is related to other recent changes? Do you have ideas what is going on? Thanks! David -----Original Message----- From: Cruz, Libertad [mailto:[email protected]] Sent: Wednesday, April 05, 2017 10:25 AM To: Reyna, David Cc: [email protected] Subject: RE: Patches for 9808 Hello David, Sorry for the delay. I hate to say and I am embarrassed to say that I totally forgot the whole instructions on how to run the test cases. So, spend some time fixing the errors shown because of missing steps in the instructions. But here they are... First I did have a version of them under poky_contrib/libby. But then went out for maternity leave and Alimon started to work on them under his branch poky_contrib/alimon/toaster_tests. When I got back he had the helpers class and the initial setup with the DJANGO framework on his branch. So, I decided to import the test cases to this branch and changed them based on the comments received by Michael. So, I continued to work on Alimon's branch. 1. git clone http://git.yoctoproject.org/git/poky-contrib 2. cd poky-contrib/ 3. git checkout alimon/toaster_tests 4. cd bitbake/lib/toaster/ 5. export TOASTER_TESTS_BROWSER='firefox' 6. export DJANGO_SETTINGS_MODULE='toastermain.settings_test' 7. /manage.py test tests.functional Again sorry for the delay. Best Regards Libby G. ________________________________________ From: Reyna, David [[email protected]] Sent: Wednesday, April 05, 2017 10:27 AM To: Cruz, Libertad Cc: [email protected] Subject: Patches for 9808 Hi Libby, I found what I think are the two patches for 9808: 1) The original patch, at poky-contrib: http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/commit/?h=libby/toaster_tests&id=ff71f577d0d8f67591dea017410f5c39ecd6ac85 2) A second patch that cleans up formatting in the test ID names, at Patchworks: https://patchwork.openembedded.org/patch/137605/ Is this the full set? I just want to confirm I have all the content, because I could not find the original patch in my Toaster mail box. I look forward to the test instructions for using 9808, that will be a help to confirm I have it correctly. Thanks! David -- _______________________________________________ toaster mailing list [email protected] https://lists.yoctoproject.org/listinfo/toaster
