/srv/irclogs.ubuntu.com/2015/03/16/#ubuntu-autopilot.txt

=== MacSlow is now known as MacSlow|lunch
=== MacSlow|lunch is now known as MacSlow
nik90balloons: hey, can you ping me later when you are free..I am having trouble running clock app autopilot tests on my vivid laptop (log http://paste.ubuntu.com/10596507/ )13:41
balloonsohh theres a queue in here :-)13:49
balloonsmorning all!13:49
balloonsrpadovani, I re-ran it. It returned nothing to jenkins so it's hard to say what went wrong14:04
rpadovanity!14:04
balloonsnik90, so this log.. how do you generate it?14:06
balloonsohh is this a fresh checkout? if it's on the desktop, it's not finding the binary14:06
balloonswe should put the python in to find the binary rather than require it be in a specific location.. there's a cmake parser, which does work to do this14:07
nik90balloons: yeah is on a fresh vivid install on the desktop14:08
nik90what do you mean put python in to find the binary?14:09
balloonsnik90, heh, I'm rambling aloud. Ok, so to fix your issue make sure you build as instructed in the README. Unless someone has changed something the tests expect the binary in that specific folder14:13
balloonsthere is some python code we can add to the testsuite that would read the cmake build file instead of requiring a specific folder for the binary. So during test startup, it reads the cmake build file and looks for the binary that way, instead of requiring a fixed relative path14:14
nik90balloons: omg, I am an idiot, I forgot to build the binary...(QtC usually does that for me)14:15
balloonsnik90, right :-) not building it also causes that, heh14:15
nik90balloons: so after building the binary, and runnig autopilot run test_name works... however i tried using autopilot3 but it fails and complains something about  DisplayConnectionError http://paste.ubuntu.com/10609916/14:21
nik90I figured if I could use autopilot3 it would help me use autopilot3-sandbox-run and the other cool features14:22
nik90I see the clock app show up and then get closed almost immediately while using autopilot314:22
balloonsnik90, autopilot3 causes you problems.. interesting14:25
balloonstrusty ofc, and what version of autopilot3?14:25
nik90balloons: no no this is on vivid14:26
balloonsoh nice14:26
nik90balloons: version info http://paste.ubuntu.com/10609963/14:26
balloonsjust your normal desktop?14:26
nik90yup14:27
nik90(my old laptop)14:27
nik90running vivid daily build 138614:27
balloonswell I guess let me try as well locally here. However, autopilot2 works fine for you14:28
balloonsot14:28
nik90yeah autopilot works fine, so I guess I can use it for now14:28
balloonsI can't imagine the backend code is substantially different, but we can look14:28
nik90I have been asked to improve the clock app's AP status..so I will be adding back the functional tests for editing alarms, etc that currently only exist in the QML test suite14:29
balloonsnik90, ohh.. what's clock look like on the dashboard anyway?14:30
nik90balloons: every AP test fails :/ due to the location prompt14:31
nik90so I cannot release a new click to the store as a resutl14:31
balloonsnik90, ahh well I guess we should start by fixing that eh?14:32
nik90balloons: I can't since it requires upstream helpers to be added in the trust-store, let me grab the MP we have currently that requires upstream fix14:33
balloonsand there is nothing wrong with keeping your AP test suite smaller.14:33
balloonsnik90, we can bundle the helpers locally for now and transition later14:33
nik90https://code.launchpad.net/~brendan-donegan/ubuntu-clock-app/disable_location_prompt/+merge/24268214:33
nik90check out the last reply from iahmad14:34
balloonsnik90, right so that's all landed.. it means we can write helpers now and bundle them locally. And ofc upstream them and transition after14:34
balloonsmake sense?14:34
nik90yes14:35
balloonsnik90, I get the same error as you, nice14:38
nik90ooh :P14:39
balloonsand indeed, autopilot works..investigation and bug filing time14:39
nik90balloons: just for clock app? Since otherwise this might have been spotted earlier on14:39
balloonsnik90, no it's for everything.. Something must have broken it recently14:41
balloonsI have a small update I can do so I'm doing that first14:41
balloonsare you fully up to date?14:41
nik90yeah I am fully up to date14:42
balloonsyea nothing in here will change anything so I suspected as much14:42
balloonslet me try and pinpoint what broke it14:43
balloonsrpadovani, looks like you got a valid run that time: http://91.189.93.70:8080/job/generic-mediumtests-utopic/2357/testReport/junit/ubuntu_calculator_app.tests.test_main/MainTestCase/test_sin/14:43
balloonsat least a log14:43
balloonsnik90, so carry on with autopilot2 for now.. This should be fun to track down for someone else :-)14:58
nik90balloons: yes, I have started writing some new tests. I haven't had any success with running AP tests on the phone (using all the methods that I could find), so the location-prompt thing will have to wait for now.15:00
paulliuhi. If I add some cout/cerr in platform-api. How do I print those out when using autopilot3?15:31
balloonsnik90, you don't have a spare phone just for testing do you?15:33
nik90balloons: I use my S4 Android as my primary phone, and the N4 just for testing and developing for UT. I tried the script popey and also adt-run on devel-proposed as well15:53
balloonsnik90, right. I was going to say grabbing devel-proposed image with vivid should let you use adt easily enough. It should just work15:55
balloonsalternatively you can grab devel-proposed, make it r/w and install autopilot packages again. Then copy the tests and run them just like you do on the desktop. The downside of that is you'll have to occassionally re-flash the phone to update it15:56
nik90balloons: For instance, when I tried adt-run on the music app AP tests, they all didnt get past the welcome wizard. I am not sure why.15:56
nik90hmm ok I will do that15:56
balloonsnik90, if you are interested in cloning what happens on the dashboard, this is how CI does it. Essentially they do what I said as the latter option: http://ubuntu-test-cases-touch.readthedocs.org/en/latest/15:59
balloonsso if you do that, you may as well simply use there script15:59
balloonsnik90, if they didn't get past the welcome wizard that might just be an issue with the tests.16:00
nik90ok16:05
nik90balloons: wow that docs looks detailed and easy to follow, thnx. I will give that a go16:07
* ahayzen hides and pretends the tests are working perfectly :)16:07
nik90ahayzen: lol16:08
nik90ahayzen: I just took another app to see if something was wrong with my testing environment16:08
ahayzenhaha16:08
balloonsnik90, good let me know.. CI is actively documenting that atm, I've been wanting to make sure it's actually usable by someone like yourself16:08
nik90will do16:13

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!