You can subscribe to this list here.
2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(14) |
Oct
(22) |
Nov
(21) |
Dec
(7) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2004 |
Jan
(4) |
Feb
(26) |
Mar
(62) |
Apr
(60) |
May
(73) |
Jun
(41) |
Jul
(64) |
Aug
(39) |
Sep
(19) |
Oct
(18) |
Nov
(55) |
Dec
(24) |
2005 |
Jan
(35) |
Feb
(122) |
Mar
(130) |
Apr
(62) |
May
(57) |
Jun
(103) |
Jul
(71) |
Aug
(142) |
Sep
(67) |
Oct
(27) |
Nov
(49) |
Dec
(56) |
2006 |
Jan
(42) |
Feb
(65) |
Mar
(30) |
Apr
(43) |
May
(13) |
Jun
(25) |
Jul
(5) |
Aug
(14) |
Sep
(18) |
Oct
(55) |
Nov
(126) |
Dec
(82) |
2007 |
Jan
(83) |
Feb
(83) |
Mar
(173) |
Apr
(30) |
May
(64) |
Jun
(156) |
Jul
(50) |
Aug
(29) |
Sep
(25) |
Oct
(26) |
Nov
(51) |
Dec
(9) |
2008 |
Jan
(36) |
Feb
(71) |
Mar
(93) |
Apr
(123) |
May
(34) |
Jun
(14) |
Jul
(21) |
Aug
(26) |
Sep
(49) |
Oct
(38) |
Nov
(19) |
Dec
(46) |
2009 |
Jan
(18) |
Feb
(16) |
Mar
(46) |
Apr
(4) |
May
(18) |
Jun
(9) |
Jul
(11) |
Aug
(4) |
Sep
(31) |
Oct
(19) |
Nov
(4) |
Dec
(11) |
2010 |
Jan
(15) |
Feb
(9) |
Mar
|
Apr
(20) |
May
(5) |
Jun
(8) |
Jul
(2) |
Aug
(9) |
Sep
(6) |
Oct
(21) |
Nov
(20) |
Dec
(11) |
2011 |
Jan
(11) |
Feb
(5) |
Mar
(6) |
Apr
(1) |
May
(12) |
Jun
(4) |
Jul
(1) |
Aug
(3) |
Sep
(4) |
Oct
(3) |
Nov
(3) |
Dec
(5) |
2012 |
Jan
(28) |
Feb
(7) |
Mar
(3) |
Apr
|
May
(5) |
Jun
(6) |
Jul
(5) |
Aug
(4) |
Sep
|
Oct
(4) |
Nov
(5) |
Dec
(4) |
2013 |
Jan
|
Feb
|
Mar
(3) |
Apr
|
May
|
Jun
|
Jul
(3) |
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
(5) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(7) |
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(1) |
2016 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
(1) |
Jul
|
Aug
(2) |
Sep
(3) |
Oct
|
Nov
(1) |
Dec
|
2017 |
Jan
(2) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Soumya T. <sou...@gm...> - 2018-06-21 11:01:46
|
Can you please help me im writing unit test for the following class? <?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ namespace core\framework; /** * Description of shareactivitystream * * @author sathya */ class ShareActivityStream { private $m_item; public function __construct() { } public static function withDBData($a_record) { $instance = new self(); $instance->loadWithDBData($a_record); return $instance; } public function loadWithDBData($a_record) { $this->m_item = $a_record; } public function getID(){ return $this->m_item['_id']; } public function setTimeStamp($value){ $this->m_item['timestamp'] = $value; } public function setAction($value){ $this->m_item['action'] = $value; } public function setActor($value){ $this->m_item['actor'] = $value; } public function setItemName($value){ $this->m_item['itemname'] = $value; } public function setItemPath($value){ $this->m_item['itempath'] = $value; } public function setActorIP($value){ $this->m_item['actorip'] = $value; } public function setActorAgent($value){ $this->m_item['useragent'] = $value; } public function setAccessPath($value){ $this->m_item['accesspath'] = $value; } public function setShareId($value){ $this->m_item['shareid'] = $value; } public function setShareOwner($value){ $this->m_item['owner'] = $value; } public function setShareEmailTo($value){ $this->m_item['shareemailto'] = $value; } public function getShareEmailTo(){ if (isset($this->m_user['shareemailto'])) return $this->m_item['shareemailto']; else return ""; } public function &getArray() { return $this->m_item; } private function getActorDisplayName() { $uds = new UserDataStore(); if ($this->m_item['actor'] != null) { $userObj = $uds->getUserByEmail($this->m_item['actor']); if (isset($userObj)) { return $userObj->getDisplayName(); } else if (Utility::isValidEmail($this->m_item['actor'])) { return $this->m_item['actor']; } } return "Someone"; } public function toXML($username = null) { if ($username != null && Utility::startsWith($this->m_item['accesspath'], '/' . $username) == false) $accessPath = htmlspecialchars(Utility::translateToUserReadablePath('/SHARED' . $this->m_item['accesspath'])); else $accessPath = htmlspecialchars(Utility::translateToUserReadablePath($this->m_item['accesspath'])); $xmlstr = "<shareactivity>"; $xmlstr .= "<shareid>"; $xmlstr .= htmlspecialchars($this->m_item['shareid']); $xmlstr .= "</shareid>"; $xmlstr .= "<path>"; $xmlstr .= $accessPath; $xmlstr .= "</path>"; $xmlstr .= "<name>"; $xmlstr .= htmlspecialchars($this->m_item['itemname']); $xmlstr .= "</name>"; $xmlstr .= "<actioncode>"; $xmlstr .= $this->m_item['action']; $xmlstr .= "</actioncode>"; $xmlstr .= "<who>"; $xmlstr .= htmlspecialchars($this->getActorDisplayName()); $xmlstr .= "</who>"; $xmlstr .= "<when>"; $when = CLMongoDate::date('Y-M-d h:i A', $this->m_item['timestamp']); $elapsedtime= Utility::timeElapsedString($when,false); $xmlstr .= htmlspecialchars($elapsedtime); $xmlstr .= "</when>"; $xmlstr .= "<how>"; $xmlstr .= htmlspecialchars($this->m_item['useragent']); $xmlstr .= "</how>"; $xmlstr .= "<ip>"; $xmlstr .= htmlspecialchars($this->m_item['actorip']); $xmlstr .= "</ip>"; $xmlstr .= "<shareemailto>"; $xmlstr .= htmlspecialchars($this->getShareEmailTo()); $xmlstr .= "</shareemailto>"; $xmlstr .= "</shareactivity>"; return $xmlstr; } } |
From: Beate H. <ari...@vi...> - 2017-01-19 03:36:19
|
Hello, I've got some ideas on how to improve my articles, you may help me with your ideas too, more info here http://debora.toddruecker.com/3130 Best wishes, Beate Halvorsen |
From: Anette B. R. <ari...@vi...> - 2017-01-19 03:35:40
|
Hello, I've read a really useful article recently, you might like it too, please read it here http://aniello.floridabeachweddingsource.com/6263 Faithfully, Anette Bratane Ronningen |
From: Cathrine J. <ari...@vi...> - 2016-09-20 05:49:37
|
Hello! This it what you like, you just have to take a look! Info here <http://head.jamiekids.com/e6ixjp> Cathrine Juul |
From: Arild B. <ari...@vi...> - 2016-09-08 06:28:09
|
Greetings! I wanted to ask you whether you have any previous experience of this type of work? Here are some questions for you <http://stexupuho.mainsqueezerecords.com/e6fvfi> Good wishes, Arild Belsvik |
From: Benjamin S. <ari...@vi...> - 2016-01-13 14:04:01
|
Hello! New message, please read <http://estoncamlievler76.com/able.php?7u> Benjamin Schuetz |
From: Andrew D. A. <aar...@iu...> - 2014-11-24 14:27:32
|
Thank you, Perrick. Andy On Fri, Nov 21, 2014 at 10:47:33PM +0100, Perrick Penet-Avez wrote: > Same here, we're still using SimpleTest in our day to day operations > within No Parking (my company). We currently have more than 25000 tests > running at leat 3 times a day. > > While Sourceforge looks dead, the main SimpleTest tree has moved to > GitHub. You can find everythig there as well. > > https://github.com/simpletest/simpletest/ > > And if PHP6, PHP7 or whatever is coming next from PHP Core does break > something, it WILL get fixed. That's a promise ! > > Yours, > Perrick (one of the remaining maintainer for SimpleTest) > > > > On 20/11/2014 15:35, Andrew D. Arenson wrote: > > Very much appreciate the responses. > > > > On Wed, Nov 19, 2014 at 07:59:55PM -0800, Brian Panulla wrote: > >> Is there something you're looking for that SimpleTest doesn't do? We're > > > > Per my original post ... > > > >> On Nov 19, 2014, at 4:14 PM, "Andrew D. Arenson" <aar...@iu...> wrote: > >> Simpletest looks great, but I'm wary of starting to use > >> it if it's not going to continue to grow and be maintained. > > > > There isn't something SimpleTest doesn't do, I was just > > unsure whether I wanted to start using something which a few > > years down the road might stop being usable because it's not > > being maintained. > > > > Andy > > > > -- > ----- > Opentime.fr : logiciel web de gestion du temps et suivi d'activit? > http://opentime.fr/ > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support -- Andrew D. Arenson | aarenson (@) iu.edu Advanced Biomedical IT Core, Research Technologies, UITS | W (317) 278-1208 RT is a PTI Cyberinfrastructure & Service Center | C (317) 679-4669 Indiana University Purdue University Indianapolis | F (317) 278-1852 |
From: Perrick Penet-A. <pe...@no...> - 2014-11-22 00:15:05
|
Same here, we're still using SimpleTest in our day to day operations within No Parking (my company). We currently have more than 25000 tests running at leat 3 times a day. While Sourceforge looks dead, the main SimpleTest tree has moved to GitHub. You can find everythig there as well. https://github.com/simpletest/simpletest/ And if PHP6, PHP7 or whatever is coming next from PHP Core does break something, it WILL get fixed. That's a promise ! Yours, Perrick (one of the remaining maintainer for SimpleTest) On 20/11/2014 15:35, Andrew D. Arenson wrote: > Very much appreciate the responses. > > On Wed, Nov 19, 2014 at 07:59:55PM -0800, Brian Panulla wrote: >> Is there something you're looking for that SimpleTest doesn't do? We're > > Per my original post ... > >> On Nov 19, 2014, at 4:14 PM, "Andrew D. Arenson" <aar...@iu...> wrote: >> Simpletest looks great, but I'm wary of starting to use >> it if it's not going to continue to grow and be maintained. > > There isn't something SimpleTest doesn't do, I was just > unsure whether I wanted to start using something which a few > years down the road might stop being usable because it's not > being maintained. > > Andy > -- ----- Opentime.fr : logiciel web de gestion du temps et suivi d'activité http://opentime.fr/ |
From: Andrew D. A. <aar...@iu...> - 2014-11-20 14:35:32
|
Very much appreciate the responses. On Wed, Nov 19, 2014 at 07:59:55PM -0800, Brian Panulla wrote: > Is there something you're looking for that SimpleTest doesn't do? We're Per my original post ... > On Nov 19, 2014, at 4:14 PM, "Andrew D. Arenson" <aar...@iu...> wrote: > Simpletest looks great, but I'm wary of starting to use > it if it's not going to continue to grow and be maintained. There isn't something SimpleTest doesn't do, I was just unsure whether I wanted to start using something which a few years down the road might stop being usable because it's not being maintained. Andy -- Andrew D. Arenson | aarenson (@) iu.edu Advanced Biomedical IT Core, Research Technologies, UITS | W (317) 278-1208 RT is a PTI Cyberinfrastructure & Service Center | C (317) 679-4669 Indiana University Purdue University Indianapolis | F (317) 278-1852 |
From: Brian P. <bpa...@gm...> - 2014-11-20 04:00:02
|
Is there something you're looking for that SimpleTest doesn't do? We're using it every day integrated with our Jenkins CI with a few thousand test cases, adding a few more each day. The Drupal CMS used it last time I checked too. So it's not exactly a dead project... don't let the SourceForge project hosting scare you. And not that there's anything wrong with PHPUnit, but being able to download a SimpleTest Zip file and drop it into your project has a certain elegance. If you have a feature you want to contribute maybe the discussion we should have is mirroring the source code to a modern DVCS. -B On Wed, Nov 19, 2014 at 7:12 PM, Noel Darlow <ma...@mc...> wrote: > Hi > > It would be a real shame if Simpletest had fallen by the wayside. It > was always the smarter testing option and had some great people > behind it who really understood what testing, and good testing tools, > are all about. PHPUnit just wasn't as good last time I looked, which > admittedly was a while ago. > > > Noel > > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
From: Noel D. <ma...@mc...> - 2014-11-20 03:27:35
|
Hi It would be a real shame if Simpletest had fallen by the wayside. It was always the smarter testing option and had some great people behind it who really understood what testing, and good testing tools, are all about. PHPUnit just wasn't as good last time I looked, which admittedly was a while ago. Noel |
From: Roy R. <tch...@gm...> - 2014-11-20 01:32:53
|
Frankly, just use phpunit, it's the new standard, better support by C.I. Services like travis-ci & codeship.io --- Cell: 585 519 7658 ><> > On Nov 19, 2014, at 4:14 PM, "Andrew D. Arenson" <aar...@iu...> wrote: > > Is this project still actively developed? > > Simpletest looks great, but I'm wary of starting to use > it if it's not going to continue to grow and be maintained. > > Andy > > -- > Andrew D. Arenson | aarenson (@) iu.edu > Advanced Biomedical IT Core, Research Technologies, UITS | W (317) 278-1208 > RT is a PTI Cyberinfrastructure & Service Center | C (317) 679-4669 > Indiana University Purdue University Indianapolis | F (317) 278-1852 > > ------------------------------------------------------------------------------ > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Andrew D. A. <aar...@iu...> - 2014-11-19 21:34:04
|
Is this project still actively developed? Simpletest looks great, but I'm wary of starting to use it if it's not going to continue to grow and be maintained. Andy -- Andrew D. Arenson | aarenson (@) iu.edu Advanced Biomedical IT Core, Research Technologies, UITS | W (317) 278-1208 RT is a PTI Cyberinfrastructure & Service Center | C (317) 679-4669 Indiana University Purdue University Indianapolis | F (317) 278-1852 |
From: Mina M. <mi...@ha...> - 2014-06-23 15:16:50
|
Hello, I'm trying to test https pages but I keep getting the error "PHP Warning: fclose() expects parameter 1 to be resource, boolean given in C:\Users\Mina\SkyDrive\EDIParser\simpleBrowser\socket.php on line 251" What does that mean? and how do I fix it? Mina |
From: Anders A. <tr...@gm...> - 2014-06-07 06:45:21
|
Hey again. I have studied the source now and found something that seems wrong. In errors.php there is a tally method that loops through $this->queue and paints all the errors. But nothing is ever pushed to this queue. So I added the following in testLatestError, in the else block. array_push($this->queue, array($severity, $content, $filename, $line)); Now I can hide the view output and I'm getting the error in a clean summary. Did I find a bug here or have I missed something? --Anders On Fri, Jun 6, 2014 at 7:16 PM, Anders Andersson <tr...@gm...> wrote: > I addressed this in my first mail. > If I use an output buffer, that will hide the errors too since simpletest > outputs directly to the same stream. > > > One thought I had is to change simpletest to store all of its output until > the test is over and then print it. That way, any output occuring during > the test can be suppressed. > > > On Fri, Jun 6, 2014 at 5:29 PM, Roy Ronalds <tch...@gm...> wrote: > >> Heh, generally you can simply capture output like that by using output >> buffering. For example: >> >> ob_start(); >> // Do whatever is actually outputting the html to the command line >> $html = ob_get_contents(); >> ob_end_clean(); >> // Do the rest of the testing. >> >> More on ob_start() here if you need it: >> http://www.php.net//manual/en/function.ob-start.php >> >> --Roy >> >> >> On Fri, Jun 6, 2014 at 10:43 AM, Anders Andersson <tr...@gm...> >> wrote: >> >> > I am getting started testing a website and for most tests I want to run >> the >> > code that generates each webpage. >> > >> > My issue with this is that the webpage output is shown in the test >> result, >> > and any errors that occur get rendered by simpletest in the middle of >> the >> > page as they happen. >> > >> > If there's a good way to handle this I can't see it. >> > I would like to not see the regular html output, I only want the errors. >> > The page may be rendered in such a way that errors end up in an >> invisible >> > block, or some javascript gets triggered and messes up the test result >> > page. >> > I can hide the website content by trapping it in an output buffer, but >> as >> > it is now I won't see the errors because simpletest prints those to the >> > same output. >> > >> > Any suggestions? >> > >> > >> ------------------------------------------------------------------------------ >> > Learn Graph Databases - Download FREE O'Reilly Book >> > "Graph Databases" is the definitive new guide to graph databases and >> their >> > applications. Written by three acclaimed leaders in the field, >> > this first edition is now available. Download your free book today! >> > http://p.sf.net/sfu/NeoTech >> > _______________________________________________ >> > Simpletest-support mailing list >> > Sim...@li... >> > https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > >> >> >> >> -- >> +++++++++++++++++++++++++++ >> BitLucid.com <http://bitlucid.com/> - BitLucid, Inc. - Web & Programming >> Consultants >> ninjawars.net - My webgame project >> 585-519-7658 - Cell >> "Never compare your inside with somebody's outside." >> >> ------------------------------------------------------------------------------ >> Learn Graph Databases - Download FREE O'Reilly Book >> "Graph Databases" is the definitive new guide to graph databases and their >> applications. Written by three acclaimed leaders in the field, >> this first edition is now available. Download your free book today! >> http://p.sf.net/sfu/NeoTech >> _______________________________________________ >> Simpletest-support mailing list >> Sim...@li... >> https://lists.sourceforge.net/lists/listinfo/simpletest-support >> > > |
From: Anders A. <tr...@gm...> - 2014-06-06 17:16:12
|
I addressed this in my first mail. If I use an output buffer, that will hide the errors too since simpletest outputs directly to the same stream. One thought I had is to change simpletest to store all of its output until the test is over and then print it. That way, any output occuring during the test can be suppressed. On Fri, Jun 6, 2014 at 5:29 PM, Roy Ronalds <tch...@gm...> wrote: > Heh, generally you can simply capture output like that by using output > buffering. For example: > > ob_start(); > // Do whatever is actually outputting the html to the command line > $html = ob_get_contents(); > ob_end_clean(); > // Do the rest of the testing. > > More on ob_start() here if you need it: > http://www.php.net//manual/en/function.ob-start.php > > --Roy > > > On Fri, Jun 6, 2014 at 10:43 AM, Anders Andersson <tr...@gm...> > wrote: > > > I am getting started testing a website and for most tests I want to run > the > > code that generates each webpage. > > > > My issue with this is that the webpage output is shown in the test > result, > > and any errors that occur get rendered by simpletest in the middle of the > > page as they happen. > > > > If there's a good way to handle this I can't see it. > > I would like to not see the regular html output, I only want the errors. > > The page may be rendered in such a way that errors end up in an invisible > > block, or some javascript gets triggered and messes up the test result > > page. > > I can hide the website content by trapping it in an output buffer, but as > > it is now I won't see the errors because simpletest prints those to the > > same output. > > > > Any suggestions? > > > > > ------------------------------------------------------------------------------ > > Learn Graph Databases - Download FREE O'Reilly Book > > "Graph Databases" is the definitive new guide to graph databases and > their > > applications. Written by three acclaimed leaders in the field, > > this first edition is now available. Download your free book today! > > http://p.sf.net/sfu/NeoTech > > _______________________________________________ > > Simpletest-support mailing list > > Sim...@li... > > https://lists.sourceforge.net/lists/listinfo/simpletest-support > > > > > > -- > +++++++++++++++++++++++++++ > BitLucid.com <http://bitlucid.com/> - BitLucid, Inc. - Web & Programming > Consultants > ninjawars.net - My webgame project > 585-519-7658 - Cell > "Never compare your inside with somebody's outside." > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
From: Roy R. <tch...@gm...> - 2014-06-06 15:30:02
|
Heh, generally you can simply capture output like that by using output buffering. For example: ob_start(); // Do whatever is actually outputting the html to the command line $html = ob_get_contents(); ob_end_clean(); // Do the rest of the testing. More on ob_start() here if you need it: http://www.php.net//manual/en/function.ob-start.php --Roy On Fri, Jun 6, 2014 at 10:43 AM, Anders Andersson <tr...@gm...> wrote: > I am getting started testing a website and for most tests I want to run the > code that generates each webpage. > > My issue with this is that the webpage output is shown in the test result, > and any errors that occur get rendered by simpletest in the middle of the > page as they happen. > > If there's a good way to handle this I can't see it. > I would like to not see the regular html output, I only want the errors. > The page may be rendered in such a way that errors end up in an invisible > block, or some javascript gets triggered and messes up the test result > page. > I can hide the website content by trapping it in an output buffer, but as > it is now I won't see the errors because simpletest prints those to the > same output. > > Any suggestions? > > ------------------------------------------------------------------------------ > Learn Graph Databases - Download FREE O'Reilly Book > "Graph Databases" is the definitive new guide to graph databases and their > applications. Written by three acclaimed leaders in the field, > this first edition is now available. Download your free book today! > http://p.sf.net/sfu/NeoTech > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > -- +++++++++++++++++++++++++++ BitLucid.com <http://bitlucid.com/> - BitLucid, Inc. - Web & Programming Consultants ninjawars.net - My webgame project 585-519-7658 - Cell "Never compare your inside with somebody's outside." |
From: Anders A. <tr...@gm...> - 2014-06-06 14:43:19
|
I am getting started testing a website and for most tests I want to run the code that generates each webpage. My issue with this is that the webpage output is shown in the test result, and any errors that occur get rendered by simpletest in the middle of the page as they happen. If there's a good way to handle this I can't see it. I would like to not see the regular html output, I only want the errors. The page may be rendered in such a way that errors end up in an invisible block, or some javascript gets triggered and messes up the test result page. I can hide the website content by trapping it in an output buffer, but as it is now I won't see the errors because simpletest prints those to the same output. Any suggestions? |
From: Mike R. <web...@gm...> - 2014-03-25 20:09:23
|
I'm using the Scriptable Web Browser that is included with SimpleTest. I've got a multi select form element that I'm trying to set the values in but am not having any luck. Here's code for the multi select: <label for="id_categories" class="required">Categories:</label> <select multiple="multiple" name="categories" id="id_categories_from"> <option value="1">News</option> <option value="2">Business</option> <option value="3">Weather</option></select> Here's several combinations I have tried in order to set the values: <?php $browser->setField('Categories:', 11); $browser->setField('Categories:', '11'); $browser->setFieldById('id_categories_from', 11); $browser->setFieldByName('categories:',11); $browser->setFieldByName('categories', array(11));?> |
From: josh w. <jos...@gm...> - 2013-09-19 17:03:51
|
I am testing a page which is gzip encoded. I have a function which can decode gzip encoded strings. Is there a way I can decode the page to test it? |
From: Janez D. <doe...@ya...> - 2013-07-21 13:08:06
|
Login with url works fine. require_once('simpletest/browser.php'); $browser = new SimpleBrowser(); $page = $browser->get('http://localhost/joomla25/administrator/index.php?user=admin&passw=admin&option=com_content&view=article&layout=edit'); echo $page; For example code above print out form for new article as it should (if username or password is incorect then it print login form with error message). Problem is later when I set title field and arcticle text, this part: $browser->setFieldById("jform_title", "test title"); $browser->setFieldById("jform_articletext", "test body"); $page = $browser->click('Save'); ________________________________ From: Roy Ronalds <tch...@gm...> To: Janez Doe <doe...@ya...>; "Help, advice, bugs and workarounds" <sim...@li...> Sent: Sunday, July 21, 2013 2:53 PM Subject: Re: [Simpletest-support] Scriptable Web Browser with joomla Make sure you can login with the URL alone. What you describe is probably an application useage problem as opposed to anything in simpletest. --- Cell: 585 519 7658 ><> On Jul 21, 2013, at 7:35 AM, Janez Doe <doe...@ya...> wrote: > Hi guys, > > I'm new in php world. I'm trying to create new content in joomla 2.5 with your web browser. Problem is that it doesn't post new content but just redirect me to control panel. Here is my code: > > require_once('simpletest/browser.php'); > $browser = new SimpleBrowser(); > $browser->get('http://localhost/joomla25/administrator/index.php?user=admin&passw=admin&option=com_content&view=article&layout=edit'); // using autologin plugin > $browser->setFieldByName("jform_title", "test title"); > $browser->setFieldById("jform_articletext", "test body"); > $page = $browser->click('Save'); > $page = $browser->getContent(); > echo $page; // it echo me control panel > > Any idea what's wrong? Any help would be appreciated. > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Roy R. <tch...@gm...> - 2013-07-21 12:53:19
|
Make sure you can login with the URL alone. What you describe is probably an application useage problem as opposed to anything in simpletest. --- Cell: 585 519 7658 ><> On Jul 21, 2013, at 7:35 AM, Janez Doe <doe...@ya...> wrote: > Hi guys, > > I'm new in php world. I'm trying to create new content in joomla 2.5 with your web browser. Problem is that it doesn't post new content but just redirect me to control panel. Here is my code: > > require_once('simpletest/browser.php'); > $browser = new SimpleBrowser(); > $browser->get('http://localhost/joomla25/administrator/index.php?user=admin&passw=admin&option=com_content&view=article&layout=edit'); // using autologin plugin > $browser->setFieldByName("jform_title", "test title"); > $browser->setFieldById("jform_articletext", "test body"); > $page = $browser->click('Save'); > $page = $browser->getContent(); > echo $page; // it echo me control panel > > Any idea what's wrong? Any help would be appreciated. > ------------------------------------------------------------------------------ > See everything from the browser to the database with AppDynamics > Get end-to-end visibility with application monitoring from AppDynamics > Isolate bottlenecks and diagnose root cause in seconds. > Start your free trial of AppDynamics Pro today! > http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support |
From: Janez D. <doe...@ya...> - 2013-07-21 11:35:34
|
Hi guys, I'm new in php world. I'm trying to create new content in joomla 2.5 with your web browser. Problem is that it doesn't post new content but just redirect me to control panel. Here is my code: require_once('simpletest/browser.php'); $browser = new SimpleBrowser(); $browser->get('http://localhost/joomla25/administrator/index.php?user=admin&passw=admin&option=com_content&view=article&layout=edit'); // using autologin plugin $browser->setFieldByName("jform_title", "test title"); $browser->setFieldById("jform_articletext", "test body"); $page = $browser->click('Save'); $page = $browser->getContent(); echo $page; // it echo me control panel Any idea what's wrong? Any help would be appreciated. |
From: László L. J. <las...@gm...> - 2013-03-08 21:34:09
|
The concept that you configure your IDE to run the unit tests from CLI, so you won't need apache... By TDD you have to write your unit tests before the code, because the tests are forming the code... So you write a small test, you write a bit code until the test is green, after that you refactor your code, and so on... It's very simple and very productive... 2013/3/8 Ken Ingram <ken...@gm...> > The testing scripts are producing blank HTML with my apache server, but > outputting the appropriate results in the bash shell. > Are there some configuration issues that I am missing? > > I am building the directory /var/www/simpletest > Subdirectories > classes > temp > tests > tests/simpletest > > Testing script > TestOfLogging.php > > I have not done unit testing before so I'm just working to get a handle on > the concept as quickly as possible. > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |
From: Troels Knak-N. <tro...@gm...> - 2013-03-08 21:06:35
|
A blank page in Apache might be caused by a fatal error. Check Apache's error log to see what caused it. On 8 March 2013 21:35, Ken Ingram <ken...@gm...> wrote: > The testing scripts are producing blank HTML with my apache server, but > outputting the appropriate results in the bash shell. > Are there some configuration issues that I am missing? > > I am building the directory /var/www/simpletest > Subdirectories > classes > temp > tests > tests/simpletest > > Testing script > TestOfLogging.php > > I have not done unit testing before so I'm just working to get a handle on > the concept as quickly as possible. > > ------------------------------------------------------------------------------ > Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester > Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the > endpoint security space. For insight on selecting the right partner to > tackle endpoint security challenges, access the full report. > http://p.sf.net/sfu/symantec-dev2dev > _______________________________________________ > Simpletest-support mailing list > Sim...@li... > https://lists.sourceforge.net/lists/listinfo/simpletest-support > |