Selenium IDE

Selenium IDE
Page d'aide sur l'homonymie Pour les articles homonymes, voir Selenium.

Selenium IDE est un IDE pour les tests de l'outil de tests unitaires Selenium. Elle est mise en œuvre comme une extension pour Firefox, et permet d'enregistrer, d'éditer et déboguer les tests.

Selenium IDE n'est pas seulement un outil d'enregistrement : il s'agit d'un environnement de développement intégré (IDE). L'utilisateur peut choisir d'utiliser sa capacité d'enregistrement, ou peut modifier ses scripts à la main.

Caractéristiques

  • Facilité d'enregistrement et de lecture
  • Reconnaissance de sélection des identifiants, les noms, ou, au besoin XPath
  • Pas à pas à travers les tests
  • Debug et fixer l'arrêt
  • Sauvegarde des tests au format HTML, Java, Ruby scripts, ou tout autre format

Exemples de tests avec Selenium

require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
 
class CategoryModifTest extends PHPUnit_Extensions_SeleniumTestCase
{
  protected function setUp()
  {
    $this->setBrowser("*firefox");
    $this->setBrowserUrl("http://...");
  }
 
  public function testCategoryModif()
  {
    $this->open("http://...");
    $this->type("modlgn_username", "admin");
    $this->type("modlgn_passwd", "password");
    $this->click("link=Connexion");
    $this->waitForPageToLoad("30000");
    $this->open("http:.../administrator/index.php?...");
    $this->waitForPageToLoad("30000");
    $name = $this->getTable("//div[@id='element-box']/div[2]/form/table.2.2");
    $this->click("link=".$name);
    $this->waitForPageToLoad("30000");
    $this->type("name", "Ordinateurs portables modifié");
    $this->click("//td[@id='toolbar-save']/a/span");
    $this->waitForPageToLoad("30000");
    try {
        $this->assertTrue($this->isTextPresent("Ordinateurs portables modifié"));
    } catch (PHPUnit_Framework_AssertionFailedError $e) {
        array_push($this->verificationErrors, $e->toString());
    }
    $this->click("link=Ordinateurs portables modifié");
    $this->waitForPageToLoad("30000");
    $this->type("name", "Ordinateurs portables");
    $this->click("//td[@id='toolbar-save']/a/span");
    $this->waitForPageToLoad("30000");
    $this->click("link=Déconnexion");
    $this->waitForPageToLoad("30000");
  }
}

En PHP, Selenium s'interface avec PHPUNIT chaine complète de test avec Selenium IDE, Selenium RC et PHPUnit.

Lien externe


Wikimedia Foundation. 2010.

Contenu soumis à la licence CC-BY-SA. Source : Article Selenium IDE de Wikipédia en français (auteurs)

Игры ⚽ Поможем решить контрольную работу

Regardez d'autres dictionnaires:

  • Selenium (software) — Selenium is a portable software testing framework for web applications. The tests can be written as HTML tables or coded in a number of popular programming languages and can be run directly in most modern web browsers. Selenium can be deployed on …   Wikipedia

  • Selenium — Entwickler ThoughtWorks Aktuelle Version 2.11.0 (28. Oktober 2011) Betriebssystem Microsoft Windows, Linux, Mac OS X, Solaris, FreeBSD und andere Unix Varianten (basiert auf …   Deutsch Wikipedia

  • Selenium — Тип тестирование программного обеспечения Написана на JavaScript Операционная система Microsoft Windows, GNU/Linux, Apple Mac OS Последняя версия 2.24.1(0) (19 июня 2012) Лицензия Apache License 2.0 …   Википедия

  • -ide — suffix (also esp. US id) Chem. forming nouns denoting: 1 binary compounds of an element (the suffix ide being added to the abbreviated name of the more electronegative element etc.) (sodium chloride; lead sulphide; calcium carbide). 2 various… …   Useful english dictionary

  • chal|co|gen|ide — «KAL kuh juh nyd, kal KOJ uh nyd», noun, adjective. –n. a compound formed with any of the elements oxygen, sulfur, selenium, and tellurium (group 6A of the periodic table) and another element or radical. –adj. composed of one or more of the… …   Useful english dictionary

  • JavaScript — Не следует путать с Java. JavaScript Класс языка: мультипарадигменный …   Википедия

  • NetBeans — IDE Screenshot  …   Wikipedia

  • NetBeans — Скрин …   Википедия

  • Spring Roo — Spring Roo …   Википедия

  • Garlic — For other uses, see Garlic (disambiguation). Garlic Allium sativum, known as garlic, from William Woodville, Medical Botany, 1793. Scientific classification …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”