SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Sasa's Avatar
    Join Date
    Mar 2003
    Location
    Cologne, Germany
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Deaktivating Cookie in SimpleTest's WebTester

    Hi Marcus,

    I have been using the WebTester for the first time and I must say that it is a very nice piece of software. One question:

    How do I simulate someone that has Cookies deactivated? Ideal would be something like this:

    PHP Code:
      $this->deactivateCookieHandling();
      
    $this->get('http://www.example.com/online-shop/');
      
    $this->clickSubmitByName('put-product-in-basket');
      
    $this->assertWantedText('Please activate your Cookies');
      
    $this->activateCookieHandling();
      
    $this->get('http://www.example.com/online-shop/');
      
    $this->clickSubmitByName('put-product-in-basket');
      
    $this->assertWantedText('success'); 
    Sasa

  2. #2
    ********* Victim lastcraft's Avatar
    Join Date
    Apr 2003
    Location
    London
    Posts
    2,423
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Hi.

    It's not possible right now. I guess I will have to add something like ignoreCookies() in the same way we now have ignoreFrames(). If you send me a feature request in the SimpleTest support mail list, or via the Sourceforge feature request mechanism, I'll get right on it.

    yours, Marcus
    Marcus Baker
    Testing: SimpleTest, Cgreen, Fakemail
    Other: Phemto dependency injector
    Books: PHP in Action, 97 things

  3. #3
    SitePoint Enthusiast Sasa's Avatar
    Join Date
    Mar 2003
    Location
    Cologne, Germany
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yes, I will do that shortly. Thanks.
    Sasa


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •