=== salem_ is now known as _salem === pleia2_ is now known as pleia2 [04:18] how do I test application launch in autopilot ? [04:18] what assertion should I give for that ? === Ursinha is now known as Guest36665 [04:38] good morning === pitti_ is now known as pitti === forestpi1kie is now known as forestpiskie [06:27] Good Morning all :-) [06:28] hi DanChapman - hope all is well in kiddy land [06:43] DanChapman: not sure what the crack is with the bulk rename test - commented again [06:44] if the one in the m/list is the one that got pushed for review - I'll talk to him [06:49] elfy, if you go here and scroll down below our comments you can see slickymaster's addition https://code.launchpad.net/~slickymaster/ubuntu-manual-tests/bulk_renamer/+merge/173115 [06:50] It would appear he made changes to two seperate tests. Setting manager and bulk renamer. But the settings manager was just some formatting i believe [06:51] the settings one shouldn't have been there - he shouldn't be working on that till my changes to it get merged [06:51] s/one/bit [06:53] ok commented :) [06:54] I had that issue when I started - which is why I keep each thing I'm working on seperate - not cross contamination then [07:00] elfy, yeah it can get a little confusing can't it. anyway yeah kiddy land is good thanks for asking. :-) [07:00] cool [07:00] good morning [07:01] good morning jibel [07:02] Hey DanChapman [07:03] morning jibel [07:09] Good morning elfy [09:07] good morning, everybody [09:08] good morning === jibel_ is now known as jibel [10:34] pitti, many thanks! I will post it today (hopefully after packaging stuff) [10:36] smartboyhw: YW; please let me know if something reads strangely [11:03] anyone around which know how to play with autopilot? Trying to understant where comes such functions like .get_toolbar() [11:07] Eh, DanChapman wasn't here === _salem is now known as salem_ [13:01] howdy everyone [13:01] hey balloons [13:02] anyone around which know how to play with autopilot? Trying to understant where comes such functions like .get_toolbar() [13:08] Hey balloons [13:08] xeranas_, hey, we now are at the autopilot tutorial session:) [13:08] smartboyhw, where> [13:08] Wait, why is my NickServ account dropped? [13:09] Eh, Freenode failure [13:09] xeranas_, here [13:09] balloons, teach me autopilot [13:09] (LOL kidding) [13:10] balloons, it seems like my idea is not welcomed:P === yofel is now known as Guest6895 === charles is now known as Guest17995 [13:12] qmlpreview works terible for VM setup, I wonder it is just for me === xeranas_ is now known as xeranas === Guest6895 is now known as yofel [13:28] ok looks like we're all coming back online now from the netsplit :-( Sorry about that. If you asked me a question odds are I missed it. [13:28] You might also have missed some of the introduction I posted. No worries. For anyone here for the automated testing workshop, welcome again :-) [13:28] balloons, my question: It seems like my idea was not welcomed:P [13:29] smartboyhw, we can chat about that in a bit [13:29] don't lose hope yet :-0 [13:29] So a quick recap.. Autopilot is the tool we're using to write automated tests. It can simulate user input and lets us test at a high level [13:30] the core apps are a community developed set of essential phone applications for the ubuntu touch platform [13:30] So to help write tests for these, you need a few things: [13:30] 1) an installation of raring or saucy. It can be a VM or real hardware install [13:30] 2) Install autopilot and the ubuntu-sdk.. It can help to install the core-apps ppa as well and the core apps packaged versions [13:30] 3) Learn a bit about autopilot and how the tool works [13:31] If you haven't yet read through http://developer.ubuntu.com/resources/cookbook/mobile/how-to-write-autopilot-tests/, do that first. [13:31] Ok, so I think we're caught back up for the most part. Since we lost a bit of time, I'll stop talking and start talking questions now :-) Let me know what your working on and if you might need help on something :-) [13:32] There's some handy questions and answers already found on this page that might help you: https://wiki.ubuntu.com/Touch/CoreApps/Testing/FAQ [13:33] Do we need to install the apps to test or do they come with the bzr command? [13:34] Cecil, there's a ppa which let's you install all of the core apps. This is handy because you'll get any dependencies you need to run the core apps during the install [13:35] however, you can also run them by checking out the branch and running the qml file manually via qmlscene [13:35] Information on the ppa is here: https://wiki.ubuntu.com/Touch/CoreApps/PPA [13:36] So for anyone wanting to get a setup going I would install saucy, into say a VM [13:36] I have installed (and using now) saucy... will it get updates like my 13.04? (I've noticed some instability) [13:36] I do not clearly understant where from comes such methods like ".get_toolbar()" is this is autopilot stuff or it depends from qml [13:37] Cecil, yes it will, and yes you might notice some bumps Cecil because it's development [13:37] xeranas, sure.. That sounds like a custom method as part of a helper class specific to that testcase. Where are you seeing this? [13:38] Sorry so to get back to my quick setup.. If your wanting to get started, installing raring or saucy into a vm or on real hardware [13:38] I looking into test_rssreader.py as sample [13:38] then add the autopilot ppa and install autopilot [13:38] then install the ubuntu-sdk and finally the core-apps ppa [13:39] that should make sure you don't have any issues running autopilot or any of the core apps [13:39] xeranas, ok let's pull that up. [13:41] xeranas, right so you see something like this line: toolbar = self.main_window.get_toolbar() [13:41] yes [13:41] that is telling you the function is coming from the main_window class -- make sense? [13:41] look inside the "emulators" folder and you'll see a main_window.py file which contains the details [13:42] many core apps utilize emulators as they are called in autopilot. It's simply a helper class with utility functions [13:42] here's the code for get_toolbar [13:42] def get_toolbar(self): [13:42] return self.app.select_single("Toolbar") [13:42] really simple :-) [13:42] never looked into emulators folders since I was thinkin that for old versions, must be missreaded somewhere [13:43] ahh, no worries that probably helps make sense of things :-) [13:43] in addition, don't neglect __init.py__ as there generally is some setup done in that file as well [13:44] I'm speaking of tests/autopilot/appname/tests/__init.py__ [13:44] the same subdirectory as the testcase itself [13:45] you'll generally see a custom class made for the application that takes cares of launching an installed or local version and using a mouse or touch device [13:45] so select_single("Toolbar"), 'Toolbar' comes from qml? [13:45] xeranas, yes so the "Toolbar" comes from the qml [13:46] let's take a look at the qml file for rss reader [13:46] ubuntu-rssreader-app.qml [13:46] you'll notice there are several qml files, which isn't uncommon for an app to have. the qml has just been split amongst them [13:47] each view might be it's own qml file for instance [13:50] so I'm looking at the current RSS reader test, and well there's not much to it :-) It's swiping the toolbar up and checking to see if it appears, but that's it [13:51] there is add Feed button on toolbar, I just try to press it [13:51] xeranas, there's a couple reviews adding some more tests to it that are in progress :-) But you can see what's needed on the list of bugs: https://bugs.launchpad.net/ubuntu-rssreader-app/+bugs?field.tag=needs-autopilot-test [13:51] xeranas, indeed.. what happens when you press it/ [13:53] currently I just playing around, just try learn about autopilot. When I feel that I can finish test some sort I will check bugs [13:53] Cecil, how's it going for you? [13:53] xeranas, certainly. If your curious check out for instance the clock or weather app. Both have some more tests already written and checked in [13:54] that will help a bit to see how the tests look.. when I'm learning I like tinkering with things that already work :-) [13:55] did qml item must have id in order to be controlled by autopilot? [13:56] Currently installing all the recommend tools! there a bunch to install. I think I may have questions on the apps because of the sub-classing they have done to "make it easier". Maybe the currency converter tutorial will help [13:58] xeranas, so in order for us to use an object during runtime, we can add an objectName to the qml file [13:58] this let's us be very specific in requesting the object we want. Otherwise we can select all the toolbars, all the buttons, all the lists, all the text fields, etc, etc. That might not help us, so being able to assign a specific name is very useful [13:59] Cecil, yes the subclassing in the apps might be a bit confusing (I like to keep things simple!) but it helps out tremendously once you get it. [14:00] there helper functions save a lot of time and grief [14:03] I realize the hour has passed, but don't worry I'm still here.. Keep any questions you have coming; let me know if I can help :-_) [14:06] if did stuff like myToolbar = select_single("Toolbar"), If I did once again for myToolbar like myToolbar.select_single("SubItem") If I get result, or it just works for "root" elements [14:08] After adding the PPA, what are the install names for the apt-get command? Are they listed somewhere? [14:09] For example: Dropping Letters is named "dropping-letters" [14:09] xeranas, yes that makes sense.. So you can select the toolbar, then say select a subitem from the toolbar by issuing your myToolbar.select_single("SubItem") [14:10] Cecil, yes indeed. They are listed in the ppa itself: https://launchpad.net/~ubuntu-touch-coreapps-drivers/+archive/daily?field.series_filter=saucy [14:11] they aren't listed as a friendly copy-paste line though if that's what your wondering [14:11] they need a metapackage [14:11] And where does it put them? after install, I get command not found [14:11] and lol, there is one [14:11] " Install the 'touch-coreapps' metapackage to install all of the core apps at once." [14:11] cool [14:19] ok, that installed them all. was playing with the calendar app... so my plan is to complete the training using the currency converter, then look at the calendar app. Sound ok? [14:28] bug 1197911 [14:29] aww bugbot still netsplit eh? [15:46] balloons: there's a scraper bot on ##phillw if you want to C & P something :) [15:46] phillw, heh [15:47] smartboyhw: it's a different bot :) [16:02] hello balloons [16:02] good day drsaurabhsikka [16:04] i'm on saucy now [16:04] ashamed to say i had to dual boot, not knowing how to install retaining my /home folder [16:08] drsaurabhsikka: the session for that is to be re-scheduled :) [16:08] really. when's that? [16:09] it's currently To Be Announced. But it will be held some time soon :) [16:09] balloons: ^ [16:09] hours days or weeks? [16:10] i'll just try and get the hang of autopilot til then [16:10] I'm a bit too rusty to hold it without some prep work, so dpniel is holding it https://wiki.ubuntu.com/Testing/Activities/Classroom/Saucy#Introduction_to_QA_tools [16:10] hopefully a matter of days :) [16:10] I would say days.. Dan whom I believe you met drsaurabhsikka is giving the session. that said, re-installing with /home is something your past now eh? [16:11] cool [16:12] no balloons, I'm not past that...i just take the easy way out [16:12] you know what I mean :-) A solved problem can stay solved for now :-) Re-opening that can of worms can be another day [16:13] so how's the autopilot tinkering coming along drsaurabhsikka ? [16:13] drsaurabhsikka: nothing wrong with sticking with what you're comfortable with. Losing your personal stuff is a nightmare I wouldn't wish on my worst enemy :) [16:13] exactly [16:15] basically it wasnt the documents i was afraid of losing, it was all these apps, like the tweaked up skype with the webcam script, and the eclipse IDE etc [16:15] i'm still reading the autopilot documentation [16:53] trying to install Qt-creator [16:53] firefox has a link to trigger apt [16:54] balloons, please help [16:55] drsaurabhsikka, you can sudo apt-get install ubuntu-sdk [16:55] i did that [16:55] that should pull qt creator and everything else [16:55] cool [16:55] ohh? [16:55] ahh.. kk [16:55] what is this pop up window asking me to choose an application for apt links? [16:56] firefox must want a handler for apt links? that's odd [16:56] it should be set to ubuntu software center [16:56] yes it used to be that way before i remember [16:56] automatically [16:56] though now, i must sift through my filesystem to find...? [16:57] /usr/bin/software-center [16:58] evening all [16:59] there are 2: the vanilla variety , and the gtk-3 === netcurli_ is now known as netcurli [17:00] which software-center [17:00] /usr/bin/software-center [17:00] /usr/bin/software-center and /usr/bin/software-center-gtk-3 [17:05] good afternoon, everybody [17:05] Elfy: sorry for being such a pain in the neck [17:06] slickymaster: it's fine - I've all the time in the world :) [17:07] elfy: so, I think we rather are in the same wave length, regarding the way we approach the tests [17:07] hello elfy [17:07] we are [17:08] elfy: did you manage to get a few seconds to see if everything is ok now, with the Bulk Renamer one? [17:08] slickymaster: see the private window [17:08] hi drsaurabhsikka [17:14] ok, i just did a bzr branch for the sdk tutorials [17:14] where would i find the "tests" subfolder? [17:15] I'm reading this and trying to follow http://developer.ubuntu.com/resources/tutorials/quality/how-to-write-autopilot-tests/ [17:16] drsaurabhsikka, gotcha [17:17] ohh I see they added a directory on top, I can update the tutorial to be extremly explicit :-0 [17:17] look in getting-started, CurrencyConvertor [17:18] that was the root of the branch :-) [17:19] but where is the branch, on the FS? [17:22] ahh when you issue a bzr branch is makes a new folder in the directory you issued the command by default [17:22] so bzr branch lp:~nskaggs/mysupercoolbranch makes a folder called mysupercoolbranch [17:23] righto! [17:23] bzr branch lp:ubuntu-sdk-tutorials makes a folder called ubuntu-sdk-tutorials [17:23] :-) [17:23] got it [17:24] do i still have to cook the CurrencyConverter recipe? [17:24] nope :-) [17:25] found it!! [17:25] drsaurabhsikka, I updated the page to be explicit at the point :-) [17:29] drsaurabhsikka, ping if you encounter any other questions :-) [17:30] great thanks! So bzr is like wget [17:32] folderwise [17:32] bzr has versioning, so it's really a source control system [17:32] have you used any in the past? git? svn? cvs? [17:41] svn, 4 years ago, but that was a blind procedure [17:41] but i get the concept [17:42] :-) good, don't feel bogged down by it. They'll be a few commands to learn, but we can help with that. Just know it lets us share code easily :-) [17:43] sorry about the nitpicking, but the code on the same page is actually inside 2 subfolder levels below: cd ubuntu-sdk-tutorials/getting-started/CurrencyConverter/tests/autopilot/CurrencyConverter/tests/ [17:44] :) i 'git' it! [17:50] drsaurabhsikka, I made updates on your feedback.. not nitpicking at all [17:50] reload the page and see if things make sense [17:50] :-) you git it! I love it === francisco is now known as Guest44759 [18:00] i just ran autopilot on CurrConv [18:01] this is awesome stuff!!! [18:01] except that, the test Failed! [18:01] well one of them did [18:04] nice! [18:04] well, not the failure.. what failed? But yea, pretty cool stuff right? [18:08] Hi, i'm actually reading https://wiki.ubuntu.com/QATeam/Hardware but i'm not familiar with the Ubuntu-Wiki, how can i add my Hardware Spec.? [18:08] it is indeed. It says: Ran 2 tests in 28.967s FAILED (Failures=1) [18:09] cd ubuntu-sdk-tutorials/getting-started/CurrencyConverter [18:09] sorry [18:10] sm0x-nb, howdy [18:10] sm0x-nb, if you have a ubuntu sso login, you can edit the page and add your link to it [18:10] the fromField test seems to have failed [18:10] if your not sure how, we can have someone add it for you given the information [18:11] hi balloons, thank you :) [18:12] self.assertThat(fromField.text, Eventually(Equals(oldFromValue))) [18:12] MismatchError: After 10.0 seconds test on TextField.text failed: String(u'2.948') != dbus.String(u'0.019558', variant_level=1) [18:15] weird, works perfectly for me [18:18] also this error: QObject::connect: Cannot connect QQuickShaderEffectSource:: to ShapeItem_QML_47::onImagePropertiesChanged() [18:18] the second time the window opens, the currency fields are blank [18:18] before the Clear button is pressed [18:18] could that be the prob? [18:20] the mouse on the Clear button clicks and the window closes. [18:23] if i run the clear button test alone, it runs OK [18:24] thanks for helping, the entry is now set. I hope it was correct. But one Question are left, whats my WikiName? And how can i change/get it? [18:26] sm0x-nb, ahh you can make your own wikipage [18:26] there's a link i can find in a minute [18:29] ok thanks, but it's not necessary, or? :) [18:31] sm0x-nb, no it's not required :-) [18:31] balloons, I'm getting stuck at the end of the tutorial page, [18:31] drsaurabhsikka, yea I'll look in a moment [18:31] some message about Qt Test not installed. sure ok... [18:31] thanks [18:46] balloons, i'm off to bed. i'll catch up with this exciting thing later [18:46] ok drsaurabhsikka sorry mate [18:46] not at all, thanks! [18:46] indeed.. I won't fret too much about the errors, but I'm around [18:47] email me if you would so I have your email just in case :-) [18:47] i will [18:47] thanks mate [18:47] enjoy! [19:15] Hi all, I am currently executing the test-case 'Install (auto-resize) in Ubuntu Desktop amd64 for Saucy Daily'. Can anyone else confirm that this option is no longer available for selection? [19:17] Hi all, I am currently executing the test-case 'Install (auto-resize) in Ubuntu Desktop amd64 for Saucy Daily'. Can anyone else confirm that this option is no longer available for selection? [19:29] adegoodyer, which option? [19:31] balloons, You know the one where you install alongside an existing install and can drag the slider to adjust each partitions space. [19:51] adegoodyer, yes let me get the screenshots so I know which one your talking about :-) [19:55] found them :-) [19:55] adegoodyer, is it in here? https://plus.google.com/photos/105922848292507689403/albums/5802148812308412001?banner=pwa [19:56] balloons, Yes, that's the one. All I see so far is this? http://imagebin.org/263526 [19:57] balloons, and I have definitely checked that there is an existing install already :o) [19:59] yes, that looks correct to me then [19:59] basically if your already installed you should get those options [20:00] the upgrade is a bit silly, but is allowed during the development release [20:00] normally you upgrade from only release to the next, and no downgrading is allowed [20:00] adegoodyer, I guess I'm confused as to what your not seeing or what the testcase is saying [20:01] which number on the testcase are you concerned about? [20:04] balloons, Are you sure? Let me clarify, the test case was executing was the 'Install (auto-resize)' one, where you could install another Ubuntu system alongside an existing one on the same PC. [20:05] adegoodyer, ahh ok.. so what you expected to see was install alongside and it's not present? [20:05] balloons, Yes that's right :o) [20:06] balloons, like the first two images in the link you just provided [20:07] finally I got what you were saying [20:07] blame friday adegoodyer :-) [20:08] that is concerning that it doesn't exist.. I wonder what's going on [20:08] let me launch and see if it works on an older release [20:08] that's my guess [20:09] my iso is from today [20:09] * balloons boots up precise box [20:09] balloons, No problem. Yes, I was thinking something similar... I have always just installed two of the same daily .iso along side each other but I would presume they have finally put a check in to halt that [20:10] adegoodyer, ohh noes! [20:10] balloons, what's up?? [20:11] lol, my precise box is borked. it didn't see any installed system [20:11] turns out.. it was right [20:11] haha [20:11] we'll try the raring box :-) [20:11] k, I see the install alongside just fine with raring install [20:12] balloons, Haha. Just how many boxes you got there!? :o) [20:12] precise, raring, and saucy [20:12] balloons, Right that's good then, just means they have places a check in then, which is actually kind of annoying lol [20:14] lucid got upgrade when it Eol'd to precise :-) [20:14] what an upgrade that was let me tell you [20:14] ok, so I'll try re-installing on the saucy box now [20:16] balloons, Ha, yeah I can believe that. Ok, my money would be on that working as well now. A small pain because means two versions of Ubuntu are needed to carry out that test case from now on but no bother [20:17] adegoodyer, we'll see soon enough. however it's still a change and worth mentioning to ensure it was intended [20:18] I don't see harm in filing and asking about it assuming we confirm things [20:21] balloons, Very true, I will file shortly and keep you posted on the outcome. [20:22] balloons, Going to have to file a bug regardless as the tracker won;t let me fail the test else - it's clever like that :o) [20:30] adegoodyer, I can confirm the bug btw [20:36] balloons, bug has now been filed :o) [20:37] :-) === pgraner` is now known as pgraner [21:23] Hi hi. I'm interested in making my pbuilder run autopkgtests at the end of any build. Has anyone done something similar before? === salem_ is now known as _salem [21:31] balloons, around? [21:32] balloons, you might be interested https://jenkins.qa.ubuntu.com/job/autopilot-ubuntu-applications/ [21:33] I started by enabling evince and will add others [21:34] balloons, for the details the runner for otto is here https://code.launchpad.net/~otto-dev/otto/testsuite_autopilot-ubuntu-apps [21:38] That the best acronym for autopkgtest is APT is kind of terrible. [21:47] balloons, I added all the apps from the production testsuite, it runs in less than 10min on platforms ATI and Intel. I'll schedule a daily run around 2100UTC === Guest17995 is now known as charles [22:05] balloons: are you about?