McGivrer's Home

life of french web developer

  • Tobi, is not a dog, but a Functional Test framework !

    • 16 Jul 2011
    • 0 Responses
    •  views
    • development functional javascript test web
    • Edit
    • Delete
    • Tags
    • Autopost
    Tobi ! Get' there !
    No, I am not calling back my smart dog, but trying to integrate Tobi (a functional testing framework) into a beautiful web site.
    THat's the fact, Tobi is a javascript API with a Human Language Oriented methods to test some web interface.
    If you want to test some Login Form, you will be able to write something like this:
    var tobi = require('tobi') , 
        app = require('./my/app') , 
        browser = tobi.createBrowser(app); 
    browser.get('/login', function(res, $){ 
        $('form') 
          .fill({ username: 'tj', password: 'tobi' }) 
          .submit(function(res, $){ 
            res.should.have.status(200); 
            res.should.have.header('Content-Length'); 
            res.should.have.header('Content-Type', 'text/html; charset=utf-8'); 
            $('ul.messages').should.have.one('li', 'Successfully authenticated'); 
            browser.get('/login', function(res, $){ 
                res.should.have.status(200); 
                // We are finished testing, close the server app.close(); 
                $('ul.messages').should.have.one('li', 'Already authenticated'); 
            }); 
        }); 
    });
    With this smart javascript, you will be able to test login form with a 'tobi' password for a 'tj' user. and then detect if the authentication run ok or fail. And the descripted scenario is also testing the "Already authentified" process from this "/login" form.
    Ready to test other things ?  go and visit this web site : https://github.com/LearnBoost/tobi
    note:
    This framework was discoverdI had just discovered this framework exploring the BrowserId.org feature from Mozilla !
    • Tweet
  • French web pages for McGivrer !

    • 30 Sep 2010
    • 0 Responses
    •  views
    • google sites test web
    • Edit
    • Delete
    • Tags
    • Autopost
    You can now discover my own tests on Google Sites with the McGivrer's Web Pages site.

    If you are "french" friendly, and can read french language, please, come and visit this sample site.
    • Tweet
  • HTML5+CSS3 - start of the first experience !

    • 28 Jun 2010
    • 0 Responses
    •  views
    • css3 demo framework html5 php sample test
    • Edit
    • Delete
    • Tags
    • Autopost
    Discovering HTML5 and CSS3, I'm on the road of creating a small PHP framework (already seen here) to produce easily some WebSite in a fast and stardard respect way.

    Here is the first flight for my new framework, still buggy and have some weird behaviour, I'm to happy to show you the first visual picture of such piece of code :)

    Demo01

    Yes, the special effects on the mouse hover event are only CSS3 WebKit/Moz implemented version.  But it seems "wavy" ;)

    To be able to watch such demo, you need Last versions of Firefox (3.6.x or minefield version) and Google Chrome (Chromium nightly build or last Chrome)

    Hope to be able to produce soon better code with better effects !
    • Tweet
  • About

    Java/J2EE Expert
    Technical Manager
    Web Standard evangelizer

    114907 Views
  • Archive

    • 2012 (4)
      • January (4)
    • 2011 (53)
      • December (5)
      • November (1)
      • September (4)
      • August (4)
      • July (5)
      • June (2)
      • May (11)
      • April (11)
      • March (5)
      • February (3)
      • January (2)
    • 2010 (51)
      • December (2)
      • November (2)
      • October (1)
      • September (3)
      • August (8)
      • July (4)
      • June (15)
      • May (3)
      • April (2)
      • March (5)
      • February (5)
      • January (1)
    • 2009 (29)
      • December (1)
      • November (5)
      • October (6)
      • August (1)
      • July (4)
      • June (2)
      • May (1)
      • April (4)
      • March (2)
      • February (1)
      • January (2)
    • 2008 (39)
      • December (1)
      • November (5)
      • October (8)
      • September (8)
      • August (8)
      • July (9)

    Get Updates

    Follow this Space »
    You're following this Space (Edit)
    You're a contributor here (Edit)
    This is your Space (Edit)
    Follow by email »
    Get the latest updates in your email box automatically.
    Loading...
    Subscribe via RSS
    FacebookFlickrPicasametaweblog