You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
(39) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(20) |
Feb
(8) |
Mar
(22) |
Apr
(14) |
May
(48) |
Jun
(29) |
Jul
(48) |
Aug
(5) |
Sep
(13) |
Oct
(5) |
Nov
(28) |
Dec
(42) |
2008 |
Jan
(32) |
Feb
(39) |
Mar
(60) |
Apr
(117) |
May
(9) |
Jun
(35) |
Jul
(1) |
Aug
(11) |
Sep
(38) |
Oct
(26) |
Nov
(7) |
Dec
(65) |
2009 |
Jan
(30) |
Feb
(22) |
Mar
(9) |
Apr
(5) |
May
(10) |
Jun
(13) |
Jul
(60) |
Aug
(9) |
Sep
(24) |
Oct
(20) |
Nov
(20) |
Dec
(28) |
2010 |
Jan
|
Feb
|
Mar
(11) |
Apr
(19) |
May
(7) |
Jun
(3) |
Jul
(14) |
Aug
(1) |
Sep
|
Oct
(8) |
Nov
(8) |
Dec
(4) |
2011 |
Jan
|
Feb
(1) |
Mar
(3) |
Apr
(22) |
May
(7) |
Jun
(20) |
Jul
(6) |
Aug
(4) |
Sep
|
Oct
(1) |
Nov
(13) |
Dec
(4) |
2012 |
Jan
(14) |
Feb
|
Mar
(4) |
Apr
(14) |
May
(3) |
Jun
(4) |
Jul
(3) |
Aug
(1) |
Sep
(2) |
Oct
(4) |
Nov
(5) |
Dec
(2) |
2013 |
Jan
(1) |
Feb
(3) |
Mar
|
Apr
(1) |
May
(1) |
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
|
Nov
|
Dec
|
From: <pp...@us...> - 2013-09-30 15:20:04
|
Revision: 2051 http://sourceforge.net/p/simpletest/code/2051 Author: pp11 Date: 2013-09-30 15:19:59 +0000 (Mon, 30 Sep 2013) Log Message: ----------- Patch for [bugs:#192] PUT request fails to encode body parameters by Jamm!n Modified Paths: -------------- simpletest/trunk/user_agent.php Modified: simpletest/trunk/user_agent.php =================================================================== --- simpletest/trunk/user_agent.php 2012-04-24 10:29:08 UTC (rev 2050) +++ simpletest/trunk/user_agent.php 2013-09-30 15:19:59 UTC (rev 2051) @@ -212,7 +212,7 @@ * @access public */ function fetchResponse($url, $encoding) { - if ($encoding->getMethod() != 'POST') { + if (!in_array($encoding->getMethod(), array('POST', 'PUT'))) { $url->addRequestParameters($encoding); $encoding->clear(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: SourceForge.net <no...@so...> - 2013-05-20 11:41:41
|
Feature Requests item #1938555, was opened at 2008-04-09 05:30 Message generated for change (Comment added) made by arvinism You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1938555&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension: DOM Tester Group: None Status: Open Priority: 5 Private: No Submitted By: chrisvogt (chrisvogt) Assigned to: Nobody/Anonymous (nobody) Summary: clickByCssSelector Initial Comment: I know the css selector feature is still in development. It would be great to also be able to click an element that matches a given selector using some kind of clickByCssSelector method. ---------------------------------------------------------------------- Comment By: Arthur Vincent Simon (arvinism) Date: 2013-05-20 04:41 Message: Any update on this. In this day and age, this feature is sorely needed. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-07 10:30 Message: Hmm is anyone else having problems with the pictures on this blog loading? I'm trying to determine if its a problem on my end or if it's the blog. Any suggestions would be greatly appreciated. north face jackets sale http://cheapnorthfacedenalijacketsformenenhanced.webspawner.com/ ---------------------------------------------------------------------- Comment By: Edward Z. Yang (edwardzyang) Date: 2008-12-20 17:25 Message: Refiling as DOM Tester feature request. ---------------------------------------------------------------------- Comment By: Mark Rickerby (maetl_) Date: 2008-04-09 17:24 Message: Logged In: YES user_id=993532 Originator: NO I'm not sure on the utility of this, due to the fact that CSS selectors match *any* HTML element, so it seems like something that would necessarily involve Javascript if it is meant to target arbitrary clicks on a document. Otherwise, it would have to involve checking that the given CSS rule only targets a link that is clickable in plain HTML. The idea of the click-* methods is to target the ui at a high level, treating the document labels and links in the same way that a user might see them. Also - you can test against CSS selector expections using the DomTester extension: http://simpletest.svn.sourceforge.net/viewvc/simpletest/simpletest/trunk/extensions/dom_tester.php?view=markup Maybe this behavior would be be a useful addition to this extension? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1938555&group_id=76550 |
From: SourceForge.net <no...@so...> - 2013-04-23 14:08:42
|
Feature Requests item #3611654, was opened at 2013-04-23 07:08 Message generated for change (Tracker Item Submitted) made by rms230 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3611654&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: None Status: Open Priority: 5 Private: No Submitted By: Robert Spick (rms230) Assigned to: Nobody/Anonymous (nobody) Summary: AssertEquals Initial Comment: Addded an assertEquals method. The method uses the assertEqual method using the same arguments as the assertEqual method. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3611654&group_id=76550 |
From: SourceForge.net <no...@so...> - 2013-02-26 03:59:50
|
Feature Requests item #3606005, was opened at 2013-02-25 19:59 Message generated for change (Tracker Item Submitted) made by brun0braga You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3606005&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: None Status: Open Priority: 5 Private: No Submitted By: Bruno Braga (brun0braga) Assigned to: Nobody/Anonymous (nobody) Summary: Add option for verbosity Initial Comment: Many unit testing usually have very clean output, some just outputs a dot showing each test being executed. I was wondering if we could have a --verbose option from command-line (or HTML) to include the successful tests as well. In my case, specifically, I want to see the test_case->method being called... for troubleshooting, it kind of helps a lot. So I appended this line in invoker.php (at SimpleInvoker->invoke() method): echo get_class($this->test_case)."->".$method."\n"; I looked a bit in the code, but got stuck on the reporters and scorers which have same $reporter name... so I couldn't reach this method from the initial command line executing script... so I figured that asking for you would be much faster. Or maybe you guys have different suggestions... Thanks. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3606005&group_id=76550 |
From: SourceForge.net <no...@so...> - 2013-02-26 01:40:49
|
Bugs item #3605994, was opened at 2013-02-25 17:40 Message generated for change (Tracker Item Submitted) made by brun0braga You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3605994&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Bruno Braga (brun0braga) Assigned to: Nobody/Anonymous (nobody) Summary: Code documentation Page /trunk empty Initial Comment: I wanted to download the code, and looking at: https://sourceforge.net/scm/?type=svn&group_id=76550&source=navbar the URL gives everything in the repository (oops). The attention helps, kind of, because it says to use /trunk, which is empty... In fact, I was interested in simpletest/trunk ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3605994&group_id=76550 |
From: SourceForge.net <no...@so...> - 2013-02-10 09:28:31
|
Bugs item #3603989, was opened at 2013-02-10 01:28 Message generated for change (Tracker Item Submitted) made by jdgilbey You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3603989&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Julian Gilbey (jdgilbey) Assigned to: Nobody/Anonymous (nobody) Summary: Please clarify copyright conditions Initial Comment: Hi there! I'm just compiling copyright and licensing details for a package which includes your simpletest framework. You have kindly released simpletest under LGPL-2.1, but it is not explicit who owns the copyright. As the LGPL says, you should add (at least) the following text to the README or even to each file. It would make it unambiguous! <one line to give the library's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Many thanks in advance! Julian ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3603989&group_id=76550 |
From: SourceForge.net <no...@so...> - 2013-01-25 19:47:33
|
Patches item #3602144, was opened at 2013-01-25 11:47 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=3602144&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Widget (example) Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: Fix select tag handling and parsing. Initial Comment: When a select tag has no options, it should not be submitted. Also if the contents of an attribute in a tag contains an = sign, it will not be split properly. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=3602144&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-12-20 18:00:38
|
Feature Requests item #2896660, was opened at 2009-11-12 06:49 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=2896660&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: None Status: Open Priority: 5 Private: No Submitted By: daniel hahler (blueyed) Assigned to: Nobody/Anonymous (nobody) Summary: Mocks: allow dynamic return values (pass callable?!) Initial Comment: It's very useful to have a non-static return value, e.g. by passing in a function to returns(): $DB->returns('escape', create_function('$step, $method, $args', 'return addslashes($args[0]);')); The patch to implement this is quite trivial, but would not allow to really return a function (which is a valid use case). Therefore, a new method should get added for this, e.g. returnsByFunction. However, here's the patch I have created for this: diff --git a/mock_objects.php b/mock_objects.php index cc04836..4de8f2f 100644 --- a/mock_objects.php +++ b/mock_objects.php @@ -534,7 +534,9 @@ class SimpleReturn { * @return mixed Whatever was stashed. * @access public */ - function act() { + function act($step, $method, $args) { + if (is_callable($this->value)) + return call_user_func($this->value, $step, $method, $args); return $this->value; } } ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-12-20 10:00 Message: 7VkxYR <a href="http://vhnkuijfuowg.com/">vhnkuijfuowg</a>, [url=http://xcfsluuvfwyr.com/]xcfsluuvfwyr[/url], [link=http://aldwsqryklkv.com/]aldwsqryklkv[/link], http://zvttlmbfitoi.com/ ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-08-28 21:56 Message: KOSTQ2 <a href="http://fztgydviqwoh.com/">fztgydviqwoh</a>, [url=http://diukqeojhvel.com/]diukqeojhvel[/url], [link=http://zyijbhthdann.com/]zyijbhthdann[/link], http://zuqsjbhevqbo.com/ ---------------------------------------------------------------------- Comment By: daniel hahler (blueyed) Date: 2009-11-12 07:46 Message: Well, act() needs those params, too, of course: the correct patch: diff --git a/mock_objects.php b/mock_objects.php index cc04836..4de8f2f 100644 --- a/mock_objects.php +++ b/mock_objects.php @@ -473,14 +473,14 @@ class SimpleCallSchedule { if ($this->at[$method][$step]->isMatch($args)) { $action = $this->at[$method][$step]->findFirstAction($args); if (isset($action)) { - return $action->act(); + return $action->act($step, $method, $args); } } } if (isset($this->always[$method])) { $action = $this->always[$method]->findFirstAction($args); if (isset($action)) { - return $action->act(); + return $action->act($step, $method, $args); } } $null = null; @@ -534,7 +534,9 @@ class SimpleReturn { * @return mixed Whatever was stashed. * @access public */ - function act() { + function act($step, $method, $args) { + if (is_callable($this->value)) + return call_user_func($this->value, $step, $method, $args); return $this->value; } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=2896660&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-12-05 00:12:57
|
Feature Requests item #3592628, was opened at 2012-12-04 16:12 Message generated for change (Tracker Item Submitted) made by doveraldo You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3592628&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Web tester Group: None Status: Open Priority: 5 Private: No Submitted By: doveraldo (doveraldo) Assigned to: Nobody/Anonymous (nobody) Summary: Detect button in form Initial Comment: I would like to be able to detect the existence of a button in a form. The button will not be a submit button, but will perform some javascript. I don't want to test the javascript, but since the page is dynamic based on the permission levels of the user I'd like to confirm the presence of the button in a unittest for the correct user levels Currently I've tried the following asserts, but none of them work as only submit buttons are really remembered in the browser $this->get("http://localhost/buttontest.php"); $this->assertField('button'); $this->assertClickable('button'); $this->assertField('button2'); $this->assertClickable('button2'); html page is something like this <form name=test action=buttontest.php> <input type=button name=button value=button onclick="alert('Hello World');"> <button type=button name=button2 value=button2 onclick="alert('Hello World 2');"> </form> Unless I've missed something this doesn't seem to be possible (by design ?) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3592628&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-11-07 18:30:25
|
Feature Requests item #1938555, was opened at 2008-04-09 05:30 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1938555&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension: DOM Tester Group: None Status: Open Priority: 5 Private: No Submitted By: chrisvogt (chrisvogt) Assigned to: Nobody/Anonymous (nobody) Summary: clickByCssSelector Initial Comment: I know the css selector feature is still in development. It would be great to also be able to click an element that matches a given selector using some kind of clickByCssSelector method. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-07 10:30 Message: Hmm is anyone else having problems with the pictures on this blog loading? I'm trying to determine if its a problem on my end or if it's the blog. Any suggestions would be greatly appreciated. north face jackets sale http://cheapnorthfacedenalijacketsformenenhanced.webspawner.com/ ---------------------------------------------------------------------- Comment By: Edward Z. Yang (edwardzyang) Date: 2008-12-20 17:25 Message: Refiling as DOM Tester feature request. ---------------------------------------------------------------------- Comment By: Mark Rickerby (maetl_) Date: 2008-04-09 17:24 Message: Logged In: YES user_id=993532 Originator: NO I'm not sure on the utility of this, due to the fact that CSS selectors match *any* HTML element, so it seems like something that would necessarily involve Javascript if it is meant to target arbitrary clicks on a document. Otherwise, it would have to involve checking that the given CSS rule only targets a link that is clickable in plain HTML. The idea of the click-* methods is to target the ui at a high level, treating the document labels and links in the same way that a user might see them. Also - you can test against CSS selector expections using the DomTester extension: http://simpletest.svn.sourceforge.net/viewvc/simpletest/simpletest/trunk/extensions/dom_tester.php?view=markup Maybe this behavior would be be a useful addition to this extension? ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1938555&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-11-04 13:10:03
|
Feature Requests item #3006486, was opened at 2010-05-24 08:21 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3006486&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Extension: Selenium/Selenese Group: None Status: Open Priority: 5 Private: No Submitted By: Lubos Dz (lubosdz) Assigned to: Nobody/Anonymous (nobody) Summary: Include Selenium RC PHP Client driver Initial Comment: Hi, would it be possible to include selenium client driver for Selenium Remore Control Server (RC)? this is most widely used testing server, works great for PHP, is also supported by PHPUnit. There are two PHP clients for Selenium RC server available: 1. official from http://seleniumhq.org/download/ => Selenium RC (included within the package along with other clients) 2. from PEAR http://pear.php.net/package/Testing_Selenium/redirected -> this is not maintained anymore I guess Neither of the flavours above is ready for straight integration with simpletest. It would be really cool to have it integrated directly with Simpletest downloaded package.... Thanx a lot! Looking for next release!!!!!!! Lubos ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-04 05:10 Message: I know this if off topic but I'm looking into starting my own weblog and was wondering what all is required to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very web savvy so I'm not 100% positive. Any tips or advice would be greatly appreciated. Appreciate it north face osito http://ijgedleucy.snappages.com/blog.htm ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=3006486&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-11-04 04:54:57
|
Patches item #2974515, was opened at 2010-03-22 05:42 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Anatoly Lapshin (opentitan) Assigned to: Perrick Penet (pp11) Summary: Make SimpleBrowser::post() accepting SimpleMultipartEncoding Initial Comment: SimpleBrowser::post() is enforcing use of SimplePostEncoding loosing all the attachments from the $parameters given. The patch makes it checking for the $parameters type and keeps untouched any objects of type SimplePostEncoding and its descendants (such as SimpleMultipartEncoding), so that attachments are successfully sent. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-03 21:54 Message: 7iBSfn A big thank you for your post. Will read on... ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-10-19 06:44 Message: vq7haA Great, thanks for sharing this article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-09-19 12:46 Message: WFlgxm Enjoyed every bit of your blog.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-08 10:25 Message: IrlCpV I value the blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Perrick Penet (pp11) Date: 2010-07-27 02:04 Message: Hello, Your patch was created against an old version of SimpleTest (the current version for HEAD is now 1995). And the browser has seen some dramatic modifications over the last months. If you want to resubmit a patch, please use the current trunk version from source. And if you want to have it included real fast, please add a new unit test as well ;-) Yours, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-11-03 08:32:40
|
Feature Requests item #1045414, was opened at 2004-10-12 07:26 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1045414&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Priority: 4 Private: No Submitted By: Andre Steffens (stef02) Assigned to: Nobody/Anonymous (nobody) Summary: WebTest: missing [assert-]methods Initial Comment: Hi, the following methods would be very helpfull: assertSubmit($label) to check if a button (to submit) exists assertCheckbox($field, true or false) to check if a checkbox is checked or not Thx Andre ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-03 01:32 Message: Have you ever thought about publishing an ebook or guest authoring on other blogs? I have a blog based upon on the same information you discuss and would really like to have you share some stories/information. I know my readers would value your work. If you're even remotely interested, feel free to send me an e mail. north face jackets on sale http://zatnvxmvmn.moonfruit.com/blog/4570497138 ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-02 08:12 Message: Hello I am so excited I found your weblog, I really found you by error, while I was looking on Aol for something else, Regardless I am here now and would just like to say thanks for a incredible post and a all round exciting blog (I also love the theme/design), I don? have time to look over it all at the minute but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the great job. north face jackets cheap http://newnorthfaceboots.bloggd.org/ ---------------------------------------------------------------------- Comment By: Marcus Baker (lastcraft) Date: 2004-10-18 15:55 Message: Logged In: YES user_id=695819 Hi. It's just that the assertSubmit() option did not make it into the version 1.0 in time. I will be adding this later or allowing assertField() to pick up the slack. The assertCheckbox() is covered by the assertField() method. You could easily add this special method to a generic test case by chaining to assertField(), so I'd like to skip that in the name of a minimal interface if that's OK. yours, Marcus ---------------------------------------------------------------------- Comment By: Andre Steffens (stef02) Date: 2004-10-13 01:52 Message: Logged In: YES user_id=1130956 another nice method: string getFieldType($label) => returns the type of a given field ... <input type='radio' name='test' ...> ... WebTestCase::getFieldType('test') => radio Thx Andre ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1045414&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-11-02 15:12:51
|
Feature Requests item #1045414, was opened at 2004-10-12 07:26 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1045414&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Priority: 4 Private: No Submitted By: Andre Steffens (stef02) Assigned to: Nobody/Anonymous (nobody) Summary: WebTest: missing [assert-]methods Initial Comment: Hi, the following methods would be very helpfull: assertSubmit($label) to check if a button (to submit) exists assertCheckbox($field, true or false) to check if a checkbox is checked or not Thx Andre ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-11-02 08:12 Message: Hello I am so excited I found your weblog, I really found you by error, while I was looking on Aol for something else, Regardless I am here now and would just like to say thanks for a incredible post and a all round exciting blog (I also love the theme/design), I don? have time to look over it all at the minute but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read more, Please do keep up the great job. north face jackets cheap http://newnorthfaceboots.bloggd.org/ ---------------------------------------------------------------------- Comment By: Marcus Baker (lastcraft) Date: 2004-10-18 15:55 Message: Logged In: YES user_id=695819 Hi. It's just that the assertSubmit() option did not make it into the version 1.0 in time. I will be adding this later or allowing assertField() to pick up the slack. The assertCheckbox() is covered by the assertField() method. You could easily add this special method to a generic test case by chaining to assertField(), so I'd like to skip that in the name of a minimal interface if that's OK. yours, Marcus ---------------------------------------------------------------------- Comment By: Andre Steffens (stef02) Date: 2004-10-13 01:52 Message: Logged In: YES user_id=1130956 another nice method: string getFieldType($label) => returns the type of a given field ... <input type='radio' name='test' ...> ... WebTestCase::getFieldType('test') => radio Thx Andre ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=1045414&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-10-19 13:44:25
|
Patches item #2974515, was opened at 2010-03-22 05:42 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Anatoly Lapshin (opentitan) Assigned to: Perrick Penet (pp11) Summary: Make SimpleBrowser::post() accepting SimpleMultipartEncoding Initial Comment: SimpleBrowser::post() is enforcing use of SimplePostEncoding loosing all the attachments from the $parameters given. The patch makes it checking for the $parameters type and keeps untouched any objects of type SimplePostEncoding and its descendants (such as SimpleMultipartEncoding), so that attachments are successfully sent. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-10-19 06:44 Message: vq7haA Great, thanks for sharing this article.Really thank you! Awesome. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-09-19 12:46 Message: WFlgxm Enjoyed every bit of your blog.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-08 10:25 Message: IrlCpV I value the blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Perrick Penet (pp11) Date: 2010-07-27 02:04 Message: Hello, Your patch was created against an old version of SimpleTest (the current version for HEAD is now 1995). And the browser has seen some dramatic modifications over the last months. If you want to resubmit a patch, please use the current trunk version from source. And if you want to have it included real fast, please add a new unit test as well ;-) Yours, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-10-16 22:00:40
|
Bugs item #3577567, was opened at 2012-10-16 00:16 Message generated for change (Comment added) made by darkxst You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577567&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: tag attributes with "=" in value are not parsed properly Initial Comment: say you have an invisible field where the value contains an equal sign - this causes the value to be truncated improperly and prepended with a containing quote. some examples might be like in ASP pages where you have a viewstate which is base64 encoded and has a "=" buffer at the end. if you have a tag: value="a=b" the attribute/value pair is returned as: attribute: value value: "a this can be fixed by adding ",2" to the explode method on tidy_parser.php line 305 like so: $parts = explode('=', $raw,2); ---------------------------------------------------------------------- Comment By: Tim (darkxst) Date: 2012-10-16 15:00 Message: This sounds very much like a bug I hit a while ago -> http://sourceforge.net/tracker/?func=detail&aid=3537101&group_id=76550&atid=547455 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577567&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-10-16 07:16:27
|
Bugs item #3577567, was opened at 2012-10-16 00:16 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577567&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: tag attributes with "=" in value are not parsed properly Initial Comment: say you have an invisible field where the value contains an equal sign - this causes the value to be truncated improperly and prepended with a containing quote. some examples might be like in ASP pages where you have a viewstate which is base64 encoded and has a "=" buffer at the end. if you have a tag: value="a=b" the attribute/value pair is returned as: attribute: value value: "a this can be fixed by adding ",2" to the explode method on tidy_parser.php line 305 like so: $parts = explode('=', $raw,2); ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577567&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-10-16 07:11:29
|
Bugs item #3577566, was opened at 2012-10-16 00:11 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577566&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: "select"s without "option"s should not be posted Initial Comment: if a form is loaded with a select field that does not have any option tags, most browsers will not post the field back at all. this is critical in some ASP applications where the site expects the field to be omitted, and when it is included causes the viewstate not to validate (i didn't write the site but it gave me a headache trying to figure it out). this is easily fixed by adding 1 line of code on line 239 in tidy_parser.php change: private function addWidgetToForm($node, $form, $enclosing_label) { $widget = $this->tags()->createTag($node->name, $this->attributes($node)); if (! $widget) { return; } $widget->setLabel($enclosing_label) ->addContent($this->innerHtml($node)); if ($node->name == 'select') { $widget->addTags($this->collectSelectOptions($node)); } $form->addWidget($widget); $this->indexWidgetById($widget); } to: private function addWidgetToForm($node, $form, $enclosing_label) { $widget = $this->tags()->createTag($node->name, $this->attributes($node)); if (! $widget) { return; } $widget->setLabel($enclosing_label) ->addContent($this->innerHtml($node)); if ($node->name == 'select') { if(count($widget->addTags($this->collectSelectOptions($node))) == 0){ return; } } $form->addWidget($widget); $this->indexWidgetById($widget); } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3577566&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-09-19 19:46:43
|
Patches item #2974515, was opened at 2010-03-22 05:42 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Closed Resolution: Invalid Priority: 5 Private: No Submitted By: Anatoly Lapshin (opentitan) Assigned to: Perrick Penet (pp11) Summary: Make SimpleBrowser::post() accepting SimpleMultipartEncoding Initial Comment: SimpleBrowser::post() is enforcing use of SimplePostEncoding loosing all the attachments from the $parameters given. The patch makes it checking for the $parameters type and keeps untouched any objects of type SimplePostEncoding and its descendants (such as SimpleMultipartEncoding), so that attachments are successfully sent. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-09-19 12:46 Message: WFlgxm Enjoyed every bit of your blog.Really looking forward to read more. ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-03-08 10:25 Message: IrlCpV I value the blog article.Much thanks again. Will read on... ---------------------------------------------------------------------- Comment By: Perrick Penet (pp11) Date: 2010-07-27 02:04 Message: Hello, Your patch was created against an old version of SimpleTest (the current version for HEAD is now 1995). And the browser has seen some dramatic modifications over the last months. If you want to resubmit a patch, please use the current trunk version from source. And if you want to have it included real fast, please add a new unit test as well ;-) Yours, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547457&aid=2974515&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-09-13 07:44:24
|
Support Requests item #3567276, was opened at 2012-09-13 00:44 Message generated for change (Tracker Item Submitted) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547456&aid=3567276&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Priority: 5 Private: No Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: GET request after POST Initial Comment: I'm submitting a form that does a POST then a redirect with a GET request. If I do: $browser->getRequest(); It gives me the data of the last GET request. How can I fetch the request data of the POST ? Thank you ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547456&aid=3567276&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-08-29 04:56:21
|
Feature Requests item #2896660, was opened at 2009-11-12 06:49 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=2896660&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Unit test framework Group: None Status: Open Priority: 5 Private: No Submitted By: daniel hahler (blueyed) Assigned to: Nobody/Anonymous (nobody) Summary: Mocks: allow dynamic return values (pass callable?!) Initial Comment: It's very useful to have a non-static return value, e.g. by passing in a function to returns(): $DB->returns('escape', create_function('$step, $method, $args', 'return addslashes($args[0]);')); The patch to implement this is quite trivial, but would not allow to really return a function (which is a valid use case). Therefore, a new method should get added for this, e.g. returnsByFunction. However, here's the patch I have created for this: diff --git a/mock_objects.php b/mock_objects.php index cc04836..4de8f2f 100644 --- a/mock_objects.php +++ b/mock_objects.php @@ -534,7 +534,9 @@ class SimpleReturn { * @return mixed Whatever was stashed. * @access public */ - function act() { + function act($step, $method, $args) { + if (is_callable($this->value)) + return call_user_func($this->value, $step, $method, $args); return $this->value; } } ---------------------------------------------------------------------- Comment By: Nobody/Anonymous (nobody) Date: 2012-08-28 21:56 Message: KOSTQ2 <a href="http://fztgydviqwoh.com/">fztgydviqwoh</a>, [url=http://diukqeojhvel.com/]diukqeojhvel[/url], [link=http://zyijbhthdann.com/]zyijbhthdann[/link], http://zuqsjbhevqbo.com/ ---------------------------------------------------------------------- Comment By: daniel hahler (blueyed) Date: 2009-11-12 07:46 Message: Well, act() needs those params, too, of course: the correct patch: diff --git a/mock_objects.php b/mock_objects.php index cc04836..4de8f2f 100644 --- a/mock_objects.php +++ b/mock_objects.php @@ -473,14 +473,14 @@ class SimpleCallSchedule { if ($this->at[$method][$step]->isMatch($args)) { $action = $this->at[$method][$step]->findFirstAction($args); if (isset($action)) { - return $action->act(); + return $action->act($step, $method, $args); } } } if (isset($this->always[$method])) { $action = $this->always[$method]->findFirstAction($args); if (isset($action)) { - return $action->act(); + return $action->act($step, $method, $args); } } $null = null; @@ -534,7 +534,9 @@ class SimpleReturn { * @return mixed Whatever was stashed. * @access public */ - function act() { + function act($step, $method, $args) { + if (is_callable($this->value)) + return call_user_func($this->value, $step, $method, $args); return $this->value; } } ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547458&aid=2896660&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-07-12 02:28:34
|
Bugs item #3537101, was opened at 2012-06-22 01:20 Message generated for change (Comment added) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Web tester Group: None Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Perrick Penet (pp11) Summary: web form issues due to post fields being truncated Initial Comment: I have been having trouble getting a login working using the the browser module, this is only happening on one particular server which is RHEL6 - php 5.3.13. Basically the login fails, with the remote server rejecting the request. On closer inspection, the post parameters appear to be truncated. i.e there is a validation key that should be "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==" but simpletest appears to be sending the following in the post instead ""/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA" It appears the the '=' characters are being stripped off by mergeAttributes() in tidy_parser.php, however it also appears that the unaffected machines do not take this code path. ---------------------------------------------------------------------- >Comment By: https://www.google.com/accounts () Date: 2012-07-11 19:28 Message: Turns out this depends on the pasrser being used. So to reproduce this error, you just need to ensure that using the Tidy Parser. On a machine with the php tidy extension loaded, then it will be using SimpleTidyPageBuilder() which causes it to fail. Once I remove the tidy extension, it then uses SimplePHPPageBuilder, which handles the post field correctly. Its not clear to me why there are two different parsers in simpletest? but it does seem that TidyParser is the preferred one, and PHP parser is a fallback, for when the tidy extension is missing. ---------------------------------------------------------------------- Comment By: https://www.google.com/accounts () Date: 2012-07-10 15:52 Message: indeed, your given test case fails on the affected machine. See result below. 6) Field [Text A] should match with [Field expectation [String: /wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] fails with [String: "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA] at character 0 with [/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] and ["/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA]] at [/home/dart/trunk/test/acceptance_test.php line 1086] in testSubmissionOfTrickyPostValue in LiveTestOfForms 7) Text [wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] not detected in [String: Simple test target file A target for the SimpleTest test suite. Request Protocol versionHTTP/1.0 Request methodPOST Accept header Cookies Raw GET data [] GET data Dump of $_GET data Array ( ) Raw POST...] at [/home/dart/trunk/test/acceptance_test.php line 1089] in testSubmissionOfTrickyPostValue in LiveTestOfForms ---------------------------------------------------------------------- Comment By: Perrick Penet (pp11) Date: 2012-07-01 06:04 Message: I tried to replicate your bug with the following patch : ### Eclipse Workspace Patch 1.0 #P simpletest Index: test/acceptance_test.php =================================================================== --- test/acceptance_test.php (revision 2050) +++ test/acceptance_test.php (working copy) @@ -1079,6 +1079,13 @@ $this->assertText("i=[']"); } + function testSubmissionOfTrickyPostValue() { + $this->get($this->samples() . 'form_with_tricky_post_value.html'); + $this->assertField('Text A', '/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=='); + $this->click('Go!'); + $this->assertText("wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="); + } + function testFormActionRespectsBaseTag() { $this->get($this->samples() . 'base_tag/form.html'); $this->assertTrue($this->clickSubmit('Go!')); Index: test/site/form_with_tricky_post_value.html =================================================================== --- test/site/form_with_tricky_post_value.html (revision 0) +++ test/site/form_with_tricky_post_value.html (revision 0) @@ -0,0 +1,10 @@ +<html> + <head><title>Test of form submission</title></head> + <body> + <form action="network_confirm.php" method="post"> + <label>Text A <input type="text" name="a" value="/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="></label> + <br /> + <input type="submit" value="Go!"> + </form> + </body> +</html> \ No newline at end of file Property changes on: test/site/form_with_tricky_post_value.html ___________________________________________________________________ Added: svn:executable + * But things are looking OK on my machine. Maybe you could elaborate on this code to provide a failing test case and we can find the root cause more easily. Thanks in advance, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-07-10 22:52:05
|
Bugs item #3537101, was opened at 2012-06-22 01:20 Message generated for change (Settings changed) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Web tester Group: None >Status: Open Resolution: Works For Me Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Perrick Penet (pp11) Summary: web form issues due to post fields being truncated Initial Comment: I have been having trouble getting a login working using the the browser module, this is only happening on one particular server which is RHEL6 - php 5.3.13. Basically the login fails, with the remote server rejecting the request. On closer inspection, the post parameters appear to be truncated. i.e there is a validation key that should be "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==" but simpletest appears to be sending the following in the post instead ""/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA" It appears the the '=' characters are being stripped off by mergeAttributes() in tidy_parser.php, however it also appears that the unaffected machines do not take this code path. ---------------------------------------------------------------------- >Comment By: https://www.google.com/accounts () Date: 2012-07-10 15:52 Message: indeed, your given test case fails on the affected machine. See result below. 6) Field [Text A] should match with [Field expectation [String: /wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] fails with [String: "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA] at character 0 with [/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] and ["/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA]] at [/home/dart/trunk/test/acceptance_test.php line 1086] in testSubmissionOfTrickyPostValue in LiveTestOfForms 7) Text [wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==] not detected in [String: Simple test target file A target for the SimpleTest test suite. Request Protocol versionHTTP/1.0 Request methodPOST Accept header Cookies Raw GET data [] GET data Dump of $_GET data Array ( ) Raw POST...] at [/home/dart/trunk/test/acceptance_test.php line 1089] in testSubmissionOfTrickyPostValue in LiveTestOfForms ---------------------------------------------------------------------- Comment By: Perrick Penet (pp11) Date: 2012-07-01 06:04 Message: I tried to replicate your bug with the following patch : ### Eclipse Workspace Patch 1.0 #P simpletest Index: test/acceptance_test.php =================================================================== --- test/acceptance_test.php (revision 2050) +++ test/acceptance_test.php (working copy) @@ -1079,6 +1079,13 @@ $this->assertText("i=[']"); } + function testSubmissionOfTrickyPostValue() { + $this->get($this->samples() . 'form_with_tricky_post_value.html'); + $this->assertField('Text A', '/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=='); + $this->click('Go!'); + $this->assertText("wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="); + } + function testFormActionRespectsBaseTag() { $this->get($this->samples() . 'base_tag/form.html'); $this->assertTrue($this->clickSubmit('Go!')); Index: test/site/form_with_tricky_post_value.html =================================================================== --- test/site/form_with_tricky_post_value.html (revision 0) +++ test/site/form_with_tricky_post_value.html (revision 0) @@ -0,0 +1,10 @@ +<html> + <head><title>Test of form submission</title></head> + <body> + <form action="network_confirm.php" method="post"> + <label>Text A <input type="text" name="a" value="/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="></label> + <br /> + <input type="submit" value="Go!"> + </form> + </body> +</html> \ No newline at end of file Property changes on: test/site/form_with_tricky_post_value.html ___________________________________________________________________ Added: svn:executable + * But things are looking OK on my machine. Maybe you could elaborate on this code to provide a failing test case and we can find the root cause more easily. Thanks in advance, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-07-01 13:04:38
|
Bugs item #3537101, was opened at 2012-06-22 01:20 Message generated for change (Comment added) made by pp11 You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. >Category: Web tester Group: None >Status: Pending >Resolution: Works For Me Priority: 5 Private: No Submitted By: https://www.google.com/accounts () >Assigned to: Perrick Penet (pp11) Summary: web form issues due to post fields being truncated Initial Comment: I have been having trouble getting a login working using the the browser module, this is only happening on one particular server which is RHEL6 - php 5.3.13. Basically the login fails, with the remote server rejecting the request. On closer inspection, the post parameters appear to be truncated. i.e there is a validation key that should be "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==" but simpletest appears to be sending the following in the post instead ""/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA" It appears the the '=' characters are being stripped off by mergeAttributes() in tidy_parser.php, however it also appears that the unaffected machines do not take this code path. ---------------------------------------------------------------------- >Comment By: Perrick Penet (pp11) Date: 2012-07-01 06:04 Message: I tried to replicate your bug with the following patch : ### Eclipse Workspace Patch 1.0 #P simpletest Index: test/acceptance_test.php =================================================================== --- test/acceptance_test.php (revision 2050) +++ test/acceptance_test.php (working copy) @@ -1079,6 +1079,13 @@ $this->assertText("i=[']"); } + function testSubmissionOfTrickyPostValue() { + $this->get($this->samples() . 'form_with_tricky_post_value.html'); + $this->assertField('Text A', '/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=='); + $this->click('Go!'); + $this->assertText("wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="); + } + function testFormActionRespectsBaseTag() { $this->get($this->samples() . 'base_tag/form.html'); $this->assertTrue($this->clickSubmit('Go!')); Index: test/site/form_with_tricky_post_value.html =================================================================== --- test/site/form_with_tricky_post_value.html (revision 0) +++ test/site/form_with_tricky_post_value.html (revision 0) @@ -0,0 +1,10 @@ +<html> + <head><title>Test of form submission</title></head> + <body> + <form action="network_confirm.php" method="post"> + <label>Text A <input type="text" name="a" value="/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA=="></label> + <br /> + <input type="submit" value="Go!"> + </form> + </body> +</html> \ No newline at end of file Property changes on: test/site/form_with_tricky_post_value.html ___________________________________________________________________ Added: svn:executable + * But things are looking OK on my machine. Maybe you could elaborate on this code to provide a failing test case and we can find the root cause more easily. Thanks in advance, Perrick ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 |
From: SourceForge.net <no...@so...> - 2012-06-22 08:20:34
|
Bugs item #3537101, was opened at 2012-06-22 01:20 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: https://www.google.com/accounts () Assigned to: Nobody/Anonymous (nobody) Summary: web form issues due to post fields being truncated Initial Comment: I have been having trouble getting a login working using the the browser module, this is only happening on one particular server which is RHEL6 - php 5.3.13. Basically the login fails, with the remote server rejecting the request. On closer inspection, the post parameters appear to be truncated. i.e there is a validation key that should be "/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA==" but simpletest appears to be sending the following in the post instead ""/wEWBgKg39dCAtHo2bAJAoCO7/gFAraE6F8CoejZkAICz5yEggoKjWoDPyV4u4qbEbtGzIJvWG8IkA" It appears the the '=' characters are being stripped off by mergeAttributes() in tidy_parser.php, however it also appears that the unaffected machines do not take this code path. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=547455&aid=3537101&group_id=76550 |