Whos Online

Joomla

We have 128 guests and 0 members online

    Forums

    We have 19 guests and 0 members online

      Tags

      android (7) anonymity (9) ant (10) apache (54) apple (7) atv (18) australia (8) bernardet (7) bombardier (7) book (7) browser (10) business (8) caliber30 (61) canon (9) cedricwalter (6) checklist (9) chrome (6) classpath (6) collection (7) continuousbuild (25) design (13) designpattern (23) desktop (7) development (28) DIY (9) draganflyer5 (9) dslr (14) eclipse (30) ek4 (8) electronic (18) enfrancais (66) FAQ (6) figures (13) firefox (20) firmware (7) flash (9) flickr (6) framework (12) fud (9) game (19) gaming (6) girls (6) google (68) gpl (8) gps (9) hacking (23) hdtv (7) hollidays (15) homecinema (14) homepage (20) howto (66) infrastructure (6) innoveo (7) iphone (6) italy (10) itsatrap (8) java (73) javascript (11) joke (11) joomla (215) joomla15 (33) joomlacloud (7) junit (9) kde (10) kyosho (62) links (17) linux (122) LittleBigPlanet (16) mambo (18) manual (8) manurhin (9) maps (6) maven (36) mediacenter (9) microsoft (52) modding (10) module (17) morespeed (16) motor (8) motorcycle (13) myhomepage (14) mysql (14) nas (14) neogeo (20) opencomment (27) opensource (61) opensuse (10) oss (7) p2p (7) patch (32) pc (12) pdf (8) php (26) picasa (7) plugin (65) privacy (9) projector (11) protection (7) ps3 (42) publicity (9) quad (18) raptor30 (7) rchelicopter (161) review (32) robot (9) robotic (7) rss (8) safety (8) scooter (29) security (62) securityimage (8) securityimage3 (6) securityimage4 (21) securityimage5 (19) securityimages (14) securityimages5 (6) server (17) simulator (8) smugmug (12) snk (16) software (31) sony (38) spammer (7) statistics (13) storage (7) subversion (6) suse (12) switzerland (7) teamcity (15) testing (9) thundertiger (20) tips (31) tomcat (7) tomtom (7) translatetofrench (8) trip (17) troubleshooting (7) tutorial (9) twitter (6) upgrade (15) vespa (10) video (17) vintage (8) watercooling (9) web2.0 (28) windows (14) xbmc (7) xbox (10) zurich (16) zürich (11)

      Forums

      Live information from Open Source Joomla! 1.0/1.5 development and support for waltercedric.com components/plugins/modules

      Skype me

      My status

      Follow me

      Facebook Digg LinkedIn MySpace Twitter Playstation network Xbox Live
      Digg Del.icio.us Reddit Simpy StumbleUpon Ask Facebook Slashdot Backflip Spurl MisterWong Netvouz Diigo Segnalo RawSugar Shadows Google Furl Newsvine Yahoo Technorati Live Blogmarks Netscape Fark Wink LinkaGoGo Bibsonomy FeedMe Magnolia Blue Tailrank Del.irio.us Y PlugIM SpotBack LinkSwarm

      Gallery

      Twitter

      Google Buzz


      Re: Login Form - Menu Link - First, thank you. I've installed this and everything works fine... except the captcha display for the login module displayed under my main menu. If I click 'login' and the module comes up on the main screen, the captcha is there. Is there a way to g...
      2 hours ago,

      Re: Problem with SecurityImages 5.1.1 and Joomla 1.5.9 - I have Joomla! 1.5.9 and I've installed SecurityImage 5.1.2. I use security image "Calculator" and see an image in contact, login, register,module login. I It tested . It's work! But I get a registration of spammers.Why? Where is problem?
      9 hours ago,

      Re: No related articles are displayed - Sire url: www.minutka.si/novice.html... Version RelatedArticles: 2.0.3 (plugin) PHP: 5.2.4 Joomla: 1.5.14
      9 hours ago,

      Re: No related articles are displayed - Quote from: criptus on March 14, 2010, 12:07:29 AMNot in my case. I have much more than one article in the categorie... Can I have your version, do you use plugin or module, site url and eventually an extract of your data...
      9 hours ago,

      Re: Not working for me. - Hi See here wiki.waltercedric.com/index.ph... put the file .mm on your host and use {freemind uri=freemind/Example%20Meeting.mm width=600 height=600} shoudl work, thanks for feedback
      10 hours ago,
       
      Develop web testcases using Selenium IDE in Firefox for Joomla! Print E-mail
      User Rating: / 7
      PoorBest 
      Saturday, 12 April 2008 12:53
      Article Index
      Develop web testcases using Selenium IDE in Firefox for Joomla!
      all Selenium commands on one page for a better overview
      All Pages
      open.qa.logo
      Selenium is a test tool for web applications. Selenium tests run directly in a browser, just like real users do. It runs in Internet Explorer, Mozilla and Firefox on Windows, Linux, and Macintosh, Safari on the Mac.  They have plans to target Safari on the iPhone in some months. The tool is free and available under Apache 2.0.
      Since I have clearly quality issues during the development/releasing of my components for Joomla!, I am trying now to use the same tooling I daily use in java EE solutions for PHP...In this series I will present you some ideas (Unit testing, Continuous integration, code quality) that you may want to put in use as well.

      The quickest way to learn Selenium is via a Firefox plugin called Selenium IDE. It is quite compelling
      for developing tests in and quickly trying out Selenium before choosing Selenium for your project.

      There are two modes of operation for Selenium - Core and Remote Control (RC).  Remote Control
      mode also has a related capability called Selenium Grid that allows you to throw hardware at tests
      to make it all faster.

      This tools is able to:

      • Simulate any action a human user may do either with the help of the keyboard or the mouse,
        this go from entering a text to select values in select list.
      • These workflow can be save and replay at any time and any speed.
      • You may group a set of tests and form a test suite very easily.
      • Export tests to Ruby, Python, Perl, Java .Net to run them in a non graphical environment ().

       

      Selenium is made of 3 components:

      • Selenium Core : the core must be installed on your server where the web applications are running.
      • Selenium IDE : is a Firefox/IE/Mozilla extension Firefox able to record, execute tests and test suites
      • Selenium Remote Control is a server which let you execute tests targeting many different browser,
        Firefox, Internet Explorer, opera and different operating system GNU/Linux,Mac OS and  MS Windows
        in also many different languages Ruby, Python, Perl, Java .Net.

      Also don't use Selenium for load testing web applications!, use Apache JMETER  instead. Attention Selenium
      has some issues when he has to work on 2 windows at the same time (pop -up).

      Today let just try Selenium IDE

      To make it work with Joomla!, or with any other web applications, just install the Firefox plugins, and start
      it by going to the tools menu of Firefox.

      Lets say that we want to test the contact page of my site for proper operations...In Firefox, go to the menu Tools

      selenium1

      This will open a floating windows, which let you define a script step by step in the windows Script

      You may come with a test case similar to the one presented here:

      selenium-joomla-test

      The number of commands is huge, but well documented in the tab reference (B)

      The base URL is my site (http://www.waltercedric.com), the test case, open the contact page, check the
      title of the page, enter some values in form, check for button and texts and submit the form.

      The menu selenium2  let you run the test by clicking on selenium3 you can see the
      result, if everything is green then the test has succeed.

      selenium4

      and you see every step of the test case in the browser windows:

      selenium6 

      As you see it is quite easy to develop a script to test a page, test can be saved on disk  in different format,
      so you can execute them in Selenium Core

      selenium5

      So the test developed for testing the contact page of Joomla! now look like:

         1:  package com.example.tests;
         2:   
         3:  import com.thoughtworks.selenium.*;
         4:  import java.util.regex.Pattern;
         5:   
         6:  public class NewTest extends SeleneseTestCase {
         7:      public void setUp() throws Exception {
         8:          setUp("http://www.waltercedric.com/", "*chrome");
         9:      }
        10:      public void testNew() throws Exception {
        11:          // selenium.("http://www.waltercedric.com/-contact-me.html");
        12:          assertEquals("Contact - Cedric Walter", selenium.getTitle());
        13:          selenium.type("contact_name", "cedric");
        14:          selenium.type("contact_email", "
        This e-mail address is being protected from spambots. You need JavaScript enabled to view it
       ");
        15:          selenium.type("contact_subject", "Selenium is great, try it");
        16:          verifyTrue(selenium.isTextPresent("Enter your Message:"));
        17:          selenium.type("contact_text", "Hi Cedric. selenium would be cool for testing securityimages!");
        18:          verifyTrue(selenium.isTextPresent("Send"));
        19:          selenium.submit("emailForm");
        20:          selenium.waitForPageToLoad("30000");
        21:      }
        22:  }
      .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

      Or better in PHP so you can reuse it in XINC continuous integration server (more to come on XINC in a future article)

         1:  <?php
         2:   
         3:  require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
         4:   
         5:  class Example extends PHPUnit_Extensions_SeleniumTestCase
         6:  {
         7:    function setUp()
         8:    {
         9:      $this->setBrowser("*chrome");
        10:      $this->setBrowserUrl("http://www.waltercedric.com/");
        11:    }
        12:   
        13:    function testMyTestCase()
        14:    {
        15:      // $this->("http://www.waltercedric.com/-contact-me.html");
        16:      $this->assertEquals("Contact - Cedric Walter", $this->getTitle());
        17:      $this->type("contact_name", "cedric");
        18:      $this->type("contact_email", "
        This e-mail address is being protected from spambots. You need JavaScript enabled to view it
       ");
        19:      $this->type("contact_subject", "Selenium is great, try it");
        20:      try {
        21:          $this->assertTrue($this->isTextPresent("Enter your Message:"));
        22:      } catch (PHPUnit_Framework_AssertionFailedError $e) {
        23:          array_push($this->verificationErrors, $e->toString());
        24:      }
        25:      $this->type("contact_text", "Hi Cedric. selenium would be cool for testing securityimages!");
        26:      try {
        27:          $this->assertTrue($this->isTextPresent("Send"));
        28:      } catch (PHPUnit_Framework_AssertionFailedError $e) {
        29:          array_push($this->verificationErrors, $e->toString());
        30:      }
        31:      $this->submit("emailForm");
        32:      $this->waitForPageToLoad("30000");
        33:    }
        34:  }
        35:  ?>
      .csharpcode, .csharpcode pre { font-size: small; color: black; font-family: consolas, "Courier New", courier, monospace; background-color: #ffffff; /*white-space: pre;*/ } .csharpcode pre { margin: 0em; } .csharpcode .rem { color: #008000; } .csharpcode .kwrd { color: #0000ff; } .csharpcode .str { color: #006080; } .csharpcode .op { color: #0000c0; } .csharpcode .preproc { color: #cc6633; } .csharpcode .asp { background-color: #ffff00; } .csharpcode .html { color: #800000; } .csharpcode .attr { color: #ff0000; } .csharpcode .alt { background-color: #f4f4f4; width: 100%; margin: 0em; } .csharpcode .lnum { color: #606060; }

      As soon as You have a set of tests, this can form a Test Suite.

      SecurityImages for Joomla create Captcha, so it is quite difficult for a tool to pass the Turin test
      (aka recognize the scrambled images), this point apart, I am now developing testcases to test the
      admin backend, frontend Joomla! patches. These test will be available in the component itself, so
      anybody can run them with little efforts.

      Read more at:

       



      Comments
      Add New Search RSS
      +/-
      Write comment
      Name:
      Email:
       
      Website:
      Title:
      UBBCode:
      [b] [i] [u] [url] [quote] [code] [img] 
       
       
      :):grin;)8):p:roll:eek:upset:zzz:sigh:?:cry
      :(:x
       
      Please input the anti-spam code that you can read in the image.
      David  - David |119.30.94.xxx |2008-09-10 13:15:35
      Great!!!Here r simple steps to setup selenium for php:
      http://cyberheight.blogspot.com/2008/09/using-sele nium-on-windows-platform.html
      Anonymous |58.68.90.xxx |2008-09-12 09:46:03
      :?
      Razor  - Mr |212.125.73.xxx |2008-09-30 16:40:25
      Hi David,

      Thanks for basis steps. Helped alot.
      Can you also describe us how to run selenium id on IE.

      Thanks
      Razor
      vijay  - ok |61.246.236.xxx |2008-11-21 09:31:40
      :roll Expect more from you
      Anonymous |198.175.55.xxx |2009-02-04 07:33:45
      :) GOOD WORK
      deepa  - how to pass the parameters using perl script |122.166.18.xxx |2009-02-23 07:27:55
      Hi ,

      please any can tel me how to pass the parameters using perl script , am
      recording the application through selenium RC tool then i will export the test
      cases into perl script on windows xp,
      pls tel me how to pass the parameters using perl script on selenium Rc tool.



      Thanks
      Deepa
      stanie |220.227.179.xxx |2009-07-24 14:07:54
      how do we record a "+" link using selenium tool
      srikar  - selenium |196.12.61.xxx |2009-09-02 07:51:29
      hi i am using selenium to devolope test cases.
      But i am unable to test colours using selenium .is there any way to test colours
      using selenium .
      Cedric Walter |92.138.106.xxx |2009-09-05 14:43:49
      I am not a Selenium specialist, but I heard that you can write your own
      javascript that can be plug in selenium. If you can test the color in javascript
      (accessing the DOM), then I suppose you can develop a js method
      isColorEquals (domelement, colorExpected)
      Last Updated on Sunday, 13 April 2008 19:10
       

      Top 200 Tags

      Donation

      Thank You for supporting my work
      Click Here to make a donation