Closed (fixed)
Project:
Drupal Open Learning
Component:
Website
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2008 at 20:07 UTC
Updated:
6 Jul 2009 at 22:46 UTC
IRC log:
<?php
[2008-03-23 14:36:10] <cwgordon7> ok, starting?
[2008-03-23 14:36:14] <siliconmeadow> btw: i get this: You will not be able to hear or send voice until the channel codec is set to a Speex codec
[2008-03-23 14:36:16] <josh_k> cwgordon7: yeah, let's go!
[2008-03-23 14:36:20] <nikkiana> cwgordon7, oh great. so everyone heard me yelling at my husband didn't they :P
[2008-03-23 14:36:28] <josh_k> nikkiana: oddly no
[2008-03-23 14:36:33] <josh_k> it was only loopback
[2008-03-23 14:36:36] <nikkiana> interesting.
[2008-03-23 14:36:40] <josh_k> siliconmeadow: I got the same w/speex
[2008-03-23 14:36:44] <josh_k> switched to TeamSpeak 2
[2008-03-23 14:37:14] <josh_k> nikkiana: sorry about that
[2008-03-23 14:37:14] <siliconmeadow> tx - didn't know there was a newer one
[2008-03-23 14:37:36] <nikkiana> josh_k, it's okay. i can't get the screencast half of it working anyway... i think i'm going to give up.
[2008-03-23 14:37:46] <josh_k> nikkiana: we'll get the recoded version up
[2008-03-23 14:38:05] <josh_k> siliconmeadow: it's pc :\
[2008-03-23 14:38:22] <egoleo> hey guys
[2008-03-23 14:38:25] <egoleo> i am lost now
[2008-03-23 14:38:33] <stompeers_> Hi, cwgordon7 mentioned there was a simpletest cast, is it possible to still join up?
[2008-03-23 14:38:35] <siliconmeadow> lol
[2008-03-23 14:38:38] <josh_k> egoleo: do you have the ability to make a new connection
[2008-03-23 14:38:41] <josh_k> stompeers_: yes
[2008-03-23 14:38:49] <josh_k> stompeers_: read channel topic for info
[2008-03-23 14:38:50] <siliconmeadow> oh dear, what's a PC... lol
[2008-03-23 14:38:52] <egoleo> i am in some kind of mood
[2008-03-23 14:39:05] <egoleo> i dont even get
[2008-03-23 14:39:12] <egoleo> is anyone using ubuntu
[2008-03-23 14:39:18] <egoleo> with the client
[2008-03-23 14:39:29] <egoleo> i have started it
[2008-03-23 14:39:36] <egoleo> went to quick connection
[2008-03-23 14:39:40] <josh_k> yeah
[2008-03-23 14:39:45] <egoleo> seeing whole lot
[2008-03-23 14:39:53] <josh_k> then enter nickware.dnsalias.com:8767
[2008-03-23 14:39:54] <josh_k> yes
[2008-03-23 14:39:55] <egoleo> so what next
[2008-03-23 14:39:57] <josh_k> tons of channels
[2008-03-23 14:40:00] <egoleo> yes in the
[2008-03-23 14:40:01] <josh_k> be patient and scroll down
[2008-03-23 14:40:13] <egoleo> ok
[2008-03-23 14:40:14] <josh_k> the channels are alphabetical
[2008-03-23 14:40:27] <josh_k> and there are a lot w/punctuation and zeros at the top
[2008-03-23 14:40:36] <josh_k> but eventually you start to get abc, etc
[2008-03-23 14:40:40] <josh_k> drupal-dojo is the channel
[2008-03-23 14:41:04] <egoleo> ok
[2008-03-23 14:41:08] <egoleo> scolling
[2008-03-23 14:41:28] <jpoesen> egoleo: just go to connect instead of quick connect
[2008-03-23 14:41:35] <egoleo> ok
[2008-03-23 14:41:38] <egoleo> seen it
[2008-03-23 14:41:38] <Druplicon> Sorry, I haven't seen it.
[2008-03-23 14:41:40] <egoleo> what next
[2008-03-23 14:41:41] <jpoesen> egoleo: enter the connection settings
[2008-03-23 14:41:59] <josh_k> cwgordon7: uh oh!
[2008-03-23 14:42:00] <jpoesen> egoleo: enter drupal-dojo in the "default channel"
[2008-03-23 14:42:11] <siliconmeadow> so, us old skool G5 Mac users are deaf this evening?
[2008-03-23 14:42:14] <jpoesen> egoleo: and connect. you'll automatically enter the correct channel
[2008-03-23 14:42:23] <josh_k> siliconmeadow: unfortunately
[2008-03-23 14:42:35] <josh_k> we weren't able to use our normal audio setup
[2008-03-23 14:42:51] <egoleo> ok
[2008-03-23 14:43:09] <cwgordon7> Questions so far?
[2008-03-23 14:43:12] <siliconmeadow> np
[2008-03-23 14:43:20] <josh_k> cwgordon7: for those of us w/less object oriented experience
[2008-03-23 14:43:35] <cwgordon7> josh_k: I'm going to see if I can change my jing settings, too... but go on...
[2008-03-23 14:43:37] <josh_k> will you show a bit about how these objects/functions work
[2008-03-23 14:43:47] <josh_k> cwgordon7: yeah, more than 5mins at a time would be good! :)
[2008-03-23 14:44:20] <josh_k> take your time; this is still really valuable
[2008-03-23 14:45:03] <josh_k> looks like 5mins is baked into the software
[2008-03-23 14:45:06] <cwgordon7> hm. Apparently there is no way :P
[2008-03-23 14:45:07] <josh_k> yeah
[2008-03-23 14:45:11] <josh_k> I googled a bit
[2008-03-23 14:45:11] <josh_k> :\
[2008-03-23 14:45:13] <josh_k> well
[2008-03-23 14:45:23] <josh_k> do you think you can do it in 5-min bursts?
[2008-03-23 14:45:31] <cwgordon7> options: download new screencapture software, or continue in 5 minute bursts
[2008-03-23 14:45:34] <cwgordon7> I'll do it.
[2008-03-23 14:45:41] <josh_k> ok
[2008-03-23 14:45:44] <josh_k> :)
[2008-03-23 14:45:48] <cwgordon7> But I do not have the video editing program to glue them all together
[2008-03-23 14:45:52] <cwgordon7> anyway...
[2008-03-23 14:45:53] <josh_k> that's ok
[2008-03-23 14:45:54] <cwgordon7> continuing
[2008-03-23 14:45:58] <josh_k> I will volunteer for that
[2008-03-23 14:45:59] <jpoesen> cwgordon7: just a hint: there are some total test newbies here too, so a quick word from time to time on *why* you do certain things would be handy. thx.
[2008-03-23 14:46:22] <jpoesen> not just *what* you're doing
[2008-03-23 14:46:36] <dmitrig01> josh_k: I here
[2008-03-23 14:47:06] <josh_k> dmitrig01: hey; so we're improvising a bit on the audio front
[2008-03-23 14:47:07] <egoleo> i am totally lost now
[2008-03-23 14:47:14] <josh_k> egoleo: did you find the channel?
[2008-03-23 14:47:15] <egoleo> maybe i should have slept
[2008-03-23 14:47:20] <egoleo> yes
[2008-03-23 14:47:24] <dmitrig01> josh_k: what's the amtter?
[2008-03-23 14:47:36] <josh_k> dmitrig01: well, I don't have admin powers on webavant's teamspeak
[2008-03-23 14:47:40] <josh_k> can't give people voice
[2008-03-23 14:47:41] <dmitrig01> josh_k: ah i do
[2008-03-23 14:47:48] <dmitrig01> everyone: join teamspeak
[2008-03-23 14:47:53] <jpoesen> egoleo: what's up?
[2008-03-23 14:48:00] <egoleo> i went to connect
[2008-03-23 14:48:02] <josh_k> dmitrig01: we're in the middle of things already
[2008-03-23 14:48:07] <egoleo> some window pops up
[2008-03-23 14:48:08] <josh_k> using an alt server
[2008-03-23 14:48:13] <dmitrig01> josh_k: what server?
[2008-03-23 14:48:18] <josh_k> dmitrig01: check the topic
[2008-03-23 14:48:25] <dmitrig01> ok
[2008-03-23 14:48:26] <josh_k> teamspeak://nickware.dnsalias.com:8767
[2008-03-23 14:48:35] <josh_k> public gamer server, so the channel is hard to find
[2008-03-23 14:48:39] <jpoesen> egoleo: I have no magic farseer powers. what window is popping up?
[2008-03-23 14:48:42] <josh_k> at the next break maybe we can switch
[2008-03-23 14:48:47] <egoleo> ok
[2008-03-23 14:48:54] <egoleo> says new server
[2008-03-23 14:49:00] <egoleo> with label
[2008-03-23 14:49:01] <dmitrig01> which one is it?
[2008-03-23 14:49:04] <egoleo> and server address
[2008-03-23 14:49:05] <josh_k> drupal-dojo
[2008-03-23 14:49:12] <jpoesen> egoleo: so enter the connection settings
[2008-03-23 14:49:24] <egoleo> default chaneel
[2008-03-23 14:49:36] <jpoesen> egoleo: drupal-dojo
[2008-03-23 14:50:01] <egoleo> man i dont wanna miss this
[2008-03-23 14:50:29] <dmitrig01> is there talking?
[2008-03-23 14:50:34] <josh_k> dmitrig01: yes
[2008-03-23 14:50:35] <jpoesen> dmitrig01: yes
[2008-03-23 14:50:37] <egoleo> no
[2008-03-23 14:50:43] <dmitrig01> josh_k: how can I get it so I can here?
[2008-03-23 14:50:46] <egoleo> seen the drupal dojo
[2008-03-23 14:50:46] <josh_k> teamspeek doesn't get it
/user/9446/view) has joined #drupal-dojo
[2008-03-23 14:50:48] <dmitrig01> josh_k: I'm using teamspeex
[2008-03-23 14:50:50] <josh_k> yeah
[2008-03-23 14:50:55] <josh_k> I had to switch :\
[2008-03-23 14:50:57] <egoleo> with some green icons
[2008-03-23 14:51:05] <dmitrig01> to what?
[2008-03-23 14:51:08] <egoleo> and some with a cross
[2008-03-23 14:51:18] <josh_k> dmitrig01: to parallels and TeamSpeak 2
[2008-03-23 14:51:20] <egoleo> besides nicknames
[2008-03-23 14:51:22] <dmitrig01> josh_k: oh ugh
[2008-03-23 14:51:24] <siliconmeadow> dmitri: you need to use v2 of Teamspeak
[2008-03-23 14:51:25] <josh_k> yeah
[2008-03-23 14:51:42] <dmitrig01> ok
[2008-03-23 14:51:44] <jpoesen> egoleo: teamspeek client is just for audio
[2008-03-23 14:51:46] <vordude> I'm on Teamspeak 2, I think I'm in the room, Am I supposed to hear something now?
[2008-03-23 14:51:47] <dmitrig01> then next break let's switch
[2008-03-23 14:51:57] <josh_k> dmitrig01: I agree
[2008-03-23 14:52:05] <dmitrig01> josh_k: what are the "breaks" about?
[2008-03-23 14:52:06] <jpoesen> egoleo: see video at http://webavant.com/dojo1/ in your browser
[2008-03-23 14:52:15] <egoleo> ok
[2008-03-23 14:52:20] <josh_k> dmitrig01: the screencap software has a 5-min time limit
[2008-03-23 14:52:23] <josh_k> we just discovered this
[2008-03-23 14:52:23] <dmitrig01> that sux
[2008-03-23 14:52:25] <josh_k> yeah
[2008-03-23 14:52:29] <josh_k> jingproject FTL
[2008-03-23 14:52:33] <egoleo> anyway
[2008-03-23 14:52:35] <egoleo> i cant hear
[2008-03-23 14:52:36] <dmitrig01> don't use jing then
[2008-03-23 14:52:45] <dmitrig01> jing sux for these kinds of things
[2008-03-23 14:52:51] <josh_k> dmitrig01: we don't have a great alternative suggestion for PC users that's free
[2008-03-23 14:52:55] <chx> If there are q , I am here for like 20 min.
[2008-03-23 14:52:57] <jpoesen> egoleo: are your speakers on etc?
[2008-03-23 14:53:17] <dmitrig01> josh_k: I will record with ishowu
[2008-03-23 14:53:21] <dmitrig01> once I get audio up
[2008-03-23 14:53:26] <egoleo> yes
[2008-03-23 14:53:29] <josh_k> egoleo
[2008-03-23 14:53:30] <josh_k> Player Attributes:
[2008-03-23 14:53:30] <josh_k> Microphone muted
[2008-03-23 14:53:30] <josh_k> Speaker/Headphone muted
[2008-03-23 14:53:39] <josh_k> unmute yourself :)
[2008-03-23 14:53:43] <egoleo> no
[2008-03-23 14:53:56] <egoleo> bcos i was just listening to music
[2008-03-23 14:54:10] <cwgordon7> Questions?
[2008-03-23 14:54:16] <dmitrig01> cwgordon7: type this: /clear
[2008-03-23 14:54:16] <josh_k> cwgordon7: we may be able to use a better audio channel now
[2008-03-23 14:54:24] [INFO] Messages Cleared.
[2008-03-23 14:54:24] <josh_k> egoleo in the app yr muted
[2008-03-23 14:54:25] <dmitrig01> hit enter
[2008-03-23 14:54:28] <dmitrig01> good
[2008-03-23 14:54:32] <cwgordon7> :?
[2008-03-23 14:54:33] * Druplicon isn't sure either
[2008-03-23 14:54:35] <dmitrig01> you should do this every question time
[2008-03-23 14:54:41] <dmitrig01> so it's more clear what the questions are
[2008-03-23 14:54:43] <cwgordon7> ok cool
[2008-03-23 14:54:43] <dmitrig01> anyway
[2008-03-23 14:54:47] <egoleo> what
[2008-03-23 14:54:47] <dmitrig01> Questions?
[2008-03-23 14:54:51] [INFO] Messages Cleared.
[2008-03-23 14:54:56] <stompeers_> Did you set up a custom module for these tests (I might have come in a little after you started)
[2008-03-23 14:55:17] <josh_k> cwgordon7: is there a list of the available functions within simpletest
[2008-03-23 14:55:19] <cwgordon7> Yes, the talk module
[2008-03-23 14:55:23] <josh_k> to do neat drupal tasks
[2008-03-23 14:55:24] <jpoesen> egoleo: in *teamspeak* your audio is muted
[2008-03-23 14:55:26] <josh_k> like create user, etc
[2008-03-23 14:55:26] <dmitrig01> josh_k: not currently
[2008-03-23 14:55:27] <chx> josh_k: not yet
[2008-03-23 14:55:28] <cwgordon7> I do not think so
[2008-03-23 14:55:31] <stompeers_> Okay, so simpletest tests are built into a module. Great, thanks!
[2008-03-23 14:55:32] <dmitrig01> josh_k: look in simpletest.module/drupal_test_case.php
[2008-03-23 14:56:03] <josh_k> cwgordon7: do you want to switch audio?
[2008-03-23 14:56:07] <josh_k> so more people can listen?
[2008-03-23 14:56:11] <dmitrig01> cwgordon7: let's switch audio
[2008-03-23 14:56:16] <dmitrig01> cwgordon7: and, I'll take a screencap
[2008-03-23 14:56:21] <dmitrig01> cwgordon7: the refresh rate seems very good today
[2008-03-23 14:56:30] <dmitrig01> cwgordon7: BTW< I can't hear you
[2008-03-23 14:56:40] <josh_k> cwgordon7: no
[2008-03-23 14:56:41] <dmitrig01> cwgordon7: let's use a differnet Teamspeak server
[2008-03-23 14:56:45] <josh_k> we want to switch back to the other server
[2008-03-23 14:56:47] <josh_k> more can listen
[2008-03-23 14:56:51] <josh_k> now that dmitri's here
[2008-03-23 14:57:00] <dmitrig01> cwgordon7: !
[2008-03-23 14:57:09] <josh_k> heh
[2008-03-23 14:57:14] <josh_k> he's off to the races
[2008-03-23 14:57:15] <dmitrig01> josh_k: can you tell him?
[2008-03-23 14:57:51] <josh_k> I think he's just ignoring IRC while going through his lesson plan
[2008-03-23 14:57:56] <dmitrig01> josh_k: can you un-mute yourself and tell him?
[2008-03-23 14:58:48] <josh_k> doesn't seem to work
[2008-03-23 14:58:55] <stompeers_> I hear you
[2008-03-23 14:59:00] <jpoesen> his audio is muted to avoid feedback loop
[2008-03-23 14:59:03] <egoleo> i cant hear anything anyway
[2008-03-23 14:59:05] <josh_k> yeah
[2008-03-23 14:59:08] <egoleo> so will watch
[2008-03-23 14:59:13] <josh_k> jpoesen is right of course
[2008-03-23 15:00:57] [INFO] Messages Cleared.
[2008-03-23 15:01:01] <josh_k> cwgordon7: let's switch the teamspeak
[2008-03-23 15:01:06] <cwgordon7> Questions?
[2008-03-23 15:01:09] <josh_k> that way people will get the audio on the webpage
[2008-03-23 15:01:11] <dmitrig01> cwgordon7: I will record you
[2008-03-23 15:01:13] <cwgordon7> Oh. Switch to what?
[2008-03-23 15:01:15] <dmitrig01> cwgordon7: don't use jing
[2008-03-23 15:01:19] <dmitrig01> cwgordon7: jing sux
[2008-03-23 15:01:21] <cwgordon7> dmitrig01: Ok, thanks! Awesome!
[2008-03-23 15:01:23] <dmitrig01> cwgordon7: switch teamspeak server
[2008-03-23 15:01:26] <josh_k> cwgordon7: back to webavant.com:8768
[2008-03-23 15:01:34] <josh_k> more people will be able to listen
[2008-03-23 15:02:28] <Dan-902> great presentation...
[2008-03-23 15:03:13] <josh_k> dmitrig01: ok
[2008-03-23 15:03:19] <josh_k> give cwgordon7 voice
[2008-03-23 15:03:26] <josh_k> cwgordon7: hold for a moment
[2008-03-23 15:03:33] <josh_k> while we get your audio up
[2008-03-23 15:03:42] <dmitrig01> Everyone join public talk
[2008-03-23 15:03:46] <dmitrig01> it doesn't work sorry
[2008-03-23 15:04:03] <josh_k> dmitrig01: ?
[2008-03-23 15:04:10] <dmitrig01> I am not a server admin anymore
[2008-03-23 15:04:14] <dmitrig01> I don't know why
[2008-03-23 15:04:19] <josh_k> doh!!!
[2008-03-23 15:04:24] <cwgordon7> should I switch back?
[2008-03-23 15:04:26] <dmitrig01> a hah
[2008-03-23 15:04:34] <josh_k> cwgordon7: no
[2008-03-23 15:04:37] <dmitrig01> I am a SA now
[2008-03-23 15:04:40] <dmitrig01> cwgordon7: talk
[2008-03-23 15:04:41] <josh_k> dmitrig01 figured it out
[2008-03-23 15:04:46] <bowwowadmin> i hear cw
[2008-03-23 15:04:49] <dmitrig01> I hear
[2008-03-23 15:04:50] <josh_k> cwgordon7: yes!
[2008-03-23 15:04:52] <stompeers_> I hear you
[2008-03-23 15:04:55] <jpoesen> cwgordon7: loud and clear
[2008-03-23 15:04:56] <josh_k> much better audio quality now
[2008-03-23 15:04:57] <siliconmeadow> me too :-)
[2008-03-23 15:04:59] <osinet_ff> much better sound
[2008-03-23 15:05:05] <Dan-902> me too 8)
[2008-03-23 15:05:09] <dmitrig01> wait a sec
[2008-03-23 15:05:15] <jpoesen> cwgordon7: some background static though
[2008-03-23 15:05:25] <dmitrig01> wiat
[2008-03-23 15:05:32] <dmitrig01> o you want me to record
[2008-03-23 15:05:32] <jpoesen> but much less jitter
[2008-03-23 15:05:38] <jpoesen> :)
[2008-03-23 15:05:39] <josh_k> dmitrig01: yes
[2008-03-23 15:05:39] <stompeers_> :)
[2008-03-23 15:05:40] <dmitrig01> *do
[2008-03-23 15:08:43] <cwgordon7> Any questions?
[2008-03-23 15:08:51] <josh_k> cwgordon7: will you be posting your example code?
[2008-03-23 15:08:57] <chx> I can help answering them too.
[2008-03-23 15:09:00] <cwgordon7> yes! It will be part of the talk module.
[2008-03-23 15:09:08] <josh_k> great
[2008-03-23 15:09:22] <josh_k> and I assume figuring out what thoe 18 other assertions are
[2008-03-23 15:09:26] <Dan-902> which user is used during the test?
[2008-03-23 15:09:29] <josh_k> is done by looking at the file already referenced?
[2008-03-23 15:09:41] <josh_k> (drupal_test_case.php)
[2008-03-23 15:10:06] <Dan-902> yes.
[2008-03-23 15:10:09] <cwgordon7> awesome
[2008-03-23 15:10:10] <josh_k> cwgordon7: is that user/role then deleted?
[2008-03-23 15:10:22] <josh_k> nice!
[2008-03-23 15:10:40] <egoleo> can someone plse explain what is been done
[2008-03-23 15:10:46] <egoleo> since i am just watching
[2008-03-23 15:10:49] <egoleo> no sound
[2008-03-23 15:11:03] <chx> Very soon, we will have a fresh Drupal install for every test...
[2008-03-23 15:11:06] <cwgordon7> i am answering questions via audio. Sorry.
[2008-03-23 15:11:08] <jpoesen> topic?
[2008-03-23 15:11:27] <cwgordon7> egoleo: Specific questions?
[2008-03-23 15:11:41] <egoleo> what exactly are we doing
[2008-03-23 15:11:45] <siliconmeadow> http://groups.drupal.org/node/9528
[2008-03-23 15:11:46] <stompeers> chx: Will that happen on the module level? Like with a local install?
[2008-03-23 15:11:47] <Druplicon> http://groups.drupal.org/node/9528 => Simpletest Lesson => 5 IRC mentions
[2008-03-23 15:11:48] <egoleo> i am lost no sould
[2008-03-23 15:12:09] <chx> stompeers: it'll be part of drupal_test_case
[2008-03-23 15:12:14] <cwgordon7> We are testing a contributed module using the simpletest framework. This is merely an example of how the simpletest testing framework can be used with Drupal.
[2008-03-23 15:12:21] <cwgordon7> egoleo: That answer your question?
[2008-03-23 15:12:29] <chx> stompeers: it will change the db prefix to a random one, install default profile and when test is done, drop the tables.
[2008-03-23 15:12:40] <stompeers> Nice!
[2008-03-23 15:12:42] <egoleo> ok
[2008-03-23 15:12:43] <josh_k> chx: php timeouts?
[2008-03-23 15:12:47] <Dan-902> cool
[2008-03-23 15:12:56] <josh_k> that could take some seconds to accomplish :)
[2008-03-23 15:13:00] <chx> josh_k: i think we switch off php timeout
[2008-03-23 15:13:04] <josh_k> ahh
[2008-03-23 15:13:07] <stompeers> How far is that down the road (the full drupal install / uninsall?)
[2008-03-23 15:13:20] <chx> stompeers: patch is ready
[2008-03-23 15:13:24] <chx> josh_k: not that much, the many bootups of Drupal that are run take more time
[2008-03-23 15:13:29] <stompeers> chx: great
[2008-03-23 15:13:49] <josh_k> I'm just thinking of test cases that require a big stack of modules
[2008-03-23 15:13:55] <chx> Within 1-2 days I want to submit simpletest for core inclusion.
[2008-03-23 15:14:18] <josh_k> chx: is that the direction things are headed? Had Dries done his review of frameworks?
[2008-03-23 15:14:25] <josh_k> *Has
[2008-03-23 15:14:36] <stompeers> Will you be going over the limitations of simpletest? Like where simpletest ends and user testing begins?
[2008-03-23 15:14:39] <chx> josh_k: I am submitting ... whether Dries accepts, his call
[2008-03-23 15:14:44] <Dan-902> simpletest does unit testing...
[2008-03-23 15:14:44] <josh_k> cool
[2008-03-23 15:14:46] <chx> anyways
[2008-03-23 15:14:57] <chx> I do not want to divert Charlie's lesson
[2008-03-23 15:15:00] * chx shuts up
[2008-03-23 15:15:12] <cwgordon7> chx: Go fix simpletest d6 branch ;)
[2008-03-23 15:15:53] <cwgordon7> Last call for questions!
[2008-03-23 15:15:55] <stompeers> I had one above
[2008-03-23 15:16:02] <stompeers> no prob ;)
[2008-03-23 15:16:03] <cwgordon7> Oh sorry, I missed it.
[2008-03-23 15:16:20] <cwgordon7> Go ahead, I /clear'ed as dmitrig01 told me too ;)
[2008-03-23 15:16:21] <stompeers> Will you be going over the limitations of simpletest? Like where simpletest ends and user testing begins
[2008-03-23 15:16:39] <chx> Dinner server, see you all.
[2008-03-23 15:16:41] <chx> *served.
[2008-03-23 15:16:46] <josh_k> :)
[2008-03-23 15:16:53] <josh_k> chx: thanks!
[2008-03-23 15:17:01] <dmitrig01> which someone ahem has coded
[2008-03-23 15:17:25] <stompeers> Okay, thanks
[2008-03-23 15:17:31] <siliconmeadow> would selenium fill the gap for JS coding
[2008-03-23 15:17:33] <josh_k> whoa
[2008-03-23 15:17:34] <stompeers> is the js test a module?
[2008-03-23 15:17:35] <dmitrig01> no
[2008-03-23 15:17:38] <dmitrig01> selenium sux
[2008-03-23 15:17:43] <dmitrig01> and the js test is a patch to core
[2008-03-23 15:17:54] <dmitrig01> IT SUX
[2008-03-23 15:17:57] <siliconmeadow> becuz is sux
[2008-03-23 15:17:59] <siliconmeadow> lol
[2008-03-23 15:18:00] <josh_k> lol
[2008-03-23 15:18:04] <josh_k> oh man
[2008-03-23 15:18:14] <josh_k> cwgordon7: question
[2008-03-23 15:18:22] <josh_k> can you talk about what sorts of things you want to test?
[2008-03-23 15:18:23] <josh_k> like
[2008-03-23 15:18:31] <josh_k> how do I decide what I should write a test for?
[2008-03-23 15:18:44] <josh_k> yes!
[2008-03-23 15:19:08] <cwgordon7> http://groups.drupal.org/unit-testing is a great resource for unit testing if you're interested.
[2008-03-23 15:19:47] <cwgordon7> http://groups.drupal.org/node/9408 <-- a link to simpletests that need to be written for core.
[2008-03-23 15:19:50] <Druplicon> http://groups.drupal.org/node/9408 => Functional SimpleTest Status - List of all tests => 10 IRC mentions
[2008-03-23 15:20:48] <cwgordon7> http://drupal.org/project/simpletest_automator is also a great resource.
[2008-03-23 15:21:05] <cwgordon7> Any further questions?
[2008-03-23 15:21:09] <josh_k> cwgordon7: if I can follow up
[2008-03-23 15:21:12] <cwgordon7> sure!
[2008-03-23 15:21:24] <josh_k> from a design standpoint
[2008-03-23 15:21:29] <josh_k> can you answer the same question?
[2008-03-23 15:21:33] <dmitrig01> I gotta run
[2008-03-23 15:21:34] <josh_k> sorry if I'm being unclear
[2008-03-23 15:21:36] <josh_k> e.g.
[2008-03-23 15:21:41] <josh_k> I'm working on a new module
[2008-03-23 15:21:48] <josh_k> what sorts of things should I be attempting to test?
[2008-03-23 15:21:58] <dmitrig01> josh_k: in an ideal world
[2008-03-23 15:22:05] <josh_k> any form submission?
[2008-03-23 15:22:06] <dmitrig01> josh_k: you will write tests before you write the module
[2008-03-23 15:22:09] <josh_k> heh
[2008-03-23 15:22:18] <dmitrig01> ok
[2008-03-23 15:22:21] * dmitrig01 isn't recording anymore
[2008-03-23 15:22:43] <josh_k> maybe another way to ask is
[2008-03-23 15:22:49] <josh_k> what can simpletest check?
[2008-03-23 15:22:51] <josh_k> e.g.
[2008-03-23 15:23:05] <stompeers> Can a simpletest call other simpletests? Like, if my module impacts other modules, should it call those simpletests?
[2008-03-23 15:24:11] <stompeers> That makes sense
[2008-03-23 15:24:14] <stompeers> Yep, thanks!
[2008-03-23 15:24:15] <cwgordon7> awesome!
[2008-03-23 15:24:16] <Druplicon> Yes, just like Drupal.
[2008-03-23 15:24:22] <stompeers> :)
[2008-03-23 15:24:40] <josh_k> very cool
[2008-03-23 15:24:43] <josh_k> also
[2008-03-23 15:24:50] <josh_k> that list of tests for core
[2008-03-23 15:24:58] <josh_k> has a links to all the patches
[2008-03-23 15:25:13] <josh_k> which seem helpful for getting up to speed
[2008-03-23 15:26:10] <stompeers> You domonstrated that you can check for a string (the assertion function), is there other kind of assertions you can make, like 'does a function exist', or something like that? If so, what would be the most common ones?
[2008-03-23 15:27:22] <cwgordon7> $this->assertTrue and $this->assertFalse
[2008-03-23 15:27:43] <stompeers> Ah, right
[2008-03-23 15:27:48] <cwgordon7> $this->assertTrue(function_exists('function_name'), 'Check to make sure func exists');
[2008-03-23 15:27:59] <josh_k> sure
[2008-03-23 15:28:02] <stompeers> Yep
[2008-03-23 15:28:02] <cwgordon7> Any more questons?
[2008-03-23 15:28:41] <josh_k> I say lets continue
[2008-03-23 15:28:52] <cwgordon7> continue?
[2008-03-23 15:28:58] <stompeers> +1
[2008-03-23 15:29:06] <siliconmeadow> +1
[2008-03-23 15:29:11] <cwgordon7> um. What would you like me to continue with?
[2008-03-23 15:29:14] <jpoesen> cwgordon7: are there code of conduct rules when you supply tests? Like if you supply tests, then even a dev version needs to pass all tests before you commit your changes to cvs. Or something like that.?
[2008-03-23 15:29:26] <josh_k> heh
[2008-03-23 15:29:34] <josh_k> now's where it gets fun :)
[2008-03-23 15:29:36] <jpoesen> "don't break the build" mantra sort of thing
[2008-03-23 15:30:28] <cwgordon7> so what sort of other simpletest things are you interested in?
[2008-03-23 15:30:42] <stompeers> Will using simpletest for a module affect how you code the module (outside of the simpletest functions). If so, how would it?
[2008-03-23 15:31:26] <stompeers> But you don't actually stick anything in your code for simpletest?
[2008-03-23 15:32:01] <stompeers> Thats great
[2008-03-23 15:32:19] <siliconmeadow> hide the scales!
[2008-03-23 15:32:49] * josh_k has to step out to get breakfast
[2008-03-23 15:32:50] <cwgordon7> Questions?
[2008-03-23 15:32:57] <josh_k> cwgordon7: thanks a lot for this!
[2008-03-23 15:33:04] <stompeers> It's hard to wrap my mind around how you would write simpletests first. You'd have to know exactly what your module is going to do, right?
[2008-03-23 15:33:06] <cwgordon7> josh_k: Do I need to post the irc logs, videos, etc.?
[2008-03-23 15:33:19] <josh_k> cwgordon7: getting video/code examples together will be good
[2008-03-23 15:33:46] <josh_k> if you have anyplace to upload this that I can get, I will try and edit them together (videos)
[2008-03-23 15:33:49] <stompeers> Interesting
[2008-03-23 15:33:51] <cwgordon7> josh_k: I don't really have videos, actually...
[2008-03-23 15:33:55] <josh_k> oh, ok
[2008-03-23 15:33:55] <cwgordon7> dmitrig01: Took care of that, no?
[2008-03-23 15:34:01] <josh_k> well I can get what he captured
[2008-03-23 15:34:05] <josh_k> we'll miss the first part :\
[2008-03-23 15:34:16] <josh_k> yeah!
[2008-03-23 15:34:16] <stompeers> Thanks, cwgordon7, I appreciate you answering all my questions. It seems pretty straightforward.
[2008-03-23 15:34:30] <josh_k> cwgordon7: anywhere is good
[2008-03-23 15:34:36] <josh_k> I will download and try to edit them together
[2008-03-23 15:34:36] <cwgordon7> ok, cool
[2008-03-23 15:34:41] <josh_k> so any old filespot
[2008-03-23 15:34:59] <josh_k> dunno if they'll let you attach that big, but yes, just get me links
[2008-03-23 15:35:04] <josh_k> me!
[2008-03-23 15:35:04] <Druplicon> me is http://drupal.org/project/me
[2008-03-23 15:35:04] <stompeers> ME!!!!
[2008-03-23 15:35:07] <josh_k> heh
[2008-03-23 15:35:08] <cwgordon7> Yay!
[2008-03-23 15:35:11] <jpoesen> :)
[2008-03-23 15:35:13] <stompeers> :)
[2008-03-23 15:35:24] <josh_k> thanks!
[2008-03-23 15:35:28] <jpoesen> this very evening will see my first tests :)
[2008-03-23 15:35:28] <stompeers> Thanks!!
[2008-03-23 15:35:37] <jpoesen> cwgordon7: thanks!
Simpletest code sample for talk module:
<?php
// $Id$
class TalkTests extends DrupalTestCase {
var $_talkType = '';
var $_talkTitle = '';
/**
* Implementation of get_info for information. This will be displayed to the user.
*/
function get_info() {
return array(
'name' => t('Basic talk tests'),
'desc' => t('Some basic tests for the talk module, including going to the talk page and making sure the comment shows up.'),
'group' => t('Talk tests'),
);
}
/**
* Implementation of setUp. This will be run when we're setting up for the tests automatically.
*/
function setUp() {
parent::setUp();
// Enable the talk module and its dependencies.
$this->drupalModuleEnable('comment');
$this->drupalModuleEnable('talk');
// Create a node type, and enable the talk module for that node type.
$node_type = $this->drupalCreateContentType();
$this->_talkType = $node_type->type;
// This will automatically be reverted to whatever it was before the test took place after the test is over.
$this->drupalVariableSet('comment_talk_'. $node_type->type, TRUE);
// We don't want to deal with comment previews.
$this->drupalVariableSet('comment_preview_'. $node_type->type, COMMENT_PREVIEW_OPTIONAL);
// Set the talk title to something unique.
$talk_title = $this->randomName();
$this->_talkTitle = $talk_title;
$this->drupalVariableSet('talk_title', $talk_title);
// Create and login a user with the appropriate permissions.
$permissions = array('access content', 'access comments', 'post comments', 'post comments without approval');
$user = $this->drupalCreateUserRolePerm($permissions);
$this->drupalLoginUser($user);
}
/**
* Now, an actual test!
* This test will post a comment in our talk-nodetype, and make sure it shows up on the
*/
function testTalkCommentAppears() {
// Create a node to test with.
$settings = array();
$settings['type'] = $this->_talkType;
$node = $this->drupalCreateNode($settings);
// Navigate to the node page.
$this->drupalGet('node/'. $node->nid);
// Click the link provided by the talk module.
$this->clickLink(t('Add new comment'));
// Now, post a comment.
$edit = array();
$subject = $this->randomName();
$comment = $this->randomName(30);
$edit['subject'] = $subject;
$edit['comment'] = $comment;
$this->drupalPost('comment/reply/'. $node->nid, $edit, t('Save'));
// Make the actual assertions here.
$this->assertText($subject, t('Make sure that the subject of the comment appears'));
$this->assertText($comment, t('Make sure the body of the comment appears'));
$this->assertText($this->_talkTitle, t('Make sure the talk title appears'));
}
/**
* Implementation of tearDown. This will be run when we're finished with our tests.
*/
function tearDown() {
// We don't actually need to do anything. But if we wanted to, we could!
parent::tearDown();
}
}
?>
Video chunks are available at:
http://cwgordon.com/files/2008-03-23_1436.swf
http://cwgordon.com/files/2008-03-23_1442.swf
http://cwgordon.com/files/2008-03-23_1446.swf
http://cwgordon.com/files/2008-03-23_1451.swf
and
http://cwgordon.com/files/2008-03-23_1454.swf
Comments
Comment #1
gusaus commentedClosing this as it doesn't quite fit with the current program.